Unity3d AssetDatabase.SetLabels StartAssetEditing ValidateMoveAsset 文法複習

來源:互聯網
上載者:User

標籤: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 文法複習

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.