NameToID(string)
Returns the id given the name. Will return 0 if an invalid name was given.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static int NameToID(string name)
Parameters
The name of the layer.
Returns
Type | Description |
|---|---|
| int | Returns the unique id of the layer with |