IndexOf(string)
Finds the position of a channel in the set by name.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public int IndexOf(string name)
Parameters
Name of the channel.
Returns
Type | Description |
|---|---|
| int | The position of the channel. If the set has no channel with that name, returns -1. |
Remarks
This method compares the name with each channel in turn. To access a channel often, look up its position once and then use the position with .
this[int]