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.
  2. Dismiss Notice

Release Asset vs Release Instance

Discussion in 'Addressables' started by Allan-Smith, Jul 15, 2018.

  1. pillakirsten

    pillakirsten

    Unity Technologies

    Joined:
    May 22, 2019
    Posts:
    346
    Only a reference to the prefab is stored and will be destroyed when you call ReleaseInstance. By unparenting it, the prefab no longer has a reference to the child, and you will need manually destroy it.
     
  2. Artemko_one

    Artemko_one

    Joined:
    Jan 3, 2018
    Posts:
    4
    Does ResourceManager.CleanupSceneInstances cleans up inactive gameobjects too?
     
    Last edited: Feb 15, 2023
  3. OneManEscapePlan

    OneManEscapePlan

    Joined:
    Oct 14, 2015
    Posts:
    207
    This needs to be documented better. This page says that assets instantiated with trackHandle set to true are automatically released, but doesn't specify when that occurs. The page for InstantiateAsync doesn't mention automatic releasing at all.