ドキュメント

Unity Engine

Unity Engine

targets

An array of all the object being inspected.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.