UI系统
This commit is contained in:
@@ -623,15 +623,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Pause"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""2d22c992-df5f-4d63-8a35-42a1464f7ff3"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Submit"",
|
||||
""type"": ""Button"",
|
||||
@@ -645,7 +636,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""name"": ""Cancel"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""b304717b-ed90-4179-8543-fac11a253476"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
@@ -1015,17 +1006,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""5c3030c2-489b-43cc-92c3-c5eed849affa"",
|
||||
""path"": ""<Keyboard>/escape"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse"",
|
||||
""action"": ""Pause"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""5632ce4b-cb65-4d5a-a133-262727b68139"",
|
||||
@@ -1033,7 +1013,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Gamepad"",
|
||||
""action"": ""Pause"",
|
||||
""action"": ""Cancel"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
@@ -1051,7 +1031,7 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""e6b74122-53a6-4ad1-85fb-dce8de71bf51"",
|
||||
""path"": ""*/{Cancel}"",
|
||||
""path"": ""<Keyboard>/escape"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard&Mouse;Gamepad;Touch;Joystick;XR"",
|
||||
@@ -1335,7 +1315,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
// UI
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Navigate = m_UI.FindAction("Navigate", throwIfNotFound: true);
|
||||
m_UI_Pause = m_UI.FindAction("Pause", throwIfNotFound: true);
|
||||
m_UI_Submit = m_UI.FindAction("Submit", throwIfNotFound: true);
|
||||
m_UI_Cancel = m_UI.FindAction("Cancel", throwIfNotFound: true);
|
||||
m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true);
|
||||
@@ -1714,7 +1693,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputActionMap m_UI;
|
||||
private List<IUIActions> m_UIActionsCallbackInterfaces = new List<IUIActions>();
|
||||
private readonly InputAction m_UI_Navigate;
|
||||
private readonly InputAction m_UI_Pause;
|
||||
private readonly InputAction m_UI_Submit;
|
||||
private readonly InputAction m_UI_Cancel;
|
||||
private readonly InputAction m_UI_Point;
|
||||
@@ -1744,10 +1722,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// </summary>
|
||||
public InputAction @Navigate => m_Wrapper.m_UI_Navigate;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/Pause".
|
||||
/// </summary>
|
||||
public InputAction @Pause => m_Wrapper.m_UI_Pause;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/Submit".
|
||||
/// </summary>
|
||||
public InputAction @Submit => m_Wrapper.m_UI_Submit;
|
||||
@@ -1828,9 +1802,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Navigate.started += instance.OnNavigate;
|
||||
@Navigate.performed += instance.OnNavigate;
|
||||
@Navigate.canceled += instance.OnNavigate;
|
||||
@Pause.started += instance.OnPause;
|
||||
@Pause.performed += instance.OnPause;
|
||||
@Pause.canceled += instance.OnPause;
|
||||
@Submit.started += instance.OnSubmit;
|
||||
@Submit.performed += instance.OnSubmit;
|
||||
@Submit.canceled += instance.OnSubmit;
|
||||
@@ -1884,9 +1855,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
@Navigate.started -= instance.OnNavigate;
|
||||
@Navigate.performed -= instance.OnNavigate;
|
||||
@Navigate.canceled -= instance.OnNavigate;
|
||||
@Pause.started -= instance.OnPause;
|
||||
@Pause.performed -= instance.OnPause;
|
||||
@Pause.canceled -= instance.OnPause;
|
||||
@Submit.started -= instance.OnSubmit;
|
||||
@Submit.performed -= instance.OnSubmit;
|
||||
@Submit.canceled -= instance.OnSubmit;
|
||||
@@ -2134,13 +2102,6 @@ public partial class @PlayerInputActions: IInputActionCollection2, IDisposable
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnNavigate(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Pause" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// </summary>
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnPause(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Submit" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// </summary>
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
||||
|
||||
@@ -537,15 +537,6 @@
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "Pause",
|
||||
"type": "Button",
|
||||
"id": "2d22c992-df5f-4d63-8a35-42a1464f7ff3",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "Submit",
|
||||
"type": "Button",
|
||||
@@ -559,7 +550,7 @@
|
||||
"name": "Cancel",
|
||||
"type": "Button",
|
||||
"id": "b304717b-ed90-4179-8543-fac11a253476",
|
||||
"expectedControlType": "Button",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
@@ -929,17 +920,6 @@
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": true
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "5c3030c2-489b-43cc-92c3-c5eed849affa",
|
||||
"path": "<Keyboard>/escape",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse",
|
||||
"action": "Pause",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "5632ce4b-cb65-4d5a-a133-262727b68139",
|
||||
@@ -947,7 +927,7 @@
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Gamepad",
|
||||
"action": "Pause",
|
||||
"action": "Cancel",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
@@ -965,7 +945,7 @@
|
||||
{
|
||||
"name": "",
|
||||
"id": "e6b74122-53a6-4ad1-85fb-dce8de71bf51",
|
||||
"path": "*/{Cancel}",
|
||||
"path": "<Keyboard>/escape",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard&Mouse;Gamepad;Touch;Joystick;XR",
|
||||
|
||||
Reference in New Issue
Block a user