首页 > 数据库技术 > 详细

Unity3d AssetDatabase.SetLabels StartAssetEditing ValidateMoveAsset 语法复习

时间:2014-11-08 00:42:07      阅读:573      评论:0      收藏:0      [点我收藏+]

欢迎来到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参数

  • oldPath
    the path where the asset currently resides
    当前资源所处的路径
  • newPath
    the 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 语法复习

原文:http://www.cnblogs.com/Unity3Dqishituan/p/4082551.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!