Class PhysicsEventLayerExtensions
- Namespace
- LunyScript.ScriptApi
- Assembly
- LunyScript.dll
public static class PhysicsEventLayerExtensions
- Inheritance
-
objectPhysicsEventLayerExtensions
Methods
Masked<T>(PhysicsEventBuilder<T>, int)
Only react when the other object's layer is included in the given bitmask. Mutually exclusive with Layered() — unavailable after Layered() is called.
public static PhysicsEventBuilder<CollisionBuilderMasked> Masked<T>(this PhysicsEventBuilder<T> b, int layerMask) where T : struct, ICollisionBuilderStart
Parameters
bPhysicsEventBuilder<T>layerMaskint
Returns
Type Parameters
T
Masked<T>(PhysicsEventBuilder<T>, params string[])
Only react when the other object's layer name matches one of the given names (OR logic). Mutually exclusive with Layered() — unavailable after Layered() is called.
public static PhysicsEventBuilder<CollisionBuilderMasked> Masked<T>(this PhysicsEventBuilder<T> b, params string[] layerNames) where T : struct, ICollisionBuilderStart
Parameters
bPhysicsEventBuilder<T>layerNamesstring[]
Returns
Type Parameters
T