Home

InputActionAsset

InputActionAsset is a Unity class in the UnityEngine.InputSystem namespace that represents a collection of input actions used by the new Input System. It is a ScriptableObject asset that stores one or more input action maps, each containing actions and their bindings to controls such as keyboards, mice, gamepads, and touch devices.

The asset’s structure centers on action maps, which group related actions for a particular context or device.

Editor use and generation: InputActionAsset is created and edited in the Input Actions editor. It is saved

Runtime usage: At runtime, an InputActionAsset can be enabled or disabled, which enables or disables all contained

Persistence and sharing: As a ScriptableObject asset, InputActionAsset can be reused across scenes and shared between

Notes: While primarily editor-driven, the asset is designed to be durable at runtime, supporting dynamic input

Each
InputAction
within
a
map
defines
a
specific
input,
and
bindings
describe
which
controls
can
trigger
that
action.
Bindings
can
be
configured
to
support
multiple
devices
and
control
schemes,
enabling
flexible
input
configurations
for
different
platforms.
as
a
project
asset
with
a
.inputactions
extension
and
can
be
configured
to
expose
a
C#
class
that
provides
strongly
typed
access
to
actions,
improving
developer
ergonomics
when
writing
input-handling
code.
maps
and
actions.
It
can
be
referenced
directly
from
scripts,
assigned
to
a
PlayerInput
component,
or
used
with
other
parts
of
the
Input
System.
You
can
locate
specific
maps
or
actions
by
name
via
FindActionMap
and
FindAction.
components.
This
makes
it
convenient
to
implement
consistent
input
configurations
across
an
application
or
project.
handling
and
cross-device
control
schemes
without
requiring
code
changes.