Search Unity

InstantiateAsync as disabled

Discussion in 'Addressables' started by galvanicauston, Feb 11, 2020.

  1. galvanicauston

    galvanicauston

    Joined:
    Aug 17, 2018
    Posts:
    6
    Is there a way to use InstantiateAsync for a game object but have the instance be disabled on creation? I'd like to avoid the OnEnable call when it's instantiated. Disabling the object in the project didn't work. I can use LoadAssetAsync, disable that, and instantiate manually. But I'd like to have the addressables system tracking instance references.
     
  2. galvanicauston

    galvanicauston

    Joined:
    Aug 17, 2018
    Posts:
    6
    Looks like InstantiateAsync works just fine when instantiating disabled game objects. I believe I may have forgotten to build the bundles as I was using the Use Existing Build play mode.
     
    davidla_unity likes this.