Can we Focus on to a specific monobehaviour property/field in Inspector Window ?

Hi All,

I am currently working on a editor script which has to highlight a particular property/field of a monobehaviour in the inspector window via script.

Right now i am able to highlight the gameobject which conatins this script using EditorGUIUtility.PingObject,but i need to highlight the public variable of that monobehaviour too.

Do we have any api similar to EditorGUIUtility.PingObject/Selection.activeGameObject to achieve this?
If not then is there any way to focus a field via script?

-Gerald.

Hi gerald,

if you want to do that for every component i think it’s no possible.
if you want to do that for specific component, you can make CustomInspector script to have property/field highlight.

Julien G.

Hi Julien,

Thanks for the reply.
Unfortunately i can’t have CustomInspector as an option :frowning:

-Gerald.