Search Unity

Question Will ReleaseInstance of parent Addressable also decrease ref count on childed addressables?

Discussion in 'Addressables' started by jeppe79, Jul 30, 2020.

  1. jeppe79

    jeppe79

    Joined:
    Sep 17, 2019
    Posts:
    76
    Long question... Hopefully a short answer. : )

    More in detail:

    We have two addressable references, we instantiate GameObjectA and when that has finished instantiating we instantiate GameObjectB and child it to GameObjectA.

    Then we only run Addressables.ReleaseInstance(GameObjectA) and both goes *poff*.

    Will the ref count go down also on GameObjectB?
    Will GameObjectB also be destroyed in the same way as GameObjectA or will it be splashing around?