targets
An array of all the object being inspected.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEditor
- Assembly: UnityEditor
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.