Documentation

Unity Engine

Unity Engine

activeInstanceID

Returns the instanceID of the actual object selection. Includes Prefabs, non-modifiable objects.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
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.