Unity3D翻译之编辑器属性_CanEditMultiple

 

CanEditMultipleObjects Inherits from System.Attribute  

Attribute used to make a custom editor support multi-object editing.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

When multiple objects are selected, Editors that don't have this attribute will show the message "Multi-object editing not supported". See the Editor class documentation on how to make an Editor support multi-object editing.

CanEditMultipleObjects 继承之System.Attribute  

用于自定义支持多物体的编辑器

注意:这是一个编辑器类。必须将脚本放置到工程中Assets/Editor文件夹中。编辑器类位于UnityEditor命名空间,所以C#j脚本必须添加在脚本开始处添加“using UnityEditor;”语句。

没有该属性的编辑器在选中多个物体时会提示“Multi-object editing not supported”。请参看Editor类文档中关于编辑器如何支持多物体编辑。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值