Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Reorderable List disregards GUIContent labels?

Discussion in '2020.2 Beta' started by swedishfisk, Sep 21, 2020.

  1. swedishfisk

    swedishfisk

    Joined:
    Oct 14, 2016
    Posts:
    57
    I would expect the following code to render a list with the label "test", but it completely disregards the GUIContent and renders it with a label that just says "List" no matter what I do. Other types of properties work like before and respects GUIContent - am I missing something or is it a bug?

    Code (CSharp):
    1. var list = property.FindPropertyRelative("list");
    2. EditorGUI.PropertyField(position, list, new GUIContent("test"));
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,282
    Sounds like a bug. Could you please file a bug report.
     
    richardkettlewell likes this.