Skip to main content

FlyCamInput

A class in Root.Township, the global namespace.

Generated Unity Input System wrapper for the fly cam (spectator camera) controls, with a single Playing action map (move, look, elevation, sensitivity, show names, mute and so on). Client only.

Constructors​

MemberWhat it is
FlyCamInput()Creates a FlyCamInput with default values.

Fields​

15 private and internal fields
MemberWhat it is
private readonly InputActionMap m_PlayingThe Playing action map.
private readonly InputAction m_Playing_ChangeSensesChange senses action (semicolon, gamepad d-pad down).
private readonly InputAction m_Playing_DecreaseSensitivityLower sensitivity action (gamepad d-pad left).
private readonly InputAction m_Playing_ElevationUp and down action (Q and E, gamepad shoulders).
private readonly InputAction m_Playing_ExplosionModifierExplosion modifier action (Ctrl).
private readonly InputAction m_Playing_IncreaseSensitivityRaise sensitivity action (gamepad d-pad right).
private readonly InputAction m_Playing_LookLook action (mouse delta, gamepad right stick).
private readonly InputAction m_Playing_ModsMuteActionMods mute action (Shift+M).
private readonly InputAction m_Playing_MotionMove action (WASD, gamepad left stick).
private readonly InputAction m_Playing_MuteSelfActionMute self action (M).
private readonly InputAction m_Playing_ShowNamesShow names action (N).
private readonly InputAction m_Playing_SpeedDirectionSpeed up or down action (Shift and Ctrl, gamepad stick presses).
private readonly InputAction m_Playing_ToggleCinematicMovementToggle cinematic movement action (gamepad d-pad up).
private readonly InputAction m_Playing_ToggleCursorToggle cursor action (Backspace).
private FlyCamInput.IPlayingActions m_PlayingActionsCallbackInterfaceCallback object currently hooked to the Playing actions.

Properties​

MemberWhat it is
InputActionAsset asset { get; }The input action asset built from the embedded JSON.
InputBinding? bindingMask { get; set; }Binding mask applied to the whole asset.
IEnumerable<InputBinding> bindings { get; }Every binding in the asset.
ReadOnlyArray<InputControlScheme> controlSchemes { get; }The asset's control schemes (none are defined).
ReadOnlyArray<InputDevice>? devices { get; set; }Restricts the asset to these devices, if set.
FlyCamInput.PlayingActions Playing { get; }The Playing action map: WASD/left stick motion, mouse/right stick look, Q/E elevation, N to show names, M to mute and more.

Methods​

MemberWhat it is
bool Contains(InputAction action)True if the action is in this input asset.
void Disable()Disables every action in the asset.
void Dispose()Destroys the underlying input action asset.
void Enable()Enables every action in the asset.
InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false)Finds an action by name or ID in the asset.
int FindBinding(InputBinding bindingMask, out InputAction action)Finds the first binding matching a mask and returns its index and action.
IEnumerator<InputAction> GetEnumerator()Iterates every action in the asset.
1 private and internal method
MemberWhat it is
private IEnumerator System.Collections.IEnumerable.GetEnumerator()Iterates every action in the asset.

Used in​

Members of other types that take, return or hold a FlyCamInput: