- Home /
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?
Your answer
Follow this Question
Related Questions
How do I remove missing Assets from Build / Import (Reimport All) ? 5.2.2.2f1 0 Answers
How can I dynamically load a substance? 1 Answer
Why does Unity create folder/file only when I re-import the script that triggered it? 1 Answer
UnityException: Creating asset at path /blabla.asset failed 0 Answers