Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


targets

An array of all the object being inspected.
Read time 1 minuteLast updated 6 days ago

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.