Class SelectionGroupList
A serializable list of SelectionGroups.
Namespace: Unity.SelectionGroups
Syntax
[Serializable]
public class SelectionGroupList : ISerializationCallbackReceiver, IList<SelectionGroup>, ICollection<SelectionGroup>, IEnumerable<SelectionGroup>, IEnumerable
Properties
Count
The number of instances in this list.
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
IsReadOnly
Is this list readonly? Always false.
Declaration
public bool IsReadOnly { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Item[Int32]
Fetch a selectiongroup by group id.
Declaration
public SelectionGroup this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index |
Property Value
| Type | Description |
|---|---|
| SelectionGroup |
Methods
Add(SelectionGroup)
Add a selection group to this list.
Declaration
public void Add(SelectionGroup group)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionGroup | group |
Clear()
Clear this list.
Declaration
public void Clear()
Contains(SelectionGroup)
Checks if this list contains a selection group.
Declaration
public bool Contains(SelectionGroup item)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionGroup | item |
Returns
| Type | Description |
|---|---|
| Boolean | True if found, otherwise false. |
CopyTo(SelectionGroup[], Int32)
Copies this list into an array.
Declaration
public void CopyTo(SelectionGroup[] array, int arrayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionGroup[] | array | |
| Int32 | arrayIndex |
GetEnumerator()
Enumerate through all groups in this list.
Declaration
public IEnumerator<SelectionGroup> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<SelectionGroup> |
IndexOf(SelectionGroup)
Fetch index of a selection group in this list.
Declaration
public int IndexOf(SelectionGroup item)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionGroup | item |
Returns
| Type | Description |
|---|---|
| Int32 |
Insert(Int32, SelectionGroup)
Inser a selection group at an index.
Declaration
public void Insert(int index, SelectionGroup item)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index | |
| SelectionGroup | item |
OnAfterDeserialize()
The deserialization method for this instance.
Declaration
public void OnAfterDeserialize()
Implements
OnBeforeSerialize()
The serialization method for this instance.
Declaration
public void OnBeforeSerialize()
Implements
Remove(SelectionGroup)
Remove a selection group from this list.
Declaration
public bool Remove(SelectionGroup group)
Parameters
| Type | Name | Description |
|---|---|---|
| SelectionGroup | group |
Returns
| Type | Description |
|---|---|
| Boolean | True if the group was found, otherwise false. |
RemoveAt(Int32)
Remove selection group at an index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index |