Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

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:
    9
    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:
    397
    jeremies_unity likes this.
  3. unity_bill

    unity_bill

    Unity Technologies

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