How to Highlight an element in List as SerializedProperty at Inspector?

Hi everyone,
I’m trying to use Highlighter.Highlight() method but it does not work for SeriliazedProperty. I saw that line in doc.

‘‘Any control that uses the SerializedProperty system can be highlighted using its SerializedProperty.propertyPath.’’

It didn’t work. Actual problem is my property is a list so i need to highlight an element from list. How could i do that without using reorderable list?

1 Like

Hi! I was looking for this exact thing. Did you find anything?

Actually, i use reorderable list

Like this:

ReorderableList list;

public void init()
{
   list.drawElementCallback += (rect, index, active, focused) => {
        GUI.SetNextControlName(index.ToString());
        if (focused) {
          GUI.FocusControl(index.ToString());
        }
      };
}
1 Like