Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


activeObject

Returns the actual object selection. Includes Prefabs, non-modifiable objects.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static Object activeObject { get; set; }

Remarks

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