Class PhysicsEventsExtensions
Inheritance
System.Object
PhysicsEventsExtensions
Assembly: cs.temp.dll.dll
Syntax
public static class PhysicsEventsExtensions
Methods
GetCallbackComponentOnTrigger<T>(PhysicsEvents.TriggerBeginEvent, Boolean)
Gets the triggerShape
as a if casting is possible.
Returns null if the set callbackTarget is not a component.
Declaration
public static T GetCallbackComponentOnTrigger<T>(this PhysicsEvents.TriggerBeginEvent beginEvent, bool checkValidation = false)
where T : Component
Parameters
| Type |
Name |
Description |
| PhysicsEvents.TriggerBeginEvent |
beginEvent |
|
| System.Boolean |
checkValidation |
|
Returns
Type Parameters
GetCallbackComponentOnVisitor<T>(PhysicsEvents.TriggerBeginEvent, Boolean)
Gets the visiting
as a if casting is possible.
Returns null if the set callbackTarget is not a component.
Declaration
public static T GetCallbackComponentOnVisitor<T>(this PhysicsEvents.TriggerBeginEvent beginEvent, bool checkValidation = false)
where T : Component
Parameters
| Type |
Name |
Description |
| PhysicsEvents.TriggerBeginEvent |
beginEvent |
|
| System.Boolean |
checkValidation |
|
Returns
Type Parameters
Declaration
public static bool TryGetCallbackComponentOnShapeA<T>(this PhysicsEvents.ContactBeginEvent beginEvent, out T component, bool checkValidation = false)
Parameters
| Type |
Name |
Description |
| PhysicsEvents.ContactBeginEvent |
beginEvent |
|
| T |
component |
|
| System.Boolean |
checkValidation |
|
Returns
| Type |
Description |
| System.Boolean |
|
Type Parameters
Declaration
public static bool TryGetCallbackComponentOnShapeB<T>(this PhysicsEvents.ContactBeginEvent beginEvent, out T component, bool checkValidation = false)
Parameters
| Type |
Name |
Description |
| PhysicsEvents.ContactBeginEvent |
beginEvent |
|
| T |
component |
|
| System.Boolean |
checkValidation |
|
Returns
| Type |
Description |
| System.Boolean |
|
Type Parameters
TryGetCallbackComponentOnTrigger<T>(PhysicsEvents.TriggerBeginEvent, out T, Boolean)
Tries to get the
as a certain type of component and returns true or false if that type of component was set for the callback target.
Declaration
public static bool TryGetCallbackComponentOnTrigger<T>(this PhysicsEvents.TriggerBeginEvent beginEvent, out T component, bool checkValidation = false)
where T : Component
Parameters
| Type |
Name |
Description |
| PhysicsEvents.TriggerBeginEvent |
beginEvent |
|
| T |
component |
|
| System.Boolean |
checkValidation |
|
Returns
| Type |
Description |
| System.Boolean |
|
Type Parameters
TryGetCallbackComponentOnVisitor<T>(PhysicsEvents.TriggerBeginEvent, out T, Boolean)
Tries to get the
as a certain type of component and returns true or false if that type of component was set for the callback target.
Declaration
public static bool TryGetCallbackComponentOnVisitor<T>(this PhysicsEvents.TriggerBeginEvent beginEvent, out T component, bool checkValidation = false)
where T : Component
Parameters
| Type |
Name |
Description |
| PhysicsEvents.TriggerBeginEvent |
beginEvent |
|
| T |
component |
|
| System.Boolean |
checkValidation |
|
Returns
| Type |
Description |
| System.Boolean |
|
Type Parameters