C# 클래스 RedBlueGames.Tools.AssetDatabaseUtility

Utilities for Unity's built in AssetDatabase class
파일 보기 프로젝트 열기: redbluegames/rb-unity-tools 1 사용 예제들

공개 메소드들

메소드 설명
GetAssetDirectory ( UnityEngine asset ) : string

Gets just the directory name of an asset including DirectorySeparator. Does not get the path.

LoadSpritesInTextureSorted ( Texture2D texture ) : UnityEngine.Sprite[]

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

메소드 상세

GetAssetDirectory() 공개 정적인 메소드

Gets just the directory name of an asset including DirectorySeparator. Does not get the path.
public static GetAssetDirectory ( UnityEngine asset ) : string
asset UnityEngine Asset in a directory.
리턴 string

LoadSpritesInTextureSorted() 공개 정적인 메소드

Loads and returns Sprites from a specified Texture asset, sorted in UnityEditor order
public static LoadSpritesInTextureSorted ( Texture2D texture ) : UnityEngine.Sprite[]
texture UnityEngine.Texture2D Texture with sprite metadata.
리턴 UnityEngine.Sprite[]

SaveAndSelectObject() 공개 정적인 메소드

Create and Save an object in the AssetDatabase and then select it.
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.
리턴 void

SaveObject() 공개 정적인 메소드

Create and Save the object in the AssetDatabase
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
리턴 void