- Home /
How to tell "Is Object an Asset?"
To clear objects from memory you have to use "Destroy" on runtime resources or "UnloadAsset" on assets. But how can the code tell if an object is an asset or not?
There is AssetDatabase.Contains() but that's only available in UnityEditor.
My game is loading content either from disk or Resources depending on which is available, so knowing how to unload these is currently an issue.
Comment
Your answer
Follow this Question
Related Questions
Can we unload NavMesh in runtime? 0 Answers
How to (de) serialize unity references at runtime? 3 Answers
How can I unload a single resource? 2 Answers
Load xml from resource folder after build(web player) 0 Answers
Exposed asset variables vs Resources 2 Answers