Search Unity

Question InstantiateAsync and Start()

Discussion in 'Addressables' started by benbarefield-lighthaus, Sep 24, 2021.

  1. benbarefield-lighthaus

    benbarefield-lighthaus

    Joined:
    Sep 16, 2019
    Posts:
    7
    I have something I need to do before Start() is called on my asset, but when awaiting InstantiateAsync Start is called in behaviours before the rest of the code after the await is executed. Is there a way around this with InstantiateAsync?

    For now I'm doing LoadAssetAsync then doing a normal GameObject.Instantiate