登录
  • 欢迎访问 Sharezer Blog

UnityEngine Attributes

AddComponentMenu 添加组件菜单(可以在UnityEditor的Component的Menu中增加自定义的项目) [AddComponentMenu("Transform/Follow Transform")] AssemblyIsEditorAssembly 汇编级属性,使用该属性的Class会被认为是EditorClass ColorUsageAttribute 用于配置颜色和颜色选择 ContextMenu 可以在Inspector的ContextMenu中增加选项 [ContextMenu……继续阅读 »

sharezer 8年前 (2016-06-03) 2387浏览 0评论 0个赞

AssetDatabase

AddObjectToAsset    将objectToAdd这个对象添加到指定路径上的现有资源 AssetPathToGUID    返回指定路径path下资源的GUID(全局唯一标识符) ClearLabels    清除标签 Contains    资源中是否存在该对象 CopyAsset    复制指定路径的资源文件到一个新的路径 CreateAsset    在指定的路径新建资源 Crea……继续阅读 »

sharezer 8年前 (2016-01-06) 3889浏览 0评论 0个赞