Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Struct ShipInputActions.ShipControlsActions

    Provides access to input actions defined in input action map "ShipControls".

    Namespace: NWH.DWP2.ShipController
    Assembly: NWH.DWP2.dll
    Syntax
    public struct ShipInputActions.ShipControlsActions

    Constructors

    | Edit this page View Source

    ShipControlsActions(ShipInputActions)

    Construct a new instance of the input action map wrapper class.

    Declaration
    public ShipControlsActions(ShipInputActions wrapper)
    Parameters
    Type Name Description
    ShipInputActions wrapper

    Properties

    | Edit this page View Source

    Anchor

    Provides access to the underlying input action "ShipControls/Anchor".

    Declaration
    public InputAction Anchor { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    BowThruster

    Provides access to the underlying input action "ShipControls/BowThruster".

    Declaration
    public InputAction BowThruster { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    EngineStartStop

    Provides access to the underlying input action "ShipControls/EngineStartStop".

    Declaration
    public InputAction EngineStartStop { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    RotateSail

    Provides access to the underlying input action "ShipControls/RotateSail".

    Declaration
    public InputAction RotateSail { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    Steering

    Provides access to the underlying input action "ShipControls/Steering".

    Declaration
    public InputAction Steering { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    SternThruster

    Provides access to the underlying input action "ShipControls/SternThruster".

    Declaration
    public InputAction SternThruster { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    SubmarineDepth

    Provides access to the underlying input action "ShipControls/SubmarineDepth".

    Declaration
    public InputAction SubmarineDepth { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    Throttle

    Provides access to the underlying input action "ShipControls/Throttle".

    Declaration
    public InputAction Throttle { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    Throttle2

    Provides access to the underlying input action "ShipControls/Throttle2".

    Declaration
    public InputAction Throttle2 { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    Throttle3

    Provides access to the underlying input action "ShipControls/Throttle3".

    Declaration
    public InputAction Throttle3 { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    Throttle4

    Provides access to the underlying input action "ShipControls/Throttle4".

    Declaration
    public InputAction Throttle4 { get; }
    Property Value
    Type Description
    InputAction
    | Edit this page View Source

    enabled

    Declaration
    public bool enabled { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    AddCallbacks(IShipControlsActions)

    Adds UnityEngine.InputSystem.InputAction.started, UnityEngine.InputSystem.InputAction.performed and UnityEngine.InputSystem.InputAction.canceled callbacks provided via on all input actions contained in this map.

    Declaration
    public void AddCallbacks(ShipInputActions.IShipControlsActions instance)
    Parameters
    Type Name Description
    ShipInputActions.IShipControlsActions instance

    Callback instance.

    Remarks

    If instance is null or instance have already been added this method does nothing.

    See Also
    ShipInputActions.ShipControlsActions
    | Edit this page View Source

    Disable()

    Declaration
    public void Disable()
    | Edit this page View Source

    Enable()

    Declaration
    public void Enable()
    | Edit this page View Source

    Get()

    Provides access to the underlying input action map instance.

    Declaration
    public InputActionMap Get()
    Returns
    Type Description
    InputActionMap
    | Edit this page View Source

    RemoveCallbacks(IShipControlsActions)

    Unregisters and unregisters all input action callbacks via UnregisterCallbacks(IShipControlsActions).

    Declaration
    public void RemoveCallbacks(ShipInputActions.IShipControlsActions instance)
    Parameters
    Type Name Description
    ShipInputActions.IShipControlsActions instance
    See Also
    UnregisterCallbacks(IShipControlsActions)
    | Edit this page View Source

    SetCallbacks(IShipControlsActions)

    Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via .

    Declaration
    public void SetCallbacks(ShipInputActions.IShipControlsActions instance)
    Parameters
    Type Name Description
    ShipInputActions.IShipControlsActions instance
    Remarks

    If instance is null, calling this method will only unregister all existing callbacks but not register any new callbacks.

    See Also
    AddCallbacks(IShipControlsActions)
    RemoveCallbacks(IShipControlsActions)
    UnregisterCallbacks(IShipControlsActions)

    Operators

    | Edit this page View Source

    implicit operator InputActionMap(ShipControlsActions)

    Implicitly converts an to an instance.

    Declaration
    public static implicit operator InputActionMap(ShipInputActions.ShipControlsActions set)
    Parameters
    Type Name Description
    ShipInputActions.ShipControlsActions set
    Returns
    Type Description
    InputActionMap
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics