NWH Common
Search Results for

    Show / Hide Table of Contents

    Class InputProvider

    Base class from which all input providers inherit.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    InputProvider
    SceneInputProviderBase
    Namespace: NWH.Common.Input
    Assembly: NWH.Common.dll
    Syntax
    public abstract class InputProvider : MonoBehaviour

    Fields

    | Edit this page View Source

    Instances

    List of all InputProviders in the scene.

    Declaration
    public static List<InputProvider> Instances
    Field Value
    Type Description
    List<InputProvider>

    Methods

    | Edit this page View Source

    Awake()

    Declaration
    public virtual void Awake()
    | Edit this page View Source

    CombinedInput<T>(Func<T, bool>)

    Returns combined input of all InputProviders present in the scene. Result will be positive if any InputProvider has the selected input set to true. T is a type of InputProvider that the input will be retrieved from.

    Declaration
    public static bool CombinedInput<T>(Func<T, bool> selector) where T : InputProvider
    Parameters
    Type Name Description
    Func<T, bool> selector
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    CombinedInput<T>(Func<T, int>)

    Returns combined input of all InputProviders present in the scene. Result will be a sum of all inputs of the selected type. T is a type of InputProvider that the input will be retrieved from.

    Declaration
    public static int CombinedInput<T>(Func<T, int> selector) where T : InputProvider
    Parameters
    Type Name Description
    Func<T, int> selector
    Returns
    Type Description
    int
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    CombinedInput<T>(Func<T, float>)

    Returns combined input of all InputProviders present in the scene. Result will be a sum of all inputs of the selected type. T is a type of InputProvider that the input will be retrieved from.

    Declaration
    public static float CombinedInput<T>(Func<T, float> selector) where T : InputProvider
    Parameters
    Type Name Description
    Func<T, float> selector
    Returns
    Type Description
    float
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    CombinedInput<T>(Func<T, Vector2>)

    Returns combined input of all InputProviders present in the scene. Result will be a sum of all inputs of the selected type. T is a type of InputProvider that the input will be retrieved from.

    Declaration
    public static Vector2 CombinedInput<T>(Func<T, Vector2> selector) where T : InputProvider
    Parameters
    Type Name Description
    Func<T, Vector2> selector
    Returns
    Type Description
    Vector2
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    OnDestroy()

    Declaration
    public virtual void OnDestroy()
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics