Search Unity

Select sub-object in AssetReferenceT property drawer

Discussion in 'Addressables' started by davidrochin, Feb 1, 2020.

  1. davidrochin

    davidrochin

    Joined:
    Dec 17, 2015
    Posts:
    72
    If I declare an AssetReference in my script, I can select a sub-object in the inspector. For example, I can select an AnimationClip that is inside a model Prefab asset. Just like this:

    upload_2020-2-1_15-32-7.png

    Result:
    upload_2020-2-1_15-36-29.png


    Why doesn't AssetReferenceT have this behavior? Am I doing something wrong?

    upload_2020-2-1_15-35-16.png

    Result: (Can't select anything because the parent type of the object I need, is Prefab)
    upload_2020-2-1_15-37-57.png

    This is the code for AnimationClipReference:
    upload_2020-2-1_15-38-39.png
     
    creimschussel likes this.
  2. creimschussel

    creimschussel

    Joined:
    Apr 11, 2017
    Posts:
    10
    I'm running into the same issue.
     
  3. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    763
    Huh. Interesting. If you don't mind submitting a bug we'll look into this. Can't think of any reason this is wrong off the top of my head.
     
    creimschussel and davidrochin like this.
  4. davidrochin

    davidrochin

    Joined:
    Dec 17, 2015
    Posts:
    72
    Sorry, where can I submit a bug?
     
  5. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    davidrochin and davidla_unity like this.