Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SerializedObject.targetObject

public Object targetObject;

Description

The inspected object (Read Only).

When multi-object editing, the targetObject property will just return the first of the edited objects. To get all the objects, use the targetObjects property instead.