Class InputActionMap
A scene-scoped collection of gameplay actions.
public sealed class InputActionMap : IDisposable
- Inheritance
-
InputActionMap
- Implements
- Inherited Members
Constructors
InputActionMap(InputActionSystem)
public InputActionMap(InputActionSystem input)
Parameters
inputInputActionSystem
Properties
Actions
public IReadOnlyCollection<InputAction> Actions { get; }
Property Value
Enabled
public bool Enabled { get; set; }
Property Value
Methods
BindAxis(string, Key, Key)
public InputAction BindAxis(string name, Key negative, Key positive)
Parameters
namestringnegativeKeypositiveKey
Returns
BindButton(string, Key, params Key[])
public InputAction BindButton(string name, Key key, params Key[] alternatives)
Parameters
namestringkeyKeyalternativesKey[]
Returns
BindButton(string, MouseButton, params MouseButton[])
public InputAction BindButton(string name, MouseButton button, params MouseButton[] alternatives)
Parameters
namestringbuttonMouseButtonalternativesMouseButton[]
Returns
BindVector2(string, Key, Key, Key, Key)
public InputAction BindVector2(string name, Key left, Key right, Key up, Key down)
Parameters
namestringleftKeyrightKeyupKeydownKey
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Get(string)
public InputAction Get(string name)
Parameters
namestring
Returns
Remove(string)
public bool Remove(string name)
Parameters
namestring
Returns
TryGet(string, out InputAction?)
public bool TryGet(string name, out InputAction? action)
Parameters
namestringactionInputAction