Skip to content

PhysicsLayerRegistry.TryGetLayer(string, int) Method

Definition

Namespace: Brine2D.Physics

Tries to get the layer index for the given name. Returns false if not registered.

public bool TryGetLayer(string name, out int index);

Parameters

name System.String

index System.Int32

Returns

System.Boolean