Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

UnitySerializer wait until deserialized

$
0
0
Hi all! I am using the Unity Serializer asset and am running into a small issue... I have when a base scene is launched, it loads the last level. This works fine, but I need to call a function after all the resources are deserialized. I know there are OnDeserialized() functions, but I can't seem to get them to call correctly... this is my script thus far. function Start () { LevelSerializer.LoadNow(levelData); loadTextures(); //This function needs called after loaded loadedScene = true; } As you can see, pretty straight forward... just can't seem to get it to yield. I have tried using `yield LevelSerializer` but it does nothing at all! Thanks!

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>