文档

Unity Engine

Unity Engine

targets

An array of all the object being inspected.
阅读时间1 分钟最后更新于 1 天前

Definition

public Object[] targets { get; }

Remarks

For editors that support multi-object editing, you can use the targets property in Editor.OnInspectorGUI(). However, it is better to use the Editor.serializedObject, as described on the page about the Editor class.
Additional Resources: Editor.serializedObject, Editor class.