Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 202 additions & 0 deletions Assets/InputActions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
// GENERATED AUTOMATICALLY FROM 'Assets/InputActions.inputactions'

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.InputSystem;
using UnityEngine.InputSystem.Utilities;

public class @InputActions : IInputActionCollection, IDisposable
{
public InputActionAsset asset { get; }
public @InputActions()
{
asset = InputActionAsset.FromJson(@"{
""name"": ""InputActions"",
""maps"": [
{
""name"": ""New action map"",
""id"": ""8a39d33c-4e12-467a-ac3c-b632be26e494"",
""actions"": [
{
""name"": ""Movement"",
""type"": ""PassThrough"",
""id"": ""9d61c63b-e8ca-4db1-a3e7-fc0f33816105"",
""expectedControlType"": ""Vector2"",
""processors"": """",
""interactions"": """"
}
],
""bindings"": [
{
""name"": ""Move"",
""id"": ""78a69b6d-4740-4944-a79d-c20be75044d2"",
""path"": ""2DVector"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Movement"",
""isComposite"": true,
""isPartOfComposite"": false
},
{
""name"": ""up"",
""id"": ""972fcf4d-9087-4a4e-9d42-61d10805c46d"",
""path"": ""<Keyboard>/w"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Movement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""down"",
""id"": ""6b152c48-5254-4699-ab5b-633a26088446"",
""path"": ""<Keyboard>/s"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Movement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""left"",
""id"": ""cbeed83e-342d-4314-b420-384ae5989b16"",
""path"": ""<Keyboard>/a"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Movement"",
""isComposite"": false,
""isPartOfComposite"": true
},
{
""name"": ""right"",
""id"": ""f231c76b-c753-49ad-a379-5e0009372e77"",
""path"": ""<Keyboard>/d"",
""interactions"": """",
""processors"": """",
""groups"": """",
""action"": ""Movement"",
""isComposite"": false,
""isPartOfComposite"": true
}
]
}
],
""controlSchemes"": [
{
""name"": ""New control scheme"",
""bindingGroup"": ""New control scheme"",
""devices"": [
{
""devicePath"": ""<Keyboard>"",
""isOptional"": false,
""isOR"": false
},
{
""devicePath"": ""<Mouse>"",
""isOptional"": false,
""isOR"": false
}
]
}
]
}");
// New action map
m_Newactionmap = asset.FindActionMap("New action map", throwIfNotFound: true);
m_Newactionmap_Movement = m_Newactionmap.FindAction("Movement", throwIfNotFound: true);
}

public void Dispose()
{
UnityEngine.Object.Destroy(asset);
}

public InputBinding? bindingMask
{
get => asset.bindingMask;
set => asset.bindingMask = value;
}

public ReadOnlyArray<InputDevice>? devices
{
get => asset.devices;
set => asset.devices = value;
}

public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes;

public bool Contains(InputAction action)
{
return asset.Contains(action);
}

public IEnumerator<InputAction> GetEnumerator()
{
return asset.GetEnumerator();
}

IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}

public void Enable()
{
asset.Enable();
}

public void Disable()
{
asset.Disable();
}

// New action map
private readonly InputActionMap m_Newactionmap;
private INewactionmapActions m_NewactionmapActionsCallbackInterface;
private readonly InputAction m_Newactionmap_Movement;
public struct NewactionmapActions
{
private @InputActions m_Wrapper;
public NewactionmapActions(@InputActions wrapper) { m_Wrapper = wrapper; }
public InputAction @Movement => m_Wrapper.m_Newactionmap_Movement;
public InputActionMap Get() { return m_Wrapper.m_Newactionmap; }
public void Enable() { Get().Enable(); }
public void Disable() { Get().Disable(); }
public bool enabled => Get().enabled;
public static implicit operator InputActionMap(NewactionmapActions set) { return set.Get(); }
public void SetCallbacks(INewactionmapActions instance)
{
if (m_Wrapper.m_NewactionmapActionsCallbackInterface != null)
{
@Movement.started -= m_Wrapper.m_NewactionmapActionsCallbackInterface.OnMovement;
@Movement.performed -= m_Wrapper.m_NewactionmapActionsCallbackInterface.OnMovement;
@Movement.canceled -= m_Wrapper.m_NewactionmapActionsCallbackInterface.OnMovement;
}
m_Wrapper.m_NewactionmapActionsCallbackInterface = instance;
if (instance != null)
{
@Movement.started += instance.OnMovement;
@Movement.performed += instance.OnMovement;
@Movement.canceled += instance.OnMovement;
}
}
}
public NewactionmapActions @Newactionmap => new NewactionmapActions(this);
private int m_NewcontrolschemeSchemeIndex = -1;
public InputControlScheme NewcontrolschemeScheme
{
get
{
if (m_NewcontrolschemeSchemeIndex == -1) m_NewcontrolschemeSchemeIndex = asset.FindControlSchemeIndex("New control scheme");
return asset.controlSchemes[m_NewcontrolschemeSchemeIndex];
}
}
public interface INewactionmapActions
{
void OnMovement(InputAction.CallbackContext context);
}
}
11 changes: 11 additions & 0 deletions Assets/InputActions.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

94 changes: 94 additions & 0 deletions Assets/InputActions.inputactions
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"name": "InputActions",
"maps": [
{
"name": "New action map",
"id": "8a39d33c-4e12-467a-ac3c-b632be26e494",
"actions": [
{
"name": "Movement",
"type": "PassThrough",
"id": "9d61c63b-e8ca-4db1-a3e7-fc0f33816105",
"expectedControlType": "Vector2",
"processors": "",
"interactions": ""
}
],
"bindings": [
{
"name": "Move",
"id": "78a69b6d-4740-4944-a79d-c20be75044d2",
"path": "2DVector",
"interactions": "",
"processors": "",
"groups": "",
"action": "Movement",
"isComposite": true,
"isPartOfComposite": false
},
{
"name": "up",
"id": "972fcf4d-9087-4a4e-9d42-61d10805c46d",
"path": "<Keyboard>/w",
"interactions": "",
"processors": "",
"groups": "",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "down",
"id": "6b152c48-5254-4699-ab5b-633a26088446",
"path": "<Keyboard>/s",
"interactions": "",
"processors": "",
"groups": "",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "left",
"id": "cbeed83e-342d-4314-b420-384ae5989b16",
"path": "<Keyboard>/a",
"interactions": "",
"processors": "",
"groups": "",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
},
{
"name": "right",
"id": "f231c76b-c753-49ad-a379-5e0009372e77",
"path": "<Keyboard>/d",
"interactions": "",
"processors": "",
"groups": "",
"action": "Movement",
"isComposite": false,
"isPartOfComposite": true
}
]
}
],
"controlSchemes": [
{
"name": "New control scheme",
"bindingGroup": "New control scheme",
"devices": [
{
"devicePath": "<Keyboard>",
"isOptional": false,
"isOR": false
},
{
"devicePath": "<Mouse>",
"isOptional": false,
"isOR": false
}
]
}
]
}
14 changes: 14 additions & 0 deletions Assets/InputActions.inputactions.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions Assets/New Render Texture.renderTexture
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!84 &8400000
RenderTexture:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: New Render Texture
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_ForcedFallbackFormat: 4
m_DownscaleFallback: 0
m_IsAlphaChannelOptional: 0
serializedVersion: 3
m_Width: 256
m_Height: 256
m_AntiAliasing: 1
m_MipCount: -1
m_DepthFormat: 2
m_ColorFormat: 8
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_UseDynamicScale: 0
m_BindMS: 0
m_EnableCompatibleFormat: 1
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 1
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1
8 changes: 8 additions & 0 deletions Assets/New Render Texture.renderTexture.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading