此示例项目是为了演示 Unity 输入系统的各种工具和功能。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

220 行
7.6 KiB

{
"name": "InputActions_Player",
"maps": [
{
"name": "Player Controls",
"id": "cb4067f3-a685-4c86-b9ea-46a6eabfada7",
"actions": [
{
"name": "Movement",
"type": "Value",
"id": "548e32fd-77d1-40e5-8197-32ca56b41bc0",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
},
{
"name": "Attack",
"type": "Button",
"id": "10fecf58-9483-40e0-ae20-15c8d01a4288",
"expectedControlType": "",
"processors": "",
"interactions": "Press"
},
{
"name": "OpenPauseMenu",
"type": "Button",
"id": "a70a208e-b491-4921-b460-a0144030ef2a",
"expectedControlType": "Button",
"processors": "",
"interactions": "Press"
}
],
"bindings": [
{
"name": "WASD",
"id": "99258992-afbc-4513-a4ee-24146566e341",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Movement",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "d57e0987-ea9f-4b18-9042-239931d4c060",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "75168890-922f-4122-9968-1ecac0f33c28",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "54b99838-0c45-421e-af38-b1f25b3f6927",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "77680fb0-0b9d-4a74-97de-9e3149ad6526",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "",
"id": "df04a4e1-fc36-4ebd-b050-536736220da7",
"path": "<Gamepad>/leftStick",
"interactions": "",
"processors": "",
"groups": "Gamepad",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "42716e15-291c-4c71-8ded-0d03279959df",
"path": "<Keyboard>/m",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "OpenPauseMenu",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "7e04bd42-932a-47a3-8864-5ff3db25c21b",
"path": "<Gamepad>/start",
"interactions": "",
"processors": "",
"groups": "Gamepad",
"action": "OpenPauseMenu",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "3e6d6425-a990-4434-b58d-57464db363d4",
"path": "<Gamepad>/buttonSouth",
"interactions": "",
"processors": "",
"groups": "Gamepad",
"action": "Attack",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "b12426a0-38ab-4d90-95e0-6840fcd30db6",
"path": "<Keyboard>/e",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "Attack",
"isComposite": false,
"isPartOfComposite": false
}
]
},
{
"name": "Menu Controls",
"id": "0914fb5b-51f6-4b26-9ed7-a3e72d065118",
"actions": [
{
"name": "ClosePauseMenu",
"type": "Button",
"id": "e773b1f9-ce5b-4fa2-9c1f-d194202c43b7",
"expectedControlType": "",
"processors": "",
"interactions": "Press"
}
],
"bindings": [
{
"name": "",
"id": "dfac3b8e-d348-4a7a-b60b-14745c641340",
"path": "<Keyboard>/m",
"interactions": "",
"processors": "",
"groups": "Keyboard",
"action": "ClosePauseMenu",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "f509a7b5-e79a-485e-ba2f-da5431d6fe4c",
"path": "<Gamepad>/start",
"interactions": "",
"processors": "",
"groups": "Gamepad",
"action": "ClosePauseMenu",
"isComposite": false,
"isPartOfComposite": false
}
]
}
],
"controlSchemes": [
{
"name": "Gamepad",
"bindingGroup": "Gamepad",
"devices": [
{
"devicePath": "<Gamepad>",
"isOptional": false,
"isOR": false
}
]
},
{
"name": "Keyboard",
"bindingGroup": "Keyboard",
"devices": [
{
"devicePath": "<Keyboard>",
"isOptional": false,
"isOR": false
}
]
},
{
"name": "Touchscreen",
"bindingGroup": "Touchscreen",
"devices": [
{
"devicePath": "<Touchscreen>",
"isOptional": false,
"isOR": false
}
]
}
]
}