標籤:des http io ar sp 檔案 div on art
歡迎來到unity學習、unity培訓、unity企業培訓教育專區,這裡有很多U3D資源、U3D培訓視頻、U3D教程、U3D常見問題、U3D項目源碼,我們致力於打造業內unity3d培訓、學習第一品牌。
AssetDatabase.SaveAssets 儲存資源
static function SaveAssets () : void
Description描述
Writes all unsaved asset changes to disk.
將所有未儲存的資源更改寫入磁碟。
AssetDatabase.SetLabels 設定標籤列表
static function SetLabels (obj : Object, labels : string[]) : void
Description描述
Replaces that list of labels on an asset.
替換資源的標籤列表。
AssetDatabase.StartAssetEditing 開始資源編輯
static function StartAssetEditing () : void
Description描述
Begin Asset importing. This lets you group several asset imports together into one larger import.
開始資源匯入。它可以讓你把多個資源匯入組合成一個更大的匯入。
AssetDatabase.StopAssetEditing 停止資源編輯
static function StopAssetEditing () : void
Description描述
Stop Asset importing. This lets you group several asset imports together into one larger import.
停止資源匯入。這可以讓你把多個資源匯入組合成一個更大的匯入。
AssetDatabase.ValidateMoveAsset 驗證移動資源
static function ValidateMoveAsset (oldPath : string, newPath : string) : string
Parameters參數
- oldPaththe path where the asset currently resides
當前資源所處的路徑
- newPaththe path which the asset should be moved to
資源應該移動到的路徑
Returns
string – an empty string, if the asset can be moved, and an error string otherwise. All paths are relative to the project folder. Like: “Assets/MyTextures/hello.png”
返回String類型 – 如果資源可以移動返回一個空的字串,否者返回錯誤字串。所有的路徑都是相對於工程目錄檔案。例如” Assets/MyTextures/hello.png”。
Description描述
Checks if an asset file can be moved from one folder to another. (Without actually moving the file)
檢查一個資源檔是否可以從一個檔案夾移動到另外一個。(並不是真的移動這個檔案)
更多精彩請點擊 http://www.gopedu.com/
Unity3d AssetDatabase.SetLabels StartAssetEditing ValidateMoveAsset 文法複習