位置: 编程技术 - 正文

Unity3d AssetDatabase.SetLabels StartAssetEditing ValidateMoveAsset 语法复习

编辑:rootadmin

推荐整理分享Unity3d AssetDatabase.SetLabels StartAssetEditing ValidateMoveAsset 语法复习,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

欢迎来到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描述

Unity3d AssetDatabase.SetLabels StartAssetEditing ValidateMoveAsset 语法复习

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)

检查一个资源文件是否可以从一个文件夹移动到另外一个。(并不是真的移动这个文件)

更多精彩请点击

Unity3d OnApplicationPause与OnApplicationFocus 判断游戏暂停还是重新启动 欢迎来到unity学习、unity培训、unity企业培训教育专区,这里有很多U3D资源、U3D培训视频、U3D教程、U3D常见问题、U3D项目源码,我们致力于打造业内unity3d

Unity3D技术之Visual Studio C# 集成说明 欢迎来到unity学习、unity培训、unity企业培训教育专区,这里有很多U3D资源、U3D培训视频、U3D教程、U3D常见问题、U3D项目源码,我们致力于打造业内unity3d

Unity3D技术之Advanced流媒体资源浅析 欢迎来到unity学习、unity培训、unity企业培训教育专区,这里有很多U3D资源、U3D培训视频、U3D教程、U3D常见问题、U3D项目源码,我们致力于打造业内unity3d

本文链接地址:https://www.jiuchutong.com/biancheng/372949.html 转载请保留说明!

上一篇:Unity 技术之对集成显卡进行优化(unity集训)

下一篇:Unity3d OnApplicationPause与OnApplicationFocus 判断游戏暂停还是重新启动

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络