Méthode | Description | |
---|---|---|
GetAssetDirectory ( UnityEngine asset ) : string |
Gets just the directory name of an asset including DirectorySeparator. Does not get the path.
|
|
LoadSpritesInTextureSorted ( |
Loads and returns Sprites from a specified Texture asset, sorted in UnityEditor order
|
|
SaveAndSelectObject ( UnityEngine objectToSave, string path, string filename ) : void |
Create and Save an object in the AssetDatabase and then select it.
|
|
SaveObject ( UnityEngine objectToSave, string path, string filename ) : void |
Create and Save the object in the AssetDatabase
|
public static GetAssetDirectory ( UnityEngine asset ) : string | ||
asset | UnityEngine | Asset in a directory. |
Résultat | string |
public static LoadSpritesInTextureSorted ( |
||
texture | Texture with sprite metadata. | |
Résultat | UnityEngine.Sprite[] |
public static SaveAndSelectObject ( UnityEngine objectToSave, string path, string filename ) : void | ||
objectToSave | UnityEngine | Object to save. |
path | string | Path for new file, not including filename |
filename | string | Filename including file extension. |
Résultat | void |
public static SaveObject ( UnityEngine objectToSave, string path, string filename ) : void | ||
objectToSave | UnityEngine | Object to save. |
path | string | Path for the new file, not including filename |
filename | string | Filename including file extension |
Résultat | void |