Highlighted a game object in the hierarchy without click in the inspector ?

My unity is 4.5.2 , when i click a object in a script inspector , if the object is not null, the object will be highlighted in the hierarchy. any one can tell what’s the highlighted method in the unity editor. i want to highlighted a game object by programming without click.

UnityEditor.EditorGUIUtility.PingObject(Object)

By “Highlighting”, I believe you refer to the visual highlighting only? Like… a bright outline? (Otherwise, Highlighting is actually “Secect the object for editing” … just an editor functionality…) If so, You need to use some shader that supports that type of display. (I am not aware of any built-in shader doing that “HighLighting”… I used some custom one…)