Class SelectionGroup
This class is the Editor-only container for selection group information and members.
Namespace: Unity.SelectionGroups
Syntax
[Serializable]
public class SelectionGroup : IEnumerable<Object>, IEnumerable, ISerializationCallbackReceiver
Fields
color
A color assigned to the group.
Declaration
public Color color
Field Value
| Type | Description |
|---|---|
| Color |
exclude
Allows this group to exclude the members of other selection group.
Declaration
public SelectionGroupList exclude
Field Value
| Type | Description |
|---|---|
| SelectionGroupList |
groupId
Unique ID of the group.
Declaration
public int groupId
Field Value
| Type | Description |
|---|---|
| Int32 |
name
The name of the group.
Declaration
public string name
Field Value
| Type | Description |
|---|---|
| String |
query
A GoQL query string which will populate the group with matching members.
Declaration
public string query
Field Value
| Type | Description |
|---|---|
| String |
showMembers
Should this group expand the list of members in the UI.
Declaration
public bool showMembers
Field Value
| Type | Description |
|---|---|
| Boolean |
Methods
GetEnumerator()
Enumerator for all members of this group.
Declaration
public IEnumerator<Object> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<Object> |
OnAfterDeserialize()
The deserialization callback.
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
The serialization callback.
Declaration
public void OnBeforeSerialize()