文档

Unity Engine

Unity Engine

targetObject

The inspected object (Read Only).
阅读时间1 分钟最后更新于 1 天前

Definition

public Object targetObject { get; }

Remarks

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