Created by Bunny83 for UnityAnswers.com - public domain, many thanks! Use the GetUniqueAssetPath function, passing in a built-in object, to get the custom path to the object. Make note of this path, and you can pass it to LoadAssetFromUniqueAssetPath to load it at a later time. Editor Only functionality.
Static Public Member Functions | |
static string | GetUniqueAssetPath (UnityEngine.Object aObj) |
Generates a unique path to built-in objects that can then be used by the LoadAssetFromUniqueAssetPath function. | |
static T | LoadAssetFromUniqueAssetPath< T > (string aAssetPath) |
Can load built-in objects, from paths generated by GetUniqueAssetPath | |
static void | ShowPathsDialog () |
Opens up an editor window to show the "Unique path" of selected objects. these "Unique path's" can be put into code and passed into the LoadAssetFromUniqueAssetPath function, to load the asset dynamically. | |