文档

Unity Engine

Unity Engine

activeInstanceID

Returns the instanceID of the actual object selection. Includes Prefabs, non-modifiable objects.
阅读时间1 分钟最后更新于 1 天前

Definition

public static int activeInstanceID { get; set; }

Remarks

When working with objects that are primarily in a Scene, it is strongly recommended to use Selection.activeTransform instead.