Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

ScriptableObject vs DontDestroyOnLoad

$
0
0
I updated to Unity 5.3 and since that I'm receiving the following warning for all the ScriptableObject.DontDestroyOnLoad(instance) calls where the instance parameter is a ScriptableObject created simply by ScriptableObject.CreateInstance(); Warning: DontDestroyOnLoad only work for root GameObjects or components on root GameObjects. Is there any easy solution for it? Or should I modify all such ScriptableObjects to MonoBehaviours and assign them to a root GameObject?

Viewing all articles
Browse latest Browse all 416

Trending Articles



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