SF Tool Documentation
Search Results for

    Show / Hide Table of Contents

    Class PhysicsEventsExtensions

    Inheritance
    System.Object
    PhysicsEventsExtensions
    Namespace: SF.PhysicsLowLevel
    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 Description
    T
    Type Parameters
    Name Description
    T

    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 Description
    T
    Type Parameters
    Name Description
    T

    TryGetCallbackComponentOnShapeA<T>(PhysicsEvents.ContactBeginEvent, out T, Boolean)

    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
    Name Description
    T

    TryGetCallbackComponentOnShapeB<T>(PhysicsEvents.ContactBeginEvent, out T, Boolean)

    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
    Name Description
    T

    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
    Name Description
    T

    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
    Name Description
    T
    In This Article
    Back to top Generated by DocFX