No messages after switching scenes in unity

0 votes
Hi guys,

Im trying to understand why after changing scenes in unity3D, suudenly appwarp won't receive any more messages...

is there anything that breaks between scenes?

thanks a lot.
asked Oct 6, 2014 in AppWarp by orpgol (10 points)
recategorized Oct 26, 2014 by sushil

1 Answer

0 votes
Hey,
 
When you switch between scenes, make sure you are also adding listeners in new scenes. If you added listeners in scene A only and then you switched to scene B, the WarpClient will still try to send responses and notifications to listener game object in scene A because it does not have reference to listeners in scene B. I also recommend you to remove listeners from previous scene when you add listeners in new scene.
 
Hope this will solve your query. Please try this solution and let us know.
 
Thanks
answered Oct 7, 2014 by Suyash Mohan (900 points)
Hi,

What if I do a DontDestroyOnLoad to my on MMOManager, which has the listener at the start().

How do I solve it in a good way?

Thanks in advance
Hi Deepesh,

If it solves the problem without creating any problem specially memory problem then definitely you can go ahead with this.
It totally depends on your game flow.
I hope it will help.

Thanks.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...