Class Selection
Assembly: UnityEditor.dll
Syntax
public sealed class Selection
Fields
|
Improve this Doc
View Source
selectionChanged
Declaration
public static Action selectionChanged
Field Value
Properties
activeContext
Declaration
public static Object activeContext { get; }
Property Value
activeGameObject
Declaration
public static GameObject activeGameObject { get; set; }
Property Value
activeInstanceID
Declaration
public static int activeInstanceID { get; set; }
Property Value
activeObject
Declaration
public static Object activeObject { get; set; }
Property Value
Declaration
public static Transform activeTransform { get; set; }
Property Value
assetGUIDs
Declaration
public static string[] assetGUIDs { get; }
Property Value
gameObjects
Declaration
public static GameObject[] gameObjects { get; }
Property Value
instanceIDs
Declaration
public static int[] instanceIDs { get; set; }
Property Value
objects
Declaration
public static Object[] objects { get; set; }
Property Value
Declaration
public static Transform[] transforms { get; }
Property Value
Methods
Contains(Int32)
Declaration
public static bool Contains(int instanceID)
Parameters
Type |
Name |
Description |
Int32 |
instanceID |
|
Returns
|
Improve this Doc
View Source
Contains(Object)
Declaration
public static bool Contains(Object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
|
Improve this Doc
View Source
GetFiltered(Type, SelectionMode)
Declaration
public static Object[] GetFiltered(Type type, SelectionMode mode)
Parameters
Returns
|
Improve this Doc
View Source
GetFiltered<T>(SelectionMode)
Declaration
public static T[] GetFiltered<T>(SelectionMode mode)
Parameters
Returns
Type Parameters
Declaration
public static Transform[] GetTransforms(SelectionMode mode)
Parameters
Returns
SetActiveObjectWithContext(Object, Object)
Declaration
public static void SetActiveObjectWithContext(Object obj, Object context)
Parameters
Extension Methods