Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

AssetReference inspector UI need polishing.

Discussion in 'Addressables' started by TextusGames, Aug 16, 2019.

  1. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    161
    1. Image of asset is collapsed if the address is too long. The image of an asset should stay it is more informative then extra 1.5 letters. Additionally the previous UnityEngine.Object inspector UI shows the object image regardless of the size of the object name.
    2. Prefix label does not correct names like _assetReference or m_AssetReference if AssetReference field is inside of custom serializable class. If AssetReference variable is inside of MonoBehaviour prefix label is corrected "m_AssetReference" is shown as just "AssetReference".
    3. You can drag and drop any asset from the project window to AssetReference variable in inspector and reference will be assigned. But there is no way to select assigned asset out of asset reference variable in inspector UI. Previous Object UI allows to double click on a variable in the inspector and the referenced object will be highlighted in the project window.
    4. [AssetReferenceUILabelRestriction("LabelName")] is also not working in sub class
    upload_2019-11-7_20-43-42.png
     

    Attached Files:

    Last edited: Nov 7, 2019
    Leoniciux likes this.
  2. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    965
    great notes. thanks.
     
  3. TextusGames

    TextusGames

    Joined:
    Dec 8, 2016
    Posts:
    161
    Since now AssetReferenceUILabelRestriction also is not working in nested classes
    I have reported a repro project.
    Case 1197058.