Class SelectionGroupManager
The Editor only manager for selection groups.
Inherited Members
Namespace: Unity.SelectionGroups
Syntax
public class SelectionGroupManager : ScriptableObject, IEnumerable<SelectionGroup>, IEnumerable, ISerializationCallbackReceiver
Properties
instance
The single instance of the SelectionGroupManager.
Declaration
public static SelectionGroupManager instance { get; }
Property Value
| Type | Description |
|---|---|
| SelectionGroupManager |
Methods
DuplicateGroup(Int32)
Duplicate the group specified by groupId.
Declaration
public void DuplicateGroup(int groupId)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | groupId |
GetEnumerator()
Enumerate over all selection groups in this manager.
Declaration
public IEnumerator<SelectionGroup> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<SelectionGroup> |
GetGroupNames()
Fetch an array of selection group names.
Declaration
public string[] GetGroupNames()
Returns
| Type | Description |
|---|---|
| String[] |
OnAfterDeserialize()
The deserialization method for this class.
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
The serialization method for this class.
Declaration
public void OnBeforeSerialize()
Implements
RemoveGroup(Int32)
Remove a selection group.
Declaration
public void RemoveGroup(int groupId)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | groupId |