Class PhysicsEventLayerExtensions
- Namespace
- LunyScript.Api /
- Assembly
- LunyScript.dll
public static class PhysicsEventLayerExtensions
Expand Details ...
- 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
| Type | Name | Description |
|---|---|---|
b |
||
layerMask |
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
| Type | Name | Description |
|---|---|---|
b |
||
layerNames |
Returns
Type Parameters
T