Unity error when I change scene:MissingReferenceException
Posted: Wed Dec 07, 2022 7:19 am
HI
When I start conversation and change sceneA to sceneB . At sceneB the conversation will play on start.
At that time , It has a error :MissingReferenceException: The object of type 'Dialogue system trigger' has been destroyed but you are still trying to access it.Your script should either check if it is null or you should not destroy the object.
But if I play sceneB independently, there are no error show in unity.
How can I solve it?
thanks
When I start conversation and change sceneA to sceneB . At sceneB the conversation will play on start.
At that time , It has a error :MissingReferenceException: The object of type 'Dialogue system trigger' has been destroyed but you are still trying to access it.Your script should either check if it is null or you should not destroy the object.
But if I play sceneB independently, there are no error show in unity.
How can I solve it?
thanks