Table of Contents

Class PhysicsEventLayerExtensions

Namespace
LunyScript
Assembly
LunyScript.dll
public static class PhysicsEventLayerExtensions
Inheritance
object
PhysicsEventLayerExtensions

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

b PhysicsEventBuilder<T>
layerMask int

Returns

PhysicsEventBuilder<CollisionBuilderMasked>

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

b PhysicsEventBuilder<T>
layerNames string[]

Returns

PhysicsEventBuilder<CollisionBuilderMasked>

Type Parameters

T