x


Retrieving asset path from object inspector

I have a game where I am loading several assets at runtime via the Resources API. Unfortunately having to type out the asset path in a script inspector goes against the idea of selecting assets as objects and linking them. Is it possible to retrieve the asset path or any other file information when using an object selector? For instance if I have a editor that uses the EditorGUILayout.ObjectField to retrieve a TextAsset is it possible to have it return the path to the TextAsset file?

more ▼

asked Dec 03 '11 at 01:40 AM

caskater47 gravatar image

caskater47
1 1 1 1

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

0 answers: sort voted first
Be the first one to answer this question
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:

x419
x242
x26
x3

asked: Dec 03 '11 at 01:40 AM

Seen: 590 times

Last Updated: Dec 03 '11 at 01:40 AM