diff options
Diffstat (limited to 'Assets/Samples/Input System/1.14.0/Simple Demo')
47 files changed, 4034 insertions, 0 deletions
diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/.sample.json b/Assets/Samples/Input System/1.14.0/Simple Demo/.sample.json new file mode 100644 index 0000000..f12e390 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/.sample.json @@ -0,0 +1,4 @@ +{ + "displayName": "Simple Demo", + "description": "A walkthrough of a simple character controller that demonstrates several techniques for working with the input system. See the README.md file in the sample for details." +}
\ No newline at end of file diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/Environment.prefab b/Assets/Samples/Input System/1.14.0/Simple Demo/Environment.prefab new file mode 100644 index 0000000..de33c32 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/Environment.prefab @@ -0,0 +1,590 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &3649407600666749872 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407600666749879} + m_Layer: 5 + m_Name: Environment + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &3649407600666749879 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600666749872} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: + - {fileID: 3649407600846942369} + - {fileID: 3649407601005238489} + - {fileID: 3649407602124340139} + - {fileID: 3649407601188515013} + - {fileID: 3649407600676317693} + - {fileID: 3649407602089998017} + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 512, y: 384} + m_SizeDelta: {x: 100, y: 100} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!1 &3649407600676317694 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407600676317693} + - component: {fileID: 3649407600676317666} + - component: {fileID: 3649407600676317667} + - component: {fileID: 3649407600676317692} + m_Layer: 0 + m_Name: Cube (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3649407600676317693 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600676317694} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -501.72, y: -384.79, z: 10.540001} + m_LocalScale: {x: 4.37379, y: 4.37379, z: 4.37379} + m_Children: [] + m_Father: {fileID: 3649407600666749879} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3649407600676317666 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600676317694} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &3649407600676317667 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600676317694} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &3649407600676317692 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600676317694} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!1 &3649407600846942371 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407600846942369} + - component: {fileID: 3649407600846942370} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3649407600846942369 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600846942371} + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} + m_LocalPosition: {x: -512, y: -381, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 3649407600666749879} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!108 &3649407600846942370 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407600846942371} + m_Enabled: 1 + serializedVersion: 9 + m_Type: 1 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.802082 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 +--- !u!1 &3649407601005238485 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407601005238489} + - component: {fileID: 3649407601005238490} + - component: {fileID: 3649407601005238491} + - component: {fileID: 3649407601005238484} + m_Layer: 0 + m_Name: Ground + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3649407601005238489 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601005238485} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -512, y: -384, z: 0} + m_LocalScale: {x: 25.392921, y: 25.392908, z: 25.392908} + m_Children: [] + m_Father: {fileID: 3649407600666749879} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3649407601005238490 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601005238485} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!64 &3649407601005238491 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601005238485} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Convex: 0 + m_CookingOptions: 14 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &3649407601005238484 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601005238485} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!1 &3649407601188515014 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407601188515013} + - component: {fileID: 3649407601188515018} + - component: {fileID: 3649407601188515019} + - component: {fileID: 3649407601188515012} + m_Layer: 0 + m_Name: Cube (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3649407601188515013 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601188515014} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -499.68, y: -383.57, z: -4.46} + m_LocalScale: {x: 4.37379, y: 4.37379, z: 4.37379} + m_Children: [] + m_Father: {fileID: 3649407600666749879} + m_RootOrder: 3 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3649407601188515018 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601188515014} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &3649407601188515019 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601188515014} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &3649407601188515012 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407601188515014} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!1 &3649407602089998018 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407602089998017} + - component: {fileID: 3649407602089998022} + - component: {fileID: 3649407602089998023} + - component: {fileID: 3649407602089998016} + m_Layer: 0 + m_Name: Cube (3) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3649407602089998017 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602089998018} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -540.7, y: -382.5, z: -26.3} + m_LocalScale: {x: 9.755986, y: 9.755985, z: 9.755985} + m_Children: [] + m_Father: {fileID: 3649407600666749879} + m_RootOrder: 5 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3649407602089998022 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602089998018} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &3649407602089998023 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602089998018} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &3649407602089998016 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602089998018} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!1 &3649407602124340132 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3649407602124340139} + - component: {fileID: 3649407602124340136} + - component: {fileID: 3649407602124340137} + - component: {fileID: 3649407602124340138} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3649407602124340139 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602124340132} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -512, y: -381.98, z: 4.3100004} + m_LocalScale: {x: 4.3737917, y: 4.3737917, z: 4.3737917} + m_Children: [] + m_Father: {fileID: 3649407600666749879} + m_RootOrder: 2 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3649407602124340136 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602124340132} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!65 &3649407602124340137 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602124340132} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &3649407602124340138 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 3649407602124340132} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/Environment.prefab.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/Environment.prefab.meta new file mode 100644 index 0000000..986b75a --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/Environment.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: b6b5f266028754740b00996b1ad8ce4e +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/README.md b/Assets/Samples/Input System/1.14.0/Simple Demo/README.md new file mode 100644 index 0000000..23b325d --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/README.md @@ -0,0 +1,191 @@ +This sample shows how to set up a simple character controller using the input system. As there is more than one way to do it, the sample illustrates several ways. Each demonstration is set up as a separate scene. The basic functionality in all the scenes is the same. You can move and look around and fire projectiles (colored cubes) into the scene. In some scenes, only gamepads are supported but the more involved demonstrations support several different inputs concurrently. + +# SimpleDemo_UsingState + +[Source](./SimpleController_UsingState.cs) + +This starts off at the lowest level by demonstrating how to wire up input by polling input state directly in a `MonoBehaviour.Update` function. For simplicity's sake it only deals with gamepads but the same mechanism works in equivalent ways for other types of input devices (e.g. using `Mouse.current` and `Keyboard.current`). + +The key APIs demonstrated here are `Gamepad.current` and `InputControl.ReadValue`. + +```CSharp +public class SimpleController_UsingState : MonoBehaviour +{ + //... + + public void Update() + { + var gamepad = Gamepad.current; + if (gamepad == null) + return; + + var move = Gamepad.leftStick.ReadValue(); + //... + } +} +``` + +# SimpleDemo_UsingActions + +[Source](./SimpleController_UsingActions.cs) + +This moves one level higher and moves input over to "input actions". These are input abstractions that allow you to bind to input sources indirectly. + +In this scene, the actions are embedded directly into the character controller component. This allows setting up the bindings for the actions directly in the inspector. To see the actions and their bindings, select the `Player` object in the hierarchy and look at the `SimpleController_UsingActions` component in the inspector. + +The key APIs demonstrated here are `InputAction` and its `Enable`/`Disable` methods and its `ReadValue` method. + +```CSharp +public class SimpleController_UsingActions : MonoBehaviour +{ + public InputAction moveAction; + //... + + public void OnEnable() + { + moveAction.Enable(); + //... + } + + public void OnDisable() + { + moveAction.Disable(); + //... + } + + public void Update() + { + var move = moveAction.ReadValue<Vector2>(); + //... + } +} +``` + +The sample also demonstrates how to use a `Tap` and a `SlowTap` interaction on the fire action to implement a charged shooting mechanism. Note that in this case, we run the firing logic right from within the action using the action's `started`, `performed`, and `canceled` callbacks. + +```CSharp + fireAction.performed += + ctx => + { + if (ctx.interaction is SlowTapInteraction) + { + StartCoroutine(BurstFire((int)(ctx.duration * burstSpeed))); + } + else + { + Fire(); + } + m_Charging = false; + }; + fireAction.started += + ctx => + { + if (ctx.interaction is SlowTapInteraction) + m_Charging = true; + }; + fireAction.canceled += + ctx => + { + m_Charging = false; + }; +``` + +# SimpleDemo_UsingActionAsset + +[Source](./SimpleController_UsingActionAsset.cs) + +As more and more actions are added, it can become quite tedious to manually set up and `Enable` and `Disable` all the actions. We could use an `InputActionMap` in the component like so + +```CSharp +public class SimpleController : MonoBehaviour +{ + public InputActionMap actions; + + public void OnEnable() + { + actions.Enable(); + } + + public void OnDisable() + { + actions.Disable(); + } +} +``` + +but then we would have to look up all the actions manually in the action map. A simpler approach is to put all our actions in a separate asset and generate a C# wrapper class that automatically performs the lookup for us. + +To create such an `.inputactions` asset, right-click in the Project Browser and click `Create >> Input Actions`. To edit the actions, double-click the `.inputactions` asset and a separate window will come up. The asset we use in this example is [SimpleControls.inputactions](SimpleControls.inputactions). + +When you select the asset, note that `Generate C# Class` is ticked in the import settings. This triggers the generation of [SimpleControls.cs](SimpleControls.cs) based on the `.inputactions` file. + +Regarding the `SimpleController_UsingActionAsset` script, there are some notable differences. + +```CSharp +public class SimpleController_UsingActionAsset +{ + // This replaces the InputAction instances we had before with + // the generated C# class. + private SimpleControls m_Controls; + + //... + + public void Awake() + { + // To use the controls, we need to instantiate them. + // This can be done arbitrary many times. E.g. there + // can be multiple players each with its own SimpleControls + // instance. + m_Controls = new SimpleControls(); + + // The generated C# class exposes all the action map + // and actions in the asset by name. Here, we reference + // the `fire` action in the `gameplay` action map, for + // example. + m_Controls.gameplay.fire.performed += + //... + } + + //... + + public void Update() + { + // Same here, we can just look the actions up by name. + var look = m_Controls.gameplay.look.ReadValue<Vector2>(); + var move = m_Controls.gameplay.move.ReadValue<Vector2>(); + + //... + } +} +``` + +Just for kicks, this sample also adds keyboard and mouse control to the game. + +# SimpleDemo_UsingPlayerInput + +[Source](./SimpleController_UsingPlayerInput.cs) + +Finally, we reached the highest level of the input system. While scripting input like in the examples above can be quick and easy, it becomes hard to manage when there can be multiple devices and/or multiple players in the game. This is where `PlayerInput` comes in. + +`PlayerInput` automatically manages per-player device assignments and can also automatically handle control scheme switching in single player (e.g. when the player switches between a gamepad and mouse&keyboard). + +In our case, we're not getting too much out of it since we don't have control schemes or multiple players but still, let's have a look. + +The first thing you'll probably notice is that now there are two script components on the `Player` object, one being the usual `SimpleController` and the other being `PlayerInput`. The latter is what now refers to [SimpleControls.inputactions](SimpleControls.inputactions). It also has `gameplay` set as the `Default Action Map` so that the gameplay actions will get enabled right away when `PlayerInput` itself is enabled. + +For getting callbacks, we have chosen `Invoke Unity Events` as the `Behavior`. If you expand the `Events` foldout in the inspector, you can see that `OnFire`, `OnMove`, and `OnLook` are added to the respective events. Each callback method here looks like the `started`, `performed`, and `canceled` callbacks we've already seen on `fireAction` before. + +```CSharp +public class SimpleController_UsingPlayerInput : MonoBehaviour +{ + private Vector2 m_Move; + //... + + public void OnMove(InputAction.CallbackContext context) + { + m_Move = context.ReadValue<Vector2>(); + } + + //... +} +``` diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/README.md.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/README.md.meta new file mode 100644 index 0000000..086a776 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: ec15dad1b04214281a9b4853b22e16f8 +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActionAsset.cs b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActionAsset.cs new file mode 100644 index 0000000..4e2da50 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActionAsset.cs @@ -0,0 +1,117 @@ +using System.Collections; +using UnityEngine; +using UnityEngine.InputSystem.Interactions; + +// Use action set asset instead of lose InputActions directly on component. +public class SimpleController_UsingActionAsset : MonoBehaviour +{ + public float moveSpeed; + public float rotateSpeed; + public float burstSpeed; + public GameObject projectile; + + private SimpleControls m_Controls; + private bool m_Charging; + private Vector2 m_Rotation; + + public void Awake() + { + m_Controls = new SimpleControls(); + + m_Controls.gameplay.fire.performed += + ctx => + { + if (ctx.interaction is SlowTapInteraction) + { + StartCoroutine(BurstFire((int)(ctx.duration * burstSpeed))); + } + else + { + Fire(); + } + m_Charging = false; + }; + m_Controls.gameplay.fire.started += + ctx => + { + if (ctx.interaction is SlowTapInteraction) + m_Charging = true; + }; + m_Controls.gameplay.fire.canceled += + ctx => + { + m_Charging = false; + }; + } + + public void OnEnable() + { + m_Controls.Enable(); + } + + public void OnDisable() + { + m_Controls.Disable(); + } + + public void OnGUI() + { + if (m_Charging) + GUI.Label(new Rect(100, 100, 200, 100), "Charging..."); + } + + public void Update() + { + var look = m_Controls.gameplay.look.ReadValue<Vector2>(); + var move = m_Controls.gameplay.move.ReadValue<Vector2>(); + + // Update orientation first, then move. Otherwise move orientation will lag + // behind by one frame. + Look(look); + Move(move); + } + + private void Move(Vector2 direction) + { + if (direction.sqrMagnitude < 0.01) + return; + var scaledMoveSpeed = moveSpeed * Time.deltaTime; + // For simplicity's sake, we just keep movement in a single plane here. Rotate + // direction according to world Y rotation of player. + var move = Quaternion.Euler(0, transform.eulerAngles.y, 0) * new Vector3(direction.x, 0, direction.y); + transform.position += move * scaledMoveSpeed; + } + + private void Look(Vector2 rotate) + { + if (rotate.sqrMagnitude < 0.01) + return; + var scaledRotateSpeed = rotateSpeed * Time.deltaTime; + m_Rotation.y += rotate.x * scaledRotateSpeed; + m_Rotation.x = Mathf.Clamp(m_Rotation.x - rotate.y * scaledRotateSpeed, -89, 89); + transform.localEulerAngles = m_Rotation; + } + + private IEnumerator BurstFire(int burstAmount) + { + for (var i = 0; i < burstAmount; ++i) + { + Fire(); + yield return new WaitForSeconds(0.1f); + } + } + + private void Fire() + { + var transform = this.transform; + var newProjectile = Instantiate(projectile); + newProjectile.transform.position = transform.position + transform.forward * 0.6f; + newProjectile.transform.rotation = transform.rotation; + const int size = 1; + newProjectile.transform.localScale *= size; + newProjectile.GetComponent<Rigidbody>().mass = Mathf.Pow(size, 3); + newProjectile.GetComponent<Rigidbody>().AddForce(transform.forward * 20f, ForceMode.Impulse); + newProjectile.GetComponent<MeshRenderer>().material.color = + new Color(Random.value, Random.value, Random.value, 1.0f); + } +} diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActionAsset.cs.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActionAsset.cs.meta new file mode 100644 index 0000000..684795e --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActionAsset.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 092bf3b983af64d85be968602701f933 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActions.cs b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActions.cs new file mode 100644 index 0000000..c880c83 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActions.cs @@ -0,0 +1,128 @@ +using System.Collections; +using UnityEngine.InputSystem; +using UnityEngine; +using UnityEngine.InputSystem.Interactions; + +// Using simple actions with callbacks. +public class SimpleController_UsingActions : MonoBehaviour +{ + public float moveSpeed; + public float rotateSpeed; + public float burstSpeed; + public GameObject projectile; + + public InputAction moveAction; + public InputAction lookAction; + public InputAction fireAction; + + private bool m_Charging; + + private Vector2 m_Rotation; + + public void Awake() + { + // We could use `fireAction.triggered` in Update() but that makes it more difficult to + // implement the charging mechanism. So instead we use the `started`, `performed`, and + // `canceled` callbacks to run the firing logic right from within the action. + + fireAction.performed += + ctx => + { + if (ctx.interaction is SlowTapInteraction) + { + StartCoroutine(BurstFire((int)(ctx.duration * burstSpeed))); + } + else + { + Fire(); + } + m_Charging = false; + }; + fireAction.started += + ctx => + { + if (ctx.interaction is SlowTapInteraction) + m_Charging = true; + }; + fireAction.canceled += + ctx => + { + m_Charging = false; + }; + } + + public void OnEnable() + { + moveAction.Enable(); + lookAction.Enable(); + fireAction.Enable(); + } + + public void OnDisable() + { + moveAction.Disable(); + lookAction.Disable(); + fireAction.Disable(); + } + + public void OnGUI() + { + if (m_Charging) + GUI.Label(new Rect(100, 100, 200, 100), "Charging..."); + } + + public void Update() + { + var look = lookAction.ReadValue<Vector2>(); + var move = moveAction.ReadValue<Vector2>(); + + // Update orientation first, then move. Otherwise move orientation will lag + // behind by one frame. + Look(look); + Move(move); + } + + private void Move(Vector2 direction) + { + if (direction.sqrMagnitude < 0.01) + return; + var scaledMoveSpeed = moveSpeed * Time.deltaTime; + // For simplicity's sake, we just keep movement in a single plane here. Rotate + // direction according to world Y rotation of player. + var move = Quaternion.Euler(0, transform.eulerAngles.y, 0) * new Vector3(direction.x, 0, direction.y); + transform.position += move * scaledMoveSpeed; + } + + private void Look(Vector2 rotate) + { + if (rotate.sqrMagnitude < 0.01) + return; + var scaledRotateSpeed = rotateSpeed * Time.deltaTime; + m_Rotation.y += rotate.x * scaledRotateSpeed; + m_Rotation.x = Mathf.Clamp(m_Rotation.x - rotate.y * scaledRotateSpeed, -89, 89); + transform.localEulerAngles = m_Rotation; + } + + private IEnumerator BurstFire(int burstAmount) + { + for (var i = 0; i < burstAmount; ++i) + { + Fire(); + yield return new WaitForSeconds(0.1f); + } + } + + private void Fire() + { + var transform = this.transform; + var newProjectile = Instantiate(projectile); + newProjectile.transform.position = transform.position + transform.forward * 0.6f; + newProjectile.transform.rotation = transform.rotation; + var size = 1; + newProjectile.transform.localScale *= size; + newProjectile.GetComponent<Rigidbody>().mass = Mathf.Pow(size, 3); + newProjectile.GetComponent<Rigidbody>().AddForce(transform.forward * 20f, ForceMode.Impulse); + newProjectile.GetComponent<MeshRenderer>().material.color = + new Color(Random.value, Random.value, Random.value, 1.0f); + } +} diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActions.cs.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActions.cs.meta new file mode 100644 index 0000000..96e8db4 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingActions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2ab7c7a7ef9e44f4d8c56e49c8bfed8f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingPlayerInput.cs b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingPlayerInput.cs new file mode 100644 index 0000000..5b589e6 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingPlayerInput.cs @@ -0,0 +1,113 @@ +using System.Collections; +using UnityEngine; +using UnityEngine.InputSystem; +using UnityEngine.InputSystem.Interactions; + +// Use a separate PlayerInput component for setting up input. +public class SimpleController_UsingPlayerInput : MonoBehaviour +{ + public float moveSpeed; + public float rotateSpeed; + public float burstSpeed; + public GameObject projectile; + + private bool m_Charging; + private Vector2 m_Rotation; + private Vector2 m_Look; + private Vector2 m_Move; + + public void OnMove(InputAction.CallbackContext context) + { + m_Move = context.ReadValue<Vector2>(); + } + + public void OnLook(InputAction.CallbackContext context) + { + m_Look = context.ReadValue<Vector2>(); + } + + public void OnFire(InputAction.CallbackContext context) + { + switch (context.phase) + { + case InputActionPhase.Performed: + if (context.interaction is SlowTapInteraction) + { + StartCoroutine(BurstFire((int)(context.duration * burstSpeed))); + } + else + { + Fire(); + } + m_Charging = false; + break; + + case InputActionPhase.Started: + if (context.interaction is SlowTapInteraction) + m_Charging = true; + break; + + case InputActionPhase.Canceled: + m_Charging = false; + break; + } + } + + public void OnGUI() + { + if (m_Charging) + GUI.Label(new Rect(100, 100, 200, 100), "Charging..."); + } + + public void Update() + { + // Update orientation first, then move. Otherwise move orientation will lag + // behind by one frame. + Look(m_Look); + Move(m_Move); + } + + private void Move(Vector2 direction) + { + if (direction.sqrMagnitude < 0.01) + return; + var scaledMoveSpeed = moveSpeed * Time.deltaTime; + // For simplicity's sake, we just keep movement in a single plane here. Rotate + // direction according to world Y rotation of player. + var move = Quaternion.Euler(0, transform.eulerAngles.y, 0) * new Vector3(direction.x, 0, direction.y); + transform.position += move * scaledMoveSpeed; + } + + private void Look(Vector2 rotate) + { + if (rotate.sqrMagnitude < 0.01) + return; + var scaledRotateSpeed = rotateSpeed * Time.deltaTime; + m_Rotation.y += rotate.x * scaledRotateSpeed; + m_Rotation.x = Mathf.Clamp(m_Rotation.x - rotate.y * scaledRotateSpeed, -89, 89); + transform.localEulerAngles = m_Rotation; + } + + private IEnumerator BurstFire(int burstAmount) + { + for (var i = 0; i < burstAmount; ++i) + { + Fire(); + yield return new WaitForSeconds(0.1f); + } + } + + private void Fire() + { + var transform = this.transform; + var newProjectile = Instantiate(projectile); + newProjectile.transform.position = transform.position + transform.forward * 0.6f; + newProjectile.transform.rotation = transform.rotation; + const int size = 1; + newProjectile.transform.localScale *= size; + newProjectile.GetComponent<Rigidbody>().mass = Mathf.Pow(size, 3); + newProjectile.GetComponent<Rigidbody>().AddForce(transform.forward * 20f, ForceMode.Impulse); + newProjectile.GetComponent<MeshRenderer>().material.color = + new Color(Random.value, Random.value, Random.value, 1.0f); + } +} diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingPlayerInput.cs.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingPlayerInput.cs.meta new file mode 100644 index 0000000..c4ca38c --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingPlayerInput.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 0923a5a14f884859a39872d225d9c72b +timeCreated: 1565353371
\ No newline at end of file diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingState.cs b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingState.cs new file mode 100644 index 0000000..fb24c75 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingState.cs @@ -0,0 +1,78 @@ +using UnityEngine.InputSystem; +using UnityEngine; + +// Using state of gamepad device directly. +public class SimpleController_UsingState : MonoBehaviour +{ + public float moveSpeed; + public float rotateSpeed; + public GameObject projectile; + + private Vector2 m_Rotation; + private bool m_Firing; + private float m_FireCooldown; + + public void Update() + { + var gamepad = Gamepad.current; + if (gamepad == null) + return; + + var leftStick = gamepad.leftStick.ReadValue(); + var rightStick = gamepad.rightStick.ReadValue(); + + Look(rightStick); + Move(leftStick); + + if (gamepad.buttonSouth.wasPressedThisFrame) + { + m_Firing = true; + m_FireCooldown = 0; + } + else if (gamepad.buttonSouth.wasReleasedThisFrame) + { + m_Firing = false; + } + + if (m_Firing && m_FireCooldown < Time.time) + { + Fire(); + m_FireCooldown = Time.time + 0.1f; + } + } + + private void Move(Vector2 direction) + { + if (direction.sqrMagnitude < 0.01) + return; + var scaledMoveSpeed = moveSpeed * Time.deltaTime; + // For simplicity's sake, we just keep movement in a single plane here. Rotate + // direction according to world Y rotation of player. + var move = Quaternion.Euler(0, transform.eulerAngles.y, 0) * new Vector3(direction.x, 0, direction.y); + transform.position += move * scaledMoveSpeed; + } + + private void Look(Vector2 rotate) + { + if (rotate.sqrMagnitude < 0.01) + return; + var scaledRotateSpeed = rotateSpeed * Time.deltaTime; + m_Rotation.y += rotate.x * scaledRotateSpeed; + m_Rotation.x = Mathf.Clamp(m_Rotation.x - rotate.y * scaledRotateSpeed, -89, 89); + transform.localEulerAngles = m_Rotation; + } + + private void Fire() + { + var transform = this.transform; + var newProjectile = Instantiate(projectile); + newProjectile.transform.position = transform.position + transform.forward * 0.6f; + newProjectile.transform.rotation = transform.rotation; + const int size = 1; + newProjectile.transform.localScale *= size; + newProjectile.GetComponent<Rigidbody>().mass = Mathf.Pow(size, 3); + newProjectile.GetComponent<Rigidbody>().AddForce(transform.forward * 20f, ForceMode.Impulse); + newProjectile.GetComponent<MeshRenderer>().material.color = + new Color(Random.value, Random.value, Random.value, 1.0f); + } +} diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingState.cs.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingState.cs.meta new file mode 100644 index 0000000..7995f30 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleController_UsingState.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6530e5fa6e7bd4c9d99219c476807b5e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.cs b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.cs new file mode 100644 index 0000000..779375d --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.cs @@ -0,0 +1,455 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was auto-generated by com.unity.inputsystem:InputActionCodeGenerator +// version 1.14.0 +// from Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine.InputSystem; +using UnityEngine.InputSystem.Utilities; + +/// <summary> +/// Provides programmatic access to <see cref="InputActionAsset" />, <see cref="InputActionMap" />, <see cref="InputAction" /> and <see cref="InputControlScheme" /> instances defined in asset "Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions". +/// </summary> +/// <remarks> +/// This class is source generated and any manual edits will be discarded if the associated asset is reimported or modified. +/// </remarks> +/// <example> +/// <code> +/// using namespace UnityEngine; +/// using UnityEngine.InputSystem; +/// +/// // Example of using an InputActionMap named "Player" from a UnityEngine.MonoBehaviour implementing callback interface. +/// public class Example : MonoBehaviour, MyActions.IPlayerActions +/// { +/// private MyActions_Actions m_Actions; // Source code representation of asset. +/// private MyActions_Actions.PlayerActions m_Player; // Source code representation of action map. +/// +/// void Awake() +/// { +/// m_Actions = new MyActions_Actions(); // Create asset object. +/// m_Player = m_Actions.Player; // Extract action map object. +/// m_Player.AddCallbacks(this); // Register callback interface IPlayerActions. +/// } +/// +/// void OnDestroy() +/// { +/// m_Actions.Dispose(); // Destroy asset object. +/// } +/// +/// void OnEnable() +/// { +/// m_Player.Enable(); // Enable all actions within map. +/// } +/// +/// void OnDisable() +/// { +/// m_Player.Disable(); // Disable all actions within map. +/// } +/// +/// #region Interface implementation of MyActions.IPlayerActions +/// +/// // Invoked when "Move" action is either started, performed or canceled. +/// public void OnMove(InputAction.CallbackContext context) +/// { +/// Debug.Log($"OnMove: {context.ReadValue<Vector2>()}"); +/// } +/// +/// // Invoked when "Attack" action is either started, performed or canceled. +/// public void OnAttack(InputAction.CallbackContext context) +/// { +/// Debug.Log($"OnAttack: {context.ReadValue<float>()}"); +/// } +/// +/// #endregion +/// } +/// </code> +/// </example> +public partial class @SimpleControls: IInputActionCollection2, IDisposable +{ + /// <summary> + /// Provides access to the underlying asset instance. + /// </summary> + public InputActionAsset asset { get; } + + /// <summary> + /// Constructs a new instance. + /// </summary> + public @SimpleControls() + { + asset = InputActionAsset.FromJson(@"{ + ""name"": ""SimpleControls"", + ""maps"": [ + { + ""name"": ""gameplay"", + ""id"": ""265c38f5-dd18-4d34-b198-aec58e1627ff"", + ""actions"": [ + { + ""name"": ""fire"", + ""type"": ""Button"", + ""id"": ""1077f913-a9f9-41b1-acb3-b9ee0adbc744"", + ""expectedControlType"": ""Button"", + ""processors"": """", + ""interactions"": ""Tap,SlowTap"", + ""initialStateCheck"": false + }, + { + ""name"": ""move"", + ""type"": ""Value"", + ""id"": ""50fd2809-3aa3-4a90-988e-1facf6773553"", + ""expectedControlType"": ""Vector2"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": true + }, + { + ""name"": ""look"", + ""type"": ""Value"", + ""id"": ""c60e0974-d140-4597-a40e-9862193067e9"", + ""expectedControlType"": ""Vector2"", + ""processors"": """", + ""interactions"": """", + ""initialStateCheck"": true + } + ], + ""bindings"": [ + { + ""name"": """", + ""id"": ""abb776f3-f329-4f7b-bbf8-b577d13be018"", + ""path"": ""*/{PrimaryAction}"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""fire"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""e1b8c4dd-7b3a-4db6-a93a-0889b59b1afc"", + ""path"": ""<Gamepad>/leftStick"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""move"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": ""Dpad"", + ""id"": ""cefc16fc-557a-44b0-939f-2ad792876b07"", + ""path"": ""Dpad"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""move"", + ""isComposite"": true, + ""isPartOfComposite"": false + }, + { + ""name"": ""up"", + ""id"": ""07244659-79df-461d-b329-defbe2fbc5f6"", + ""path"": ""<Keyboard>/w"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""down"", + ""id"": ""f0ec75cb-f02c-40d2-a33f-1fd6eab2ae0b"", + ""path"": ""<Keyboard>/s"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""left"", + ""id"": ""21fe6bfe-4721-4483-9f4a-a0031ade105c"", + ""path"": ""<Keyboard>/a"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": ""right"", + ""id"": ""2dd39746-c75c-4a11-838a-e59eacaf4e0b"", + ""path"": ""<Keyboard>/d"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""move"", + ""isComposite"": false, + ""isPartOfComposite"": true + }, + { + ""name"": """", + ""id"": ""c106d6e6-2780-47ff-b318-396171bd54cc"", + ""path"": ""<Gamepad>/rightStick"", + ""interactions"": """", + ""processors"": """", + ""groups"": """", + ""action"": ""look"", + ""isComposite"": false, + ""isPartOfComposite"": false + }, + { + ""name"": """", + ""id"": ""578caa03-6827-4797-adfc-a59770c437fe"", + ""path"": ""<Pointer>/delta"", + ""interactions"": """", + ""processors"": ""ScaleVector2(x=2,y=2)"", + ""groups"": """", + ""action"": ""look"", + ""isComposite"": false, + ""isPartOfComposite"": false + } + ] + } + ], + ""controlSchemes"": [] +}"); + // gameplay + m_gameplay = asset.FindActionMap("gameplay", throwIfNotFound: true); + m_gameplay_fire = m_gameplay.FindAction("fire", throwIfNotFound: true); + m_gameplay_move = m_gameplay.FindAction("move", throwIfNotFound: true); + m_gameplay_look = m_gameplay.FindAction("look", throwIfNotFound: true); + } + + ~@SimpleControls() + { + UnityEngine.Debug.Assert(!m_gameplay.enabled, "This will cause a leak and performance issues, SimpleControls.gameplay.Disable() has not been called."); + } + + /// <summary> + /// Destroys this asset and all associated <see cref="InputAction"/> instances. + /// </summary> + public void Dispose() + { + UnityEngine.Object.Destroy(asset); + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindingMask" /> + public InputBinding? bindingMask + { + get => asset.bindingMask; + set => asset.bindingMask = value; + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.devices" /> + public ReadOnlyArray<InputDevice>? devices + { + get => asset.devices; + set => asset.devices = value; + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.controlSchemes" /> + public ReadOnlyArray<InputControlScheme> controlSchemes => asset.controlSchemes; + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Contains(InputAction)" /> + public bool Contains(InputAction action) + { + return asset.Contains(action); + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.GetEnumerator()" /> + public IEnumerator<InputAction> GetEnumerator() + { + return asset.GetEnumerator(); + } + + /// <inheritdoc cref="IEnumerable.GetEnumerator()" /> + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Enable()" /> + public void Enable() + { + asset.Enable(); + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.Disable()" /> + public void Disable() + { + asset.Disable(); + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.bindings" /> + public IEnumerable<InputBinding> bindings => asset.bindings; + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindAction(string, bool)" /> + public InputAction FindAction(string actionNameOrId, bool throwIfNotFound = false) + { + return asset.FindAction(actionNameOrId, throwIfNotFound); + } + + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionAsset.FindBinding(InputBinding, out InputAction)" /> + public int FindBinding(InputBinding bindingMask, out InputAction action) + { + return asset.FindBinding(bindingMask, out action); + } + + // gameplay + private readonly InputActionMap m_gameplay; + private List<IGameplayActions> m_GameplayActionsCallbackInterfaces = new List<IGameplayActions>(); + private readonly InputAction m_gameplay_fire; + private readonly InputAction m_gameplay_move; + private readonly InputAction m_gameplay_look; + /// <summary> + /// Provides access to input actions defined in input action map "gameplay". + /// </summary> + public struct GameplayActions + { + private @SimpleControls m_Wrapper; + + /// <summary> + /// Construct a new instance of the input action map wrapper class. + /// </summary> + public GameplayActions(@SimpleControls wrapper) { m_Wrapper = wrapper; } + /// <summary> + /// Provides access to the underlying input action "gameplay/fire". + /// </summary> + public InputAction @fire => m_Wrapper.m_gameplay_fire; + /// <summary> + /// Provides access to the underlying input action "gameplay/move". + /// </summary> + public InputAction @move => m_Wrapper.m_gameplay_move; + /// <summary> + /// Provides access to the underlying input action "gameplay/look". + /// </summary> + public InputAction @look => m_Wrapper.m_gameplay_look; + /// <summary> + /// Provides access to the underlying input action map instance. + /// </summary> + public InputActionMap Get() { return m_Wrapper.m_gameplay; } + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Enable()" /> + public void Enable() { Get().Enable(); } + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.Disable()" /> + public void Disable() { Get().Disable(); } + /// <inheritdoc cref="UnityEngine.InputSystem.InputActionMap.enabled" /> + public bool enabled => Get().enabled; + /// <summary> + /// Implicitly converts an <see ref="GameplayActions" /> to an <see ref="InputActionMap" /> instance. + /// </summary> + public static implicit operator InputActionMap(GameplayActions set) { return set.Get(); } + /// <summary> + /// Adds <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map. + /// </summary> + /// <param name="instance">Callback instance.</param> + /// <remarks> + /// If <paramref name="instance" /> is <c>null</c> or <paramref name="instance"/> have already been added this method does nothing. + /// </remarks> + /// <seealso cref="GameplayActions" /> + public void AddCallbacks(IGameplayActions instance) + { + if (instance == null || m_Wrapper.m_GameplayActionsCallbackInterfaces.Contains(instance)) return; + m_Wrapper.m_GameplayActionsCallbackInterfaces.Add(instance); + @fire.started += instance.OnFire; + @fire.performed += instance.OnFire; + @fire.canceled += instance.OnFire; + @move.started += instance.OnMove; + @move.performed += instance.OnMove; + @move.canceled += instance.OnMove; + @look.started += instance.OnLook; + @look.performed += instance.OnLook; + @look.canceled += instance.OnLook; + } + + /// <summary> + /// Removes <see cref="InputAction.started"/>, <see cref="InputAction.performed"/> and <see cref="InputAction.canceled"/> callbacks provided via <param cref="instance" /> on all input actions contained in this map. + /// </summary> + /// <remarks> + /// Calling this method when <paramref name="instance" /> have not previously been registered has no side-effects. + /// </remarks> + /// <seealso cref="GameplayActions" /> + private void UnregisterCallbacks(IGameplayActions instance) + { + @fire.started -= instance.OnFire; + @fire.performed -= instance.OnFire; + @fire.canceled -= instance.OnFire; + @move.started -= instance.OnMove; + @move.performed -= instance.OnMove; + @move.canceled -= instance.OnMove; + @look.started -= instance.OnLook; + @look.performed -= instance.OnLook; + @look.canceled -= instance.OnLook; + } + + /// <summary> + /// Unregisters <param cref="instance" /> and unregisters all input action callbacks via <see cref="GameplayActions.UnregisterCallbacks(IGameplayActions)" />. + /// </summary> + /// <seealso cref="GameplayActions.UnregisterCallbacks(IGameplayActions)" /> + public void RemoveCallbacks(IGameplayActions instance) + { + if (m_Wrapper.m_GameplayActionsCallbackInterfaces.Remove(instance)) + UnregisterCallbacks(instance); + } + + /// <summary> + /// Replaces all existing callback instances and previously registered input action callbacks associated with them with callbacks provided via <param cref="instance" />. + /// </summary> + /// <remarks> + /// If <paramref name="instance" /> is <c>null</c>, calling this method will only unregister all existing callbacks but not register any new callbacks. + /// </remarks> + /// <seealso cref="GameplayActions.AddCallbacks(IGameplayActions)" /> + /// <seealso cref="GameplayActions.RemoveCallbacks(IGameplayActions)" /> + /// <seealso cref="GameplayActions.UnregisterCallbacks(IGameplayActions)" /> + public void SetCallbacks(IGameplayActions instance) + { + foreach (var item in m_Wrapper.m_GameplayActionsCallbackInterfaces) + UnregisterCallbacks(item); + m_Wrapper.m_GameplayActionsCallbackInterfaces.Clear(); + AddCallbacks(instance); + } + } + /// <summary> + /// Provides a new <see cref="GameplayActions" /> instance referencing this action map. + /// </summary> + public GameplayActions @gameplay => new GameplayActions(this); + /// <summary> + /// Interface to implement callback methods for all input action callbacks associated with input actions defined by "gameplay" which allows adding and removing callbacks. + /// </summary> + /// <seealso cref="GameplayActions.AddCallbacks(IGameplayActions)" /> + /// <seealso cref="GameplayActions.RemoveCallbacks(IGameplayActions)" /> + public interface IGameplayActions + { + /// <summary> + /// Method invoked when associated input action "fire" 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 OnFire(InputAction.CallbackContext context); + /// <summary> + /// Method invoked when associated input action "move" 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 OnMove(InputAction.CallbackContext context); + /// <summary> + /// Method invoked when associated input action "look" 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 OnLook(InputAction.CallbackContext context); + } +} diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.cs.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.cs.meta new file mode 100644 index 0000000..e6ff8e7 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8766f394ba19844a3845c24c45713052 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions new file mode 100644 index 0000000..18b9f71 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions @@ -0,0 +1,140 @@ +{ + "name": "SimpleControls", + "maps": [ + { + "name": "gameplay", + "id": "265c38f5-dd18-4d34-b198-aec58e1627ff", + "actions": [ + { + "name": "fire", + "type": "Button", + "id": "1077f913-a9f9-41b1-acb3-b9ee0adbc744", + "expectedControlType": "Button", + "processors": "", + "interactions": "Tap,SlowTap", + "initialStateCheck": false + }, + { + "name": "move", + "type": "Value", + "id": "50fd2809-3aa3-4a90-988e-1facf6773553", + "expectedControlType": "Vector2", + "processors": "", + "interactions": "", + "initialStateCheck": true + }, + { + "name": "look", + "type": "Value", + "id": "c60e0974-d140-4597-a40e-9862193067e9", + "expectedControlType": "Vector2", + "processors": "", + "interactions": "", + "initialStateCheck": true + } + ], + "bindings": [ + { + "name": "", + "id": "abb776f3-f329-4f7b-bbf8-b577d13be018", + "path": "*/{PrimaryAction}", + "interactions": "", + "processors": "", + "groups": "", + "action": "fire", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "e1b8c4dd-7b3a-4db6-a93a-0889b59b1afc", + "path": "<Gamepad>/leftStick", + "interactions": "", + "processors": "", + "groups": "", + "action": "move", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "Dpad", + "id": "cefc16fc-557a-44b0-939f-2ad792876b07", + "path": "Dpad", + "interactions": "", + "processors": "", + "groups": "", + "action": "move", + "isComposite": true, + "isPartOfComposite": false + }, + { + "name": "up", + "id": "07244659-79df-461d-b329-defbe2fbc5f6", + "path": "<Keyboard>/w", + "interactions": "", + "processors": "", + "groups": "", + "action": "move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "down", + "id": "f0ec75cb-f02c-40d2-a33f-1fd6eab2ae0b", + "path": "<Keyboard>/s", + "interactions": "", + "processors": "", + "groups": "", + "action": "move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "left", + "id": "21fe6bfe-4721-4483-9f4a-a0031ade105c", + "path": "<Keyboard>/a", + "interactions": "", + "processors": "", + "groups": "", + "action": "move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "right", + "id": "2dd39746-c75c-4a11-838a-e59eacaf4e0b", + "path": "<Keyboard>/d", + "interactions": "", + "processors": "", + "groups": "", + "action": "move", + "isComposite": false, + "isPartOfComposite": true + }, + { + "name": "", + "id": "c106d6e6-2780-47ff-b318-396171bd54cc", + "path": "<Gamepad>/rightStick", + "interactions": "", + "processors": "", + "groups": "", + "action": "look", + "isComposite": false, + "isPartOfComposite": false + }, + { + "name": "", + "id": "578caa03-6827-4797-adfc-a59770c437fe", + "path": "<Pointer>/delta", + "interactions": "", + "processors": "ScaleVector2(x=2,y=2)", + "groups": "", + "action": "look", + "isComposite": false, + "isPartOfComposite": false + } + ] + } + ], + "controlSchemes": [] +}
\ No newline at end of file diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions.meta new file mode 100644 index 0000000..61d875a --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleControls.inputactions.meta @@ -0,0 +1,14 @@ +fileFormatVersion: 2 +guid: 97210cd740af04df697b1fa71c9c9623 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3} + generateWrapperCode: 1 + wrapperCodePath: + wrapperClassName: SimpleControls + wrapperCodeNamespace: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.meta new file mode 100644 index 0000000..baab563 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 10d263a09fec15043921f90615126efd +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.unity b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.unity new file mode 100644 index 0000000..bc608fd --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.unity @@ -0,0 +1,333 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.44657856, g: 0.49641234, b: 0.57481724, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_ExportTrainingData: 0 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &3649407600332409107 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3649407600666749872, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Name + value: Environment + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 512 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 384 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.x + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.y + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b6b5f266028754740b00996b1ad8ce4e, type: 3} +--- !u!1 &7279796982563314049 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7283255547635044647} + - component: {fileID: 7298693803741327381} + - component: {fileID: 7279796982563314051} + m_Layer: 0 + m_Name: Player + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &7279796982563314051 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 092bf3b983af64d85be968602701f933, type: 3} + m_Name: + m_EditorClassIdentifier: + moveSpeed: 10 + rotateSpeed: 60 + burstSpeed: 10 + jumpForce: 2 + projectile: {fileID: 1050929111787496, guid: 4be9e6cdd2d5d499ca5c16cc83fdf790, type: 3} +--- !u!4 &7283255547635044647 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!20 &7298693803741327381 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.unity.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.unity.meta new file mode 100644 index 0000000..a23152a --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e363a7a3b19f9476eafd671062b7b491 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/LightingData.asset b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/LightingData.asset Binary files differnew file mode 100644 index 0000000..2bb54fb --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/LightingData.asset diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/LightingData.asset.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/LightingData.asset.meta new file mode 100644 index 0000000..fe6f5f7 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/LightingData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6455705207c463d4b9ecc7e539c66697 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 112000000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/ReflectionProbe-0.exr b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/ReflectionProbe-0.exr Binary files differnew file mode 100644 index 0000000..4496e55 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/ReflectionProbe-0.exr diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/ReflectionProbe-0.exr.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/ReflectionProbe-0.exr.meta new file mode 100644 index 0000000..2fe6391 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActionAsset/ReflectionProbe-0.exr.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: 2ce969169bdd752449db480ff8519898 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 1 + seamlessCubemap: 1 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 2 + aniso: 0 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 2 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 100 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.meta new file mode 100644 index 0000000..535f759 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 3e9e425d0d247504a9749356d77df548 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.unity b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.unity new file mode 100644 index 0000000..8823a2f --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.unity @@ -0,0 +1,380 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.44657856, g: 0.49641234, b: 0.57481724, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_ExportTrainingData: 0 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &3649407600332409107 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3649407600666749872, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Name + value: Environment + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 512 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 384 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.x + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.y + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b6b5f266028754740b00996b1ad8ce4e, type: 3} +--- !u!1 &7279796982563314049 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7283255547635044647} + - component: {fileID: 7298693803741327381} + - component: {fileID: 7279796982563314050} + m_Layer: 0 + m_Name: Player + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &7279796982563314050 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 2ab7c7a7ef9e44f4d8c56e49c8bfed8f, type: 3} + m_Name: + m_EditorClassIdentifier: + moveSpeed: 10 + rotateSpeed: 60 + burstSpeed: 10 + projectile: {fileID: 1050929111787496, guid: 4be9e6cdd2d5d499ca5c16cc83fdf790, type: 3} + moveAction: + m_Name: Move + m_Type: 0 + m_ExpectedControlType: Vector2 + m_Id: 0a9c898e-0d8f-4c2c-9662-f582c9d3dd06 + m_Processors: + m_Interactions: + m_SingletonActionBindings: + - m_Name: + m_Id: 84bc2a32-af42-4e6d-8aaf-e9da78dc32fa + m_Path: <Gamepad>/leftStick + m_Interactions: + m_Processors: + m_Groups: + m_Action: Move + m_Flags: 0 + lookAction: + m_Name: Look + m_Type: 0 + m_ExpectedControlType: Vector2 + m_Id: 421525b1-6693-4a7b-a6f1-9b8ad013418c + m_Processors: + m_Interactions: + m_SingletonActionBindings: + - m_Name: + m_Id: c7e7b8fe-23f9-401e-9bc3-058e606745df + m_Path: <Gamepad>/rightStick + m_Interactions: + m_Processors: + m_Groups: + m_Action: Look + m_Flags: 0 + fireAction: + m_Name: Fire + m_Type: 1 + m_ExpectedControlType: Button + m_Id: f826c85c-1535-4849-96ce-35551102843b + m_Processors: + m_Interactions: Tap,SlowTap + m_SingletonActionBindings: + - m_Name: + m_Id: e9e2ed90-852c-44cc-a897-7e540eb71429 + m_Path: <Gamepad>/buttonSouth + m_Interactions: + m_Processors: + m_Groups: + m_Action: Fire + m_Flags: 0 +--- !u!4 &7283255547635044647 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!20 &7298693803741327381 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.unity.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.unity.meta new file mode 100644 index 0000000..cfe31c0 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f2caf1f86d6cf4e4093394b90ea1708e +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/LightingData.asset b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/LightingData.asset Binary files differnew file mode 100644 index 0000000..4485ea7 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/LightingData.asset diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/LightingData.asset.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/LightingData.asset.meta new file mode 100644 index 0000000..6bab230 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/LightingData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 05f840da05ac3574f863c74d598a32e2 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 112000000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/ReflectionProbe-0.exr b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/ReflectionProbe-0.exr Binary files differnew file mode 100644 index 0000000..4496e55 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/ReflectionProbe-0.exr diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/ReflectionProbe-0.exr.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/ReflectionProbe-0.exr.meta new file mode 100644 index 0000000..8a19438 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingActions/ReflectionProbe-0.exr.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: d8c85e9391cb9c74e960aab534e5c870 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 1 + seamlessCubemap: 1 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 2 + aniso: 0 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 2 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 100 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.meta new file mode 100644 index 0000000..24621a6 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ee03658c0119e5b4fae004c24297ce56 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.unity b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.unity new file mode 100644 index 0000000..ae64c80 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.unity @@ -0,0 +1,416 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.44657856, g: 0.49641234, b: 0.57481724, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_ExportTrainingData: 0 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &3649407600332409107 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3649407600666749872, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Name + value: Environment + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 512 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 384 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.x + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.y + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b6b5f266028754740b00996b1ad8ce4e, type: 3} +--- !u!1 &7279796982563314049 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7283255547635044647} + - component: {fileID: 7298693803741327381} + - component: {fileID: 7279796982563314051} + - component: {fileID: 7279796982563314050} + m_Layer: 0 + m_Name: Player + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &7279796982563314050 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 62899f850307741f2a39c98a8b639597, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Actions: {fileID: -944628639613478452, guid: 97210cd740af04df697b1fa71c9c9623, + type: 3} + m_NotificationBehavior: 2 + m_UIInputModule: {fileID: 0} + m_DeviceLostEvent: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.InputSystem.PlayerInput+DeviceLostEvent, Unity.InputSystem, + Version=0.9.2.0, Culture=neutral, PublicKeyToken=null + m_DeviceRegainedEvent: + m_PersistentCalls: + m_Calls: [] + m_TypeName: UnityEngine.InputSystem.PlayerInput+DeviceRegainedEvent, Unity.InputSystem, + Version=0.9.2.0, Culture=neutral, PublicKeyToken=null + m_ActionEvents: + - m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 7279796982563314051} + m_MethodName: OnFire + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_TypeName: UnityEngine.InputSystem.PlayerInput+ActionEvent, Unity.InputSystem, + Version=0.9.2.0, Culture=neutral, PublicKeyToken=null + m_ActionId: 1077f913-a9f9-41b1-acb3-b9ee0adbc744 + m_ActionName: gameplay/fire[/Mouse/leftButton,/XboxGamepadMacOS/buttonSouth] + - m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 7279796982563314051} + m_MethodName: OnMove + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_TypeName: UnityEngine.InputSystem.PlayerInput+ActionEvent, Unity.InputSystem, + Version=0.9.2.0, Culture=neutral, PublicKeyToken=null + m_ActionId: 50fd2809-3aa3-4a90-988e-1facf6773553 + m_ActionName: gameplay/move[/XboxGamepadMacOS/leftStick,/Keyboard/w,/Keyboard/s,/Keyboard/a,/Keyboard/d] + - m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 7279796982563314051} + m_MethodName: OnLook + m_Mode: 0 + m_Arguments: + m_ObjectArgument: {fileID: 0} + m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + m_TypeName: UnityEngine.InputSystem.PlayerInput+ActionEvent, Unity.InputSystem, + Version=0.9.2.0, Culture=neutral, PublicKeyToken=null + m_ActionId: c60e0974-d140-4597-a40e-9862193067e9 + m_ActionName: gameplay/look[/XboxGamepadMacOS/rightStick,/Mouse/delta] + m_AutoSwitchControlScheme: 0 + m_DefaultControlScheme: + m_DefaultActionMap: 265c38f5-dd18-4d34-b198-aec58e1627ff + m_SplitScreenIndex: -1 + m_Camera: {fileID: 0} +--- !u!114 &7279796982563314051 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0923a5a14f884859a39872d225d9c72b, type: 3} + m_Name: + m_EditorClassIdentifier: + moveSpeed: 10 + rotateSpeed: 60 + burstSpeed: 10 + projectile: {fileID: 1050929111787496, guid: 4be9e6cdd2d5d499ca5c16cc83fdf790, type: 3} +--- !u!4 &7283255547635044647 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!20 &7298693803741327381 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.unity.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.unity.meta new file mode 100644 index 0000000..44da46f --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 244f1ab64a936478a88c45243ee5d285 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/LightingData.asset b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/LightingData.asset Binary files differnew file mode 100644 index 0000000..aae6198 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/LightingData.asset diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/LightingData.asset.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/LightingData.asset.meta new file mode 100644 index 0000000..2b544e2 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/LightingData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d48fcc719ea7aef4cb4ed20d3905814b +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 112000000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/ReflectionProbe-0.exr b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/ReflectionProbe-0.exr Binary files differnew file mode 100644 index 0000000..4496e55 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/ReflectionProbe-0.exr diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/ReflectionProbe-0.exr.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/ReflectionProbe-0.exr.meta new file mode 100644 index 0000000..80a757a --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingPlayerInput/ReflectionProbe-0.exr.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: 95dfc610fb2352949bc25d7503ab6aa9 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 1 + seamlessCubemap: 1 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 2 + aniso: 0 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 2 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 100 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.meta new file mode 100644 index 0000000..0f1b363 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1a6c545608ac61c4a9bcff2f40c6920b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.unity b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.unity new file mode 100644 index 0000000..010b41c --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.unity @@ -0,0 +1,331 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 9 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_IndirectSpecularColor: {r: 0.44657856, g: 0.49641234, b: 0.57481724, a: 1} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 11 + m_GIWorkflowMode: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 1 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_FinalGather: 0 + m_FinalGatherFiltering: 1 + m_FinalGatherRayCount: 256 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 0 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 500 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 500 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 2 + m_PVRDenoiserTypeDirect: 0 + m_PVRDenoiserTypeIndirect: 0 + m_PVRDenoiserTypeAO: 0 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 0 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 5 + m_PVRFilteringGaussRadiusAO: 2 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ShowResolutionOverlay: 1 + m_ExportTrainingData: 0 + m_LightingDataAsset: {fileID: 0} + m_UseShadowmask: 1 +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 2 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + accuratePlacement: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1001 &3649407600332409107 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3649407600666749872, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Name + value: Environment + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_RootOrder + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.x + value: 512 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchoredPosition.y + value: 384 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.x + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_SizeDelta.y + value: 100 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMin.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_AnchorMax.y + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.x + value: 0.5 + objectReference: {fileID: 0} + - target: {fileID: 3649407600666749879, guid: b6b5f266028754740b00996b1ad8ce4e, + type: 3} + propertyPath: m_Pivot.y + value: 0.5 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: b6b5f266028754740b00996b1ad8ce4e, type: 3} +--- !u!1 &7279796982563314049 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7283255547635044647} + - component: {fileID: 7298693803741327381} + - component: {fileID: 7279796982563314051} + m_Layer: 0 + m_Name: Player + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &7279796982563314051 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 6530e5fa6e7bd4c9d99219c476807b5e, type: 3} + m_Name: + m_EditorClassIdentifier: + moveSpeed: 10 + rotateSpeed: 60 + projectile: {fileID: 1050929111787496, guid: 4be9e6cdd2d5d499ca5c16cc83fdf790, type: 3} +--- !u!4 &7283255547635044647 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!20 &7298693803741327381 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7279796982563314049} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_FocalLength: 50 + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.unity.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.unity.meta new file mode 100644 index 0000000..84a965a --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState.unity.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 3faa7bc12c6044a9c8e7796450744620 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/LightingData.asset b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/LightingData.asset Binary files differnew file mode 100644 index 0000000..2462265 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/LightingData.asset diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/LightingData.asset.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/LightingData.asset.meta new file mode 100644 index 0000000..8209436 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/LightingData.asset.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a80758ddfc5fec44699b090fc9f34123 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 112000000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/ReflectionProbe-0.exr b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/ReflectionProbe-0.exr Binary files differnew file mode 100644 index 0000000..4496e55 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/ReflectionProbe-0.exr diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/ReflectionProbe-0.exr.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/ReflectionProbe-0.exr.meta new file mode 100644 index 0000000..a80a3d8 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleDemo_UsingState/ReflectionProbe-0.exr.meta @@ -0,0 +1,117 @@ +fileFormatVersion: 2 +guid: c8df149047f62d041a1582fe08343c67 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 1 + sRGBTexture: 1 + linearTexture: 0 + fadeOut: 0 + borderMipMap: 0 + mipMapsPreserveCoverage: 0 + alphaTestReferenceValue: 0.5 + mipMapFadeDistanceStart: 1 + mipMapFadeDistanceEnd: 3 + bumpmap: + convertToNormalMap: 0 + externalNormalMap: 0 + heightScale: 0.25 + normalMapFilter: 0 + flipGreenChannel: 0 + isReadable: 0 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + vTOnly: 0 + ignoreMipmapLimit: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 1 + seamlessCubemap: 1 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: 2 + aniso: 0 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 2 + singleChannelComponent: 0 + flipbookRows: 1 + flipbookColumns: 1 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + ignorePngGamma: 0 + applyGammaDecoding: 0 + swizzle: 50462976 + cookieLightType: 0 + platformSettings: + - serializedVersion: 4 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 100 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + - serializedVersion: 4 + buildTarget: Standalone + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + ignorePlatformSupport: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spriteCustomMetadata: + entries: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleProjectile.prefab b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleProjectile.prefab new file mode 100644 index 0000000..383d116 --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleProjectile.prefab @@ -0,0 +1,114 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1001 &100100000 +Prefab: + m_ObjectHideFlags: 1 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: [] + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 0} + m_RootGameObject: {fileID: 1050929111787496} + m_IsPrefabAsset: 1 +--- !u!1 &1050929111787496 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + serializedVersion: 6 + m_Component: + - component: {fileID: 4939001955002736} + - component: {fileID: 33329194892259988} + - component: {fileID: 65754914235384544} + - component: {fileID: 23498649278503262} + - component: {fileID: 54430940299048930} + m_Layer: 0 + m_Name: SimpleProjectile + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &4939001955002736 +Transform: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1050929111787496} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.2921129, y: 0.2921129, z: 0.2921129} + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!23 &23498649278503262 +MeshRenderer: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1050929111787496} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RenderingLayerMask: 4294967295 + m_Materials: + - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_PreserveUVs: 1 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 0 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 +--- !u!33 &33329194892259988 +MeshFilter: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1050929111787496} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!54 &54430940299048930 +Rigidbody: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1050929111787496} + serializedVersion: 2 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!65 &65754914235384544 +BoxCollider: + m_ObjectHideFlags: 1 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInternal: {fileID: 100100000} + m_GameObject: {fileID: 1050929111787496} + m_Material: {fileID: 0} + m_IsTrigger: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} diff --git a/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleProjectile.prefab.meta b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleProjectile.prefab.meta new file mode 100644 index 0000000..875b9dc --- /dev/null +++ b/Assets/Samples/Input System/1.14.0/Simple Demo/SimpleProjectile.prefab.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 4be9e6cdd2d5d499ca5c16cc83fdf790 +PrefabImporter: + externalObjects: {} + addedSourceAssetObjects: [] + isPrefabVariant: 0 + userData: + assetBundleName: + assetBundleVariant: |