subscribing to SaveSystem.sceneLoaded

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
timbecile
Posts: 110
Joined: Mon Mar 12, 2018 11:00 pm

subscribing to SaveSystem.sceneLoaded

Post by timbecile »

Hey Tony, I'm trying to subscribe to an event that will tell me when the level load is complete. (I'm using the load fade-in and am trying to time it right.)

I thought it was SaveSystem.sceneLoadedm but I'm getting an error
sceneloaded error.jpg
sceneloaded error.jpg (78.82 KiB) Viewed 424 times
User avatar
Tony Li
Posts: 21080
Joined: Thu Jul 18, 2013 1:27 pm

Re: subscribing to SaveSystem.sceneLoaded

Post by Tony Li »

Hi,

Remove the parentheses:

Code: Select all

SaveSystem.sceneLoaded += OnSceneLoaded;
timbecile
Posts: 110
Joined: Mon Mar 12, 2018 11:00 pm

Re: subscribing to SaveSystem.sceneLoaded

Post by timbecile »

Duh! Thanks Tony!
User avatar
Tony Li
Posts: 21080
Joined: Thu Jul 18, 2013 1:27 pm

Re: subscribing to SaveSystem.sceneLoaded

Post by Tony Li »

No problem; happy to help!
Post Reply