IndexOf(string)
Finds the position of a channel in the set by name.
阅读时间1 分钟最后更新于 14 天前
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]