PhysicsLayerRegistry.GetLayer(string) Method
Returns the layer index for the given name.
public int GetLayer(string name);
Parameters¶
name System.String
Returns¶
Exceptions¶
System.Collections.Generic.KeyNotFoundException
Thrown when the name has not been registered.