- Home /
Question by
Bioshok7 · Jun 18, 2017 at 12:18 PM ·
scripting problemscripting beginnerscript errorobject-reference-error
How to know exactly which game objects and objects are not referenced ?
Hi, How to know exactly which game objects and objects are not referenced unity? Thank you . Cordially
Comment
Answer by plunntic · Jun 18, 2017 at 05:19 PM
If what you mean is how to unload not referenced anymore objects after something that breaks Unity internal linking between assets (like for example after SceneManager.LoadSceneAsync(level, LoadSceneMode.Additive);
) then the answer is simple - you can't (at least not using any automagic Unity method - as far as i know).
In that case you should roll your own mechanism, like reference counting for example.