Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

SerializedObject.targetObject

var targetObject: Object;
Object targetObject;
targetObject as Object

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.