ドキュメント

Unity Engine

Unity Engine

target

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

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public Object target { get; set; }

Remarks

For editors that support multi-object editing, the target property should not be used inside Editor.OnInspectorGUI() since it only refers to the first of the edited objects. It should still be used in OnSceneGUI and Editor.OnPreviewGUI, which will be called once for each of the selected objects with the target property referring to each of them in turn.
Additional Resources: Editor.targets, Editor.serializedObject, Editor class.