Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question How to load back unloaded asset by script?

Discussion in 'General Graphics' started by Kichang-Kim, Jun 9, 2020.

  1. Kichang-Kim


    Oct 19, 2010
    Hi. I have a question about Unity's automatic asset load back feature.

    When I load prefab which has Mesh A then unload Mesh A by using Resources.UnloadAsset(), it makes null exception when accessing its properties.

    But, after loading prefab again, Mesh A be available again too (even its instance id is same!). I want to mimic this behaviour from my script. Is there any API for re-loading unloaded assets?