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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Gameobject Conversion Blob Asset Store

Discussion in 'Entity Component System' started by l33t_P4j33t, Mar 11, 2020.

  1. l33t_P4j33t

    l33t_P4j33t

    Joined:
    Jul 29, 2019
    Posts:
    232
    what's the correct way of converting gameobjects?
    before it used to be null for the blobassetstore input field, but now that doesn't work. creating a new one like in pic generates a memory leak
     

    Attached Files:

  2. Curlyone

    Curlyone

    Joined:
    Mar 15, 2018
    Posts:
    41
    do .Dispose() on BlobAssetStorre once you are done with it.

    If you are doing this on a MonoBehaviour, note that there is a bug that disposing a BlobAssetStore after you use it crashed your editor, so you have to dispose it on OnDestroy()
     
    Markus4Unity and No3371 like this.
  3. Bas-Smit

    Bas-Smit

    Joined:
    Dec 23, 2012
    Posts:
    272