I got a error when using scene fader

from the class : Unity RPG Core Combat Creator: Learn Intermediate C# Coding Avoiding The Singleton Pattern
when I swtich the scene from the first sandbox to the second one didnt get the error , but transport to back i got this error
MissingReferenceException: The object of type ‘CanvasGroup’ has been destroyed but you are still trying to access it.
the PresistentObject and the fader didnt been destroy on loading

This is often caused by having an instance of the Fader in the scene already when the PersistentObjectPrefab is spawned. The Scene file shouldn’t have any Faders, SavingWrappers or SavingSystem components on any of the GameObjects. These should spawn in with the PersistentObjectsPrefab.

thank you so much C;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms