You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Packages/com.unity.inputsystem/Documentation~/ActionAssets.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ An Input Action Asset is an Asset containing [Input Actions](Actions.md) as well
8
8
9
9
## Creating Input Action Assets
10
10
11
-
To create an Asset containing [Input Acions](Actions.md) in Unity, right-click in the __Project__ window or go to __Assets > Create > Input Actions__in Unity's main menu.
11
+
To create an Asset containing [Input Actions](Actions.md) in Unity, right-click in the __Project__ window or go to __Assets > Create > Input Actions__from Unity's main menu.
12
12
13
13
## Editing Input Action Assets
14
14
15
-
To bring up the Action editor, double-click an `.inputactions`asset in the Project Browser or click the __Edit Asset__ button in the inspector for that Asset. You can have more than one editor window open at the same time, but not for the same Asset.
15
+
To bring up the Action editor, double-click an `.inputactions`Asset in the Project Browser, or click the __Edit Asset__ button in the inspector for that Asset. You can have more than one editor window open at the same time, but not for the same Asset.
16
16
17
17

18
18
@@ -24,7 +24,7 @@ By default, Unity doesn't save edits you make in the Action Asset window when yo
24
24
25
25
>__Note__: This setting affects all `.inputactions` Assets, and persists across Unity Editor sessions.
26
26
27
-
The editor window is divided into three panes.
27
+
The editor window is divided into three panes:
28
28
29
29
1. The left pane lists the Action Maps in the Asset. Each Map is a collection of Actions that you can enable or disable in bulk.
30
30
2. The middle pane contains the Actions in the currently selected Action Map, and the bindings associated with each Action.
@@ -34,16 +34,16 @@ Use the following keyboard shortcuts to quickly trigger common operations:
34
34
35
35
|Shortcut (Mac)|Shortcut (Windows)|Description|
36
36
|--------------|------------------|-----------|
37
-
|⌘X, ⌘C, ⌘V|Ctrl-X, Ctrl-C, Ctrl-V|Cut, Copy and Paste. Can be used on Actions, Action Maps and Bindings.|
38
-
|⌘D|Ctrl-D|Duplicate. Can be used on Actions, Action Maps and Bindings.|
39
-
|⌘⌫|Del|Delete. Can be used on Actions, Action Maps and Bindings.|
37
+
|⌘X, ⌘C, ⌘V|Ctrl-X, Ctrl-C, Ctrl-V|Cut, Copy, and Paste. Can be used on Actions, Action Maps, and Bindings.|
38
+
|⌘D|Ctrl-D|Duplicate. Can be used on Actions, Action Maps, and Bindings.|
39
+
|⌘⌫|Del|Delete. Can be used on Actions, Action Maps, and Bindings.|
40
40
|⌥S|Alt-S|Save.|
41
41
|⌥M|Alt-M|Add Action Map.|
42
42
|⌥A|Alt-A|Add Action.|
43
43
|⌥B|Alt-B|Add Binding.|
44
44
45
45
46
-
>__Tip__: You can search for Devices and/or Control Schemes directly from the search box. For example, "d:gamepad" filters for bindings to gamepad Devices, whereas "g:gamepad" filters for bindings in the "gamepad" Control Scheme. Matching is case-insensitive and will match any partial name.
46
+
>__Tip__: You can search for Devices and/or Control Schemes directly from the search box. For example, "d:gamepad" filters for bindings to gamepad Devices, whereas "g:gamepad" filters for bindings in the "gamepad" Control Scheme. Matching is case-insensitive and matches any partial name.
47
47
48
48
### Editing Action Maps
49
49
@@ -52,7 +52,7 @@ Use the following keyboard shortcuts to quickly trigger common operations:
* To add a new Action Map, click the plus icon in the header of the Action Map column.
55
-
* To rename an existing Action Map, either long-click the name, or right-click the action map and select __Rename__ from the context menu.
55
+
* To rename an existing Action Map, either long-click the name, or right-click the Action Map and select __Rename__ from the context menu.
56
56
* To delete an existing Action Map, either right-click it and select __Delete__ from the context menu, or use the Delete key (Windows) / ⌘⌫ (Mac).
57
57
* To duplicate an existing Action Map, either right-click it and select __Duplicate__ from the context menu, or use Ctrl-D (Windows) / ⌘D (Mac).
58
58
@@ -81,7 +81,7 @@ If you select a Binding, you can edit its properties in the right-hand pane of t
81
81
82
82
#### Picking Controls
83
83
84
-
The most important property of any Binding is the [control path](Controls.md#control-paths) it's bound to. To edit it, open the __Path__ drop-down list. This will pop up a Control picker window.
84
+
The most important property of any Binding is the [control path](Controls.md#control-paths) it's bound to. To edit it, open the __Path__ drop-down list. This pops up a Control picker window.
85
85
86
86

87
87
@@ -131,8 +131,8 @@ using UnityEngine.InputSystem;
// MyPlayerControls is the C# class that has been generated for us.
135
-
// It encapsulates the data from the .inputactions asset we created
134
+
// MyPlayerControls is the C# class that Unity generated.
135
+
// It encapsulates the data from the .inputactions asset we created
136
136
// and automatically looks up all the maps and actions for us.
137
137
MyPlayerControlscontrols;
138
138
@@ -168,6 +168,6 @@ public class MyPlayerScript : MonoBehaviour, IGameplayActions
168
168
169
169
### Using Action Assets with `PlayerInput`
170
170
171
-
The [`PlayerInput`](Components.md#playerinput-component) component provides a convenient way to handle input for one or multiple players. It requires you to set up all your Actions in an Input Action Asset, which you can then assign to the [`PlayerInput`](Components.md#playerinput-component) component. [`PlayerInput`](Components.md#playerinput-component) can then automatically handle activating Action Maps and selecting Control Schemes for you. Check the documentation on [GameObject Components for Input](Components.md) to learn more.
171
+
The [`PlayerInput`](Components.md#playerinput-component) component provides a convenient way to handle input for one or multiple players. It requires you to set up all your Actions in an Input Action Asset, which you can then assign to the [`PlayerInput`](Components.md#playerinput-component) component. [`PlayerInput`](Components.md#playerinput-component) can then automatically handle activating Action Maps and selecting Control Schemes for you. To learn more, see the documentation on [GameObject Components for Input](Components.md).
0 commit comments