Author Topic: Loading screen  (Read 1602 times)

Defsine79

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Loading screen
« on: October 04, 2016, 02:57:35 AM »
Im having a bit of trouble getting my loading screen to work when a scenario file is called.  Are there any good tutorials for this on this forum ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Loading screen
« Reply #1 on: October 06, 2016, 06:09:09 AM »
What's a scenario file and what do you mean by it getting called?

If you mean "scene file" and "loading", then setting up a loading screen is a simple matter of just having a near-empty scene as the target chosen for JoinChannel. Inside that scene would be your loading screen UI, and a script that will immediately pause packet processing in its Awake() (via TNManager.isActive = false) and additively load your other scene while displaying its progress. Just don't forget to unpause the TNManager when you're done.

Defsine79

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 9
    • View Profile
Re: Loading screen
« Reply #2 on: October 27, 2016, 03:18:51 AM »
Ok thsnks ArenMook, Ill give it a try.