AssetDatabase.GetAssetPathstatic function GetAssetPath (assetObject : Object) : StringDescriptionReturns the path name relative to the project folder where the asset is stored All paths are relative to the project folder. Like: "Assets/MyTextures/hello.png" @MenuItem("GameObject/Create Material") static function GetAssetPath (instanceID : int) : StringDescription |
