x


How to programatically hilight an item in the Project panel?

I am working on an editorscript that would greatly benefit from the ability to hilight (scroll to and draw a border around) Project assets just like Unity itself does when you click on a reference to an asset in the Inspector.

Anyone know what function I need to call? I found EditorUtility.FindAsset and EditorUtility.GetPrefabParent, but neither seemed to do what I am looking for.

more ▼

asked Feb 17 '11 at 02:51 AM

Aubrey Falconer gravatar image

Aubrey Falconer
672 46 54 68

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I think you're looking for EditorGUIUtility.PingObject.

more ▼

answered Feb 17 '11 at 03:48 AM

Molix gravatar image

Molix
4.8k 17 27 66

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1729
x428
x351
x175

asked: Feb 17 '11 at 02:51 AM

Seen: 754 times

Last Updated: Feb 17 '11 at 02:51 AM