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类文档中关于编辑器如何支持多物体编辑。