Unity Engine documentationScript ReferenceUnityEditorSelectioncountReturns the number of objects in the Selection.Read time 1 minuteLast updated a month agoDefinition Type: Property Namespace: UnityEditor Assembly: UnityEditor.CoreModule public static int count { get; }