Search Unity

AssetReference not drawn when in array

Discussion in 'Addressables' started by jeremies_unity, Jan 8, 2019.

  1. jeremies_unity

    jeremies_unity

    Joined:
    Oct 16, 2018
    Posts:
    19
    Code (CSharp):
    1. [Serializable]
    2. public struct MyStruct
    3. {
    4.     public AssetReference Asset;
    5. }
    6.  
    7. public class MyData : ScriptableObject
    8. {
    9.     public MyStruct[] Data;
    10. }
    Having AssetReference in an array disables the drawer in the inspector. Removing the array ([]) in the code above makes the drawer work again.
     
  2. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    471
    jeremies_unity likes this.
  3. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    581
    should all be fixed up in next release (1.0)