test
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"displayName": "Visualizers",
|
||||
"description": "Several example visualizations of input controls/devices and input actions."
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b8429651427a640919754290f3704312
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,419 @@
|
||||
%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.37311953, g: 0.38074014, b: 0.3587274, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
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: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 1162315431}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 3
|
||||
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
|
||||
buildHeightMesh: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &676010914
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 676010918}
|
||||
- component: {fileID: 676010917}
|
||||
- component: {fileID: 676010916}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &676010916
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &676010917
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_Iso: 200
|
||||
m_ShutterSpeed: 0.005
|
||||
m_Aperture: 16
|
||||
m_FocusDistance: 10
|
||||
m_FocalLength: 50
|
||||
m_BladeCount: 5
|
||||
m_Curvature: {x: 2, y: 11}
|
||||
m_BarrelClipping: 0.25
|
||||
m_Anamorphism: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
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
|
||||
--- !u!4 &676010918
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!4 &989925709 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5430831075364511436}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!850595691 &1162315431
|
||||
LightingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Settings.lighting
|
||||
serializedVersion: 6
|
||||
m_GIWorkflowMode: 1
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 1
|
||||
m_RealtimeEnvironmentLighting: 1
|
||||
m_BounceScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_UsingShadowmask: 1
|
||||
m_BakeBackend: 1
|
||||
m_LightmapMaxSize: 1024
|
||||
m_BakeResolution: 40
|
||||
m_Padding: 2
|
||||
m_LightmapCompression: 3
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAO: 0
|
||||
m_MixedBakeMode: 2
|
||||
m_LightmapsBakeMode: 1
|
||||
m_FilterMode: 1
|
||||
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_RealtimeResolution: 2
|
||||
m_ForceWhiteAlbedo: 0
|
||||
m_ForceUpdates: 0
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherRayCount: 256
|
||||
m_FinalGatherFiltering: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_PVRBounces: 2
|
||||
m_PVRMinBounces: 2
|
||||
m_PVREnvironmentImportanceSampling: 1
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_PVRTiledBaking: 0
|
||||
m_NumRaysToShootPerTexel: -1
|
||||
--- !u!1 &1615874397
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1615874398}
|
||||
- component: {fileID: 1615874399}
|
||||
m_Layer: 0
|
||||
m_Name: DeviceCurrent
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1615874398
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1615874397}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -955.3655, y: -464.9797, z: 160.45508}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 989925709}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1615874399
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1615874397}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 50c7363fac4d24ae8a679e3e8f1fa838, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Label: Gamepad.current
|
||||
m_HistorySamples: 0
|
||||
m_TimeWindow: 3
|
||||
m_Rect:
|
||||
serializedVersion: 2
|
||||
x: 650
|
||||
y: 50
|
||||
width: 200
|
||||
height: 50
|
||||
m_Visualization: 8
|
||||
m_ControlPath: <Gamepad>/buttonEast
|
||||
m_ControlIndex: 0
|
||||
--- !u!1001 &5430831075364511436
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 5430831075476541849, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: GamepadVis
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 955.3655
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 464.9797
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -160.45508
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects:
|
||||
- targetCorrespondingSourceObject: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
|
||||
type: 3}
|
||||
insertIndex: -1
|
||||
addedObject: {fileID: 1615874398}
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: b8429651427a640919754290f3704312, type: 3}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60155d44a3f544d08a44a9fa0b5e2c4e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,325 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
////TODO: support ProcessEventsManually
|
||||
////TODO: add way to pick by player index
|
||||
|
||||
// Some fields assigned through only through serialization.
|
||||
#pragma warning disable CS0649
|
||||
|
||||
namespace UnityEngine.InputSystem.Samples
|
||||
{
|
||||
/// <summary>
|
||||
/// A component for debugging purposes that adds an on-screen display which shows
|
||||
/// activity on an input action over time (<see cref="InputActionVisualizer.Visualization.Interaction"/>)
|
||||
/// or an action's current value (<see cref="InputActionVisualizer.Visualization.Value"/>).
|
||||
/// </summary>
|
||||
/// <seealso cref="InputControlVisualizer"/>
|
||||
[AddComponentMenu("Input/Debug/Input Action Visualizer")]
|
||||
[ExecuteInEditMode]
|
||||
public class InputActionVisualizer : InputVisualizer
|
||||
{
|
||||
/// <summary>
|
||||
/// The action that is being visualized. May be null.
|
||||
/// </summary>
|
||||
public InputAction action => m_Action;
|
||||
|
||||
protected void FixedUpdate()
|
||||
{
|
||||
if (m_Visualization != Visualization.Value || m_Action == null || m_Visualizer == null)
|
||||
return;
|
||||
if (InputSystem.settings.updateMode != InputSettings.UpdateMode.ProcessEventsInFixedUpdate)
|
||||
return;
|
||||
RecordValue(Time.fixedTime);
|
||||
}
|
||||
|
||||
protected void Update()
|
||||
{
|
||||
if (m_Visualization != Visualization.Value || m_Action == null || m_Visualizer == null)
|
||||
return;
|
||||
if (InputSystem.settings.updateMode != InputSettings.UpdateMode.ProcessEventsInDynamicUpdate)
|
||||
return;
|
||||
RecordValue(Time.time);
|
||||
}
|
||||
|
||||
protected new void OnEnable()
|
||||
{
|
||||
if (m_Visualization == Visualization.None)
|
||||
return;
|
||||
|
||||
base.OnEnable();
|
||||
|
||||
ResolveAction();
|
||||
SetupVisualizer();
|
||||
|
||||
if (s_EnabledInstances == null)
|
||||
s_EnabledInstances = new List<InputActionVisualizer>();
|
||||
if (s_EnabledInstances.Count == 0)
|
||||
InputSystem.onActionChange += OnActionChange;
|
||||
s_EnabledInstances.Add(this);
|
||||
}
|
||||
|
||||
protected new void OnDisable()
|
||||
{
|
||||
base.OnDisable();
|
||||
|
||||
if (s_EnabledInstances != null)
|
||||
{
|
||||
s_EnabledInstances.Remove(this);
|
||||
if (s_EnabledInstances.Count == 0)
|
||||
InputSystem.onActionChange -= OnActionChange;
|
||||
}
|
||||
|
||||
if (m_Visualization == Visualization.Interaction && m_Action != null)
|
||||
{
|
||||
m_Action.started -= OnActionTriggered;
|
||||
m_Action.performed -= OnActionTriggered;
|
||||
m_Action.canceled -= OnActionTriggered;
|
||||
}
|
||||
}
|
||||
|
||||
protected new void OnGUI()
|
||||
{
|
||||
if (m_Visualization == Visualization.None)
|
||||
return;
|
||||
|
||||
if (Event.current.type != EventType.Repaint)
|
||||
return;
|
||||
|
||||
base.OnGUI();
|
||||
|
||||
if (m_ShowControlName && m_ActiveControlName != null)
|
||||
VisualizationHelpers.DrawText(m_ActiveControlName, new Vector2(m_Rect.x, m_Rect.yMax),
|
||||
VisualizationHelpers.ValueTextStyle);
|
||||
}
|
||||
|
||||
private void RecordValue(double time)
|
||||
{
|
||||
Debug.Assert(m_Action != null);
|
||||
Debug.Assert(m_Visualizer != null);
|
||||
|
||||
var value = m_Action.ReadValueAsObject();
|
||||
m_Visualizer.AddSample(value, time);
|
||||
|
||||
if (m_ShowControlName)
|
||||
RecordControlName();
|
||||
}
|
||||
|
||||
private void RecordControlName()
|
||||
{
|
||||
var control = m_Action.activeControl;
|
||||
if (control == m_ActiveControl)
|
||||
return;
|
||||
|
||||
m_ActiveControl = control;
|
||||
m_ActiveControlName = control != null ? new GUIContent(control.path) : null;
|
||||
}
|
||||
|
||||
private void ResolveAction()
|
||||
{
|
||||
// If we have a reference to an action, try that first.
|
||||
if (m_ActionReference != null)
|
||||
m_Action = m_ActionReference.action;
|
||||
|
||||
// If we didn't get an action from that but we have an action name,
|
||||
// just search through the currently enabled actions for one that
|
||||
// matches by name.
|
||||
if (m_Action == null && !string.IsNullOrEmpty(m_ActionName))
|
||||
{
|
||||
var slashIndex = m_ActionName.IndexOf('/');
|
||||
var mapName = slashIndex != -1 ? m_ActionName.Substring(0, slashIndex) : null;
|
||||
var actionName = slashIndex != -1 ? m_ActionName.Substring(slashIndex + 1) : m_ActionName;
|
||||
|
||||
var enabledActions = InputSystem.ListEnabledActions();
|
||||
foreach (var action in enabledActions)
|
||||
{
|
||||
if (string.Compare(actionName, action.name, StringComparison.InvariantCultureIgnoreCase) != 0)
|
||||
continue;
|
||||
|
||||
if (mapName != null && action.actionMap != null && string.Compare(mapName, action.actionMap.name,
|
||||
StringComparison.InvariantCultureIgnoreCase) != 0)
|
||||
continue;
|
||||
|
||||
m_Action = action;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// If we still don't have an action, there's nothing much for us to do.
|
||||
// The action may show up at a later point.
|
||||
if (m_Action == null)
|
||||
return;
|
||||
|
||||
if (m_Visualization == Visualization.Interaction)
|
||||
{
|
||||
m_Action.performed += OnActionTriggered;
|
||||
m_Action.started += OnActionTriggered;
|
||||
m_Action.canceled += OnActionTriggered;
|
||||
}
|
||||
}
|
||||
|
||||
private void SetupVisualizer()
|
||||
{
|
||||
m_Visualizer = null;
|
||||
if (m_Action == null)
|
||||
return;
|
||||
|
||||
switch (m_Visualization)
|
||||
{
|
||||
case Visualization.Value:
|
||||
switch (m_Action.type)
|
||||
{
|
||||
case InputActionType.Button:
|
||||
m_Visualizer = new VisualizationHelpers.ScalarVisualizer<float>
|
||||
{
|
||||
limitMax = 1
|
||||
};
|
||||
break;
|
||||
|
||||
case InputActionType.Value:
|
||||
case InputActionType.PassThrough:
|
||||
if (!string.IsNullOrEmpty(m_Action.expectedControlType))
|
||||
{
|
||||
var layout = InputSystem.LoadLayout(m_Action.expectedControlType);
|
||||
if (layout != null)
|
||||
{
|
||||
var valueType = layout.GetValueType();
|
||||
if (valueType == typeof(float))
|
||||
m_Visualizer = new VisualizationHelpers.ScalarVisualizer<float>
|
||||
{
|
||||
limitMax = 1
|
||||
};
|
||||
else if (valueType == typeof(int))
|
||||
m_Visualizer = new VisualizationHelpers.ScalarVisualizer<int>
|
||||
{
|
||||
limitMax = 1
|
||||
};
|
||||
else if (valueType == typeof(Vector2))
|
||||
m_Visualizer = new VisualizationHelpers.Vector2Visualizer();
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case Visualization.Interaction:
|
||||
// We don't really know which interactions are sitting on the action and its bindings
|
||||
// and while we could do and perform work to find out, it's simpler to just wait until
|
||||
// we get input and then whatever interactions we encounter as we go along. Also keeps
|
||||
// the visualization a little less cluttered.
|
||||
m_Visualizer = new VisualizationHelpers.TimelineVisualizer();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnActionDisabled()
|
||||
{
|
||||
}
|
||||
|
||||
private void OnActionTriggered(InputAction.CallbackContext context)
|
||||
{
|
||||
Debug.Assert(m_Visualization == Visualization.Interaction);
|
||||
|
||||
var timelineName = "Default";
|
||||
var interaction = context.interaction;
|
||||
if (interaction != null)
|
||||
{
|
||||
timelineName = interaction.GetType().Name;
|
||||
if (timelineName.EndsWith("Interaction"))
|
||||
timelineName = timelineName.Substring(0, timelineName.Length - "Interaction".Length);
|
||||
}
|
||||
|
||||
var visualizer = (VisualizationHelpers.TimelineVisualizer)m_Visualizer;
|
||||
var timelineIndex = visualizer.GetTimeline(timelineName);
|
||||
if (timelineIndex == -1)
|
||||
{
|
||||
Color color;
|
||||
timelineIndex = visualizer.timelineCount;
|
||||
if (timelineIndex < s_InteractionColors.Length)
|
||||
color = s_InteractionColors[timelineIndex];
|
||||
else
|
||||
color = new Color(Random.value, Random.value, Random.value, 1);
|
||||
|
||||
visualizer.AddTimeline(timelineName, color);
|
||||
if (timelineIndex > 0)
|
||||
visualizer.showLegend = true;
|
||||
}
|
||||
|
||||
var time = (float)context.time;
|
||||
switch (context.phase)
|
||||
{
|
||||
case InputActionPhase.Canceled:
|
||||
visualizer.AddSample(timelineIndex, 0f, time);
|
||||
break;
|
||||
|
||||
case InputActionPhase.Performed:
|
||||
visualizer.AddSample(timelineIndex, 1f, time);
|
||||
visualizer.AddSample(timelineIndex, 0f, time);
|
||||
break;
|
||||
|
||||
case InputActionPhase.Started:
|
||||
visualizer.AddSample(timelineIndex, 0.5f, time);
|
||||
break;
|
||||
}
|
||||
|
||||
if (m_ShowControlName)
|
||||
RecordControlName();
|
||||
}
|
||||
|
||||
private static void OnActionChange(object actionOrMap, InputActionChange change)
|
||||
{
|
||||
switch (change)
|
||||
{
|
||||
case InputActionChange.ActionEnabled:
|
||||
case InputActionChange.ActionMapEnabled:
|
||||
for (var i = 0; i < s_EnabledInstances.Count; ++i)
|
||||
if (s_EnabledInstances[i].m_Action == null)
|
||||
{
|
||||
s_EnabledInstances[i].ResolveAction();
|
||||
if (s_EnabledInstances[i].m_Action != null)
|
||||
s_EnabledInstances[i].SetupVisualizer();
|
||||
}
|
||||
break;
|
||||
|
||||
case InputActionChange.ActionDisabled:
|
||||
for (var i = 0; i < s_EnabledInstances.Count; ++i)
|
||||
if (actionOrMap == s_EnabledInstances[i].m_Action)
|
||||
s_EnabledInstances[i].OnActionDisabled();
|
||||
break;
|
||||
|
||||
case InputActionChange.ActionMapDisabled:
|
||||
for (var i = 0; i < s_EnabledInstances.Count; ++i)
|
||||
if (s_EnabledInstances[i].m_Action?.actionMap == actionOrMap)
|
||||
s_EnabledInstances[i].OnActionDisabled();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
[SerializeField] private Visualization m_Visualization;
|
||||
[SerializeField] private InputActionReference m_ActionReference;
|
||||
[SerializeField] private string m_ActionName;
|
||||
[SerializeField] private bool m_ShowControlName;
|
||||
|
||||
[NonSerialized] private InputAction m_Action;
|
||||
[NonSerialized] private InputControl m_ActiveControl;
|
||||
[NonSerialized] private GUIContent m_ActiveControlName;
|
||||
|
||||
private static List<InputActionVisualizer> s_EnabledInstances;
|
||||
private static readonly Color[] s_InteractionColors =
|
||||
{
|
||||
new Color(1, 0, 0, 1),
|
||||
new Color(0, 0, 1, 1),
|
||||
new Color(1, 1, 0, 1),
|
||||
new Color(1, 0, 1, 1),
|
||||
new Color(0, 1, 1, 1),
|
||||
new Color(0, 1, 0, 1),
|
||||
};
|
||||
|
||||
public enum Visualization
|
||||
{
|
||||
None,
|
||||
Value,
|
||||
Interaction,
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 939ce9f3839b54466af594f7854ed222
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,375 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.InputSystem.Layouts;
|
||||
using UnityEngine.InputSystem.LowLevel;
|
||||
|
||||
////TODO: add way to plot values over time
|
||||
|
||||
// Goal is to build this out into something that can visualize a large number of
|
||||
// aspects about an InputControl/InputDevice especially with an eye towards making
|
||||
// it a good deal to debug any input collection/processing irregularities that may
|
||||
// be seen in players (or the editor, for that matter).
|
||||
|
||||
// Some fields assigned through only through serialization.
|
||||
#pragma warning disable CS0649
|
||||
|
||||
namespace UnityEngine.InputSystem.Samples
|
||||
{
|
||||
/// <summary>
|
||||
/// A component for debugging purposes that adds an on-screen display which shows
|
||||
/// activity on an input control over time.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This component is most useful for debugging input directly on the source device.
|
||||
/// </remarks>
|
||||
/// <seealso cref="InputActionVisualizer"/>
|
||||
[AddComponentMenu("Input/Debug/Input Control Visualizer")]
|
||||
[ExecuteInEditMode]
|
||||
public class InputControlVisualizer : InputVisualizer
|
||||
{
|
||||
/// <summary>
|
||||
/// What kind of visualization to show.
|
||||
/// </summary>
|
||||
public Mode visualization
|
||||
{
|
||||
get => m_Visualization;
|
||||
set
|
||||
{
|
||||
if (m_Visualization == value)
|
||||
return;
|
||||
m_Visualization = value;
|
||||
SetupVisualizer();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Path of the control that is to be visualized.
|
||||
/// </summary>
|
||||
/// <seealso cref="InputControlPath"/>
|
||||
/// <seealso cref="InputControl.path"/>
|
||||
public string controlPath
|
||||
{
|
||||
get => m_ControlPath;
|
||||
set
|
||||
{
|
||||
m_ControlPath = value;
|
||||
if (m_Control != null)
|
||||
ResolveControl();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// If, at runtime, multiple controls are matching <see cref="controlPath"/>, this property
|
||||
/// determines the index of the control that is retrieved from the possible options.
|
||||
/// </summary>
|
||||
public int controlIndex
|
||||
{
|
||||
get => m_ControlIndex;
|
||||
set
|
||||
{
|
||||
m_ControlIndex = value;
|
||||
if (m_Control != null)
|
||||
ResolveControl();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The control resolved from <see cref="controlPath"/> at runtime. May be null.
|
||||
/// </summary>
|
||||
public InputControl control => m_Control;
|
||||
|
||||
protected new void OnEnable()
|
||||
{
|
||||
if (m_Visualization == Mode.None)
|
||||
return;
|
||||
|
||||
if (s_EnabledInstances == null)
|
||||
s_EnabledInstances = new List<InputControlVisualizer>();
|
||||
if (s_EnabledInstances.Count == 0)
|
||||
{
|
||||
InputSystem.onDeviceChange += OnDeviceChange;
|
||||
InputSystem.onEvent += OnEvent;
|
||||
}
|
||||
s_EnabledInstances.Add(this);
|
||||
|
||||
ResolveControl();
|
||||
|
||||
base.OnEnable();
|
||||
}
|
||||
|
||||
protected new void OnDisable()
|
||||
{
|
||||
if (m_Visualization == Mode.None)
|
||||
return;
|
||||
|
||||
if (s_EnabledInstances != null)
|
||||
{
|
||||
s_EnabledInstances.Remove(this);
|
||||
if (s_EnabledInstances.Count == 0)
|
||||
{
|
||||
InputSystem.onDeviceChange -= OnDeviceChange;
|
||||
InputSystem.onEvent -= OnEvent;
|
||||
}
|
||||
}
|
||||
|
||||
m_Control = null;
|
||||
|
||||
base.OnDisable();
|
||||
}
|
||||
|
||||
protected new void OnGUI()
|
||||
{
|
||||
if (m_Visualization == Mode.None)
|
||||
return;
|
||||
|
||||
base.OnGUI();
|
||||
}
|
||||
|
||||
protected new void OnValidate()
|
||||
{
|
||||
ResolveControl();
|
||||
base.OnValidate();
|
||||
}
|
||||
|
||||
[Tooltip("The type of visualization to perform for the control.")]
|
||||
[SerializeField] private Mode m_Visualization;
|
||||
[Tooltip("Path of the control that should be visualized. If at runtime, multiple "
|
||||
+ "controls match the given path, the 'Control Index' property can be used to decide "
|
||||
+ "which of the controls to visualize.")]
|
||||
[InputControl, SerializeField] private string m_ControlPath;
|
||||
[Tooltip("If multiple controls match 'Control Path' at runtime, this property decides "
|
||||
+ "which control to visualize from the list of candidates. It is a zero-based index.")]
|
||||
[SerializeField] private int m_ControlIndex;
|
||||
|
||||
[NonSerialized] private InputControl m_Control;
|
||||
|
||||
private static List<InputControlVisualizer> s_EnabledInstances;
|
||||
|
||||
private void ResolveControl()
|
||||
{
|
||||
m_Control = null;
|
||||
if (string.IsNullOrEmpty(m_ControlPath))
|
||||
return;
|
||||
|
||||
using (var candidates = InputSystem.FindControls(m_ControlPath))
|
||||
{
|
||||
var numCandidates = candidates.Count;
|
||||
if (numCandidates > 1 && m_ControlIndex < numCandidates && m_ControlIndex >= 0)
|
||||
m_Control = candidates[m_ControlIndex];
|
||||
else if (numCandidates > 0)
|
||||
m_Control = candidates[0];
|
||||
}
|
||||
|
||||
SetupVisualizer();
|
||||
}
|
||||
|
||||
private void SetupVisualizer()
|
||||
{
|
||||
if (m_Control == null)
|
||||
{
|
||||
m_Visualizer = null;
|
||||
return;
|
||||
}
|
||||
|
||||
switch (m_Visualization)
|
||||
{
|
||||
case Mode.Value:
|
||||
{
|
||||
var valueType = m_Control.valueType;
|
||||
if (valueType == typeof(Vector2))
|
||||
m_Visualizer = new VisualizationHelpers.Vector2Visualizer(m_HistorySamples);
|
||||
else if (valueType == typeof(float))
|
||||
m_Visualizer = new VisualizationHelpers.ScalarVisualizer<float>(m_HistorySamples)
|
||||
{
|
||||
////TODO: pass actual min/max limits of control
|
||||
limitMax = 1,
|
||||
limitMin = 0
|
||||
};
|
||||
else if (valueType == typeof(int))
|
||||
m_Visualizer = new VisualizationHelpers.ScalarVisualizer<int>(m_HistorySamples)
|
||||
{
|
||||
////TODO: pass actual min/max limits of control
|
||||
limitMax = 1,
|
||||
limitMin = 0
|
||||
};
|
||||
else
|
||||
{
|
||||
////TODO: generic visualizer
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.Events:
|
||||
{
|
||||
var visualizer = new VisualizationHelpers.TimelineVisualizer(m_HistorySamples)
|
||||
{
|
||||
timeUnit = VisualizationHelpers.TimelineVisualizer.TimeUnit.Frames,
|
||||
historyDepth = m_HistorySamples,
|
||||
showLimits = true,
|
||||
limitsY = new Vector2(0, 5) // Will expand upward automatically
|
||||
};
|
||||
m_Visualizer = visualizer;
|
||||
visualizer.AddTimeline("Events", Color.green,
|
||||
VisualizationHelpers.TimelineVisualizer.PlotType.BarChart);
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.MaximumLag:
|
||||
{
|
||||
var visualizer = new VisualizationHelpers.TimelineVisualizer(m_HistorySamples)
|
||||
{
|
||||
timeUnit = VisualizationHelpers.TimelineVisualizer.TimeUnit.Frames,
|
||||
historyDepth = m_HistorySamples,
|
||||
valueUnit = new GUIContent("ms"),
|
||||
showLimits = true,
|
||||
limitsY = new Vector2(0, 6)
|
||||
};
|
||||
m_Visualizer = visualizer;
|
||||
visualizer.AddTimeline("MaxLag", Color.red,
|
||||
VisualizationHelpers.TimelineVisualizer.PlotType.BarChart);
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.Bytes:
|
||||
{
|
||||
var visualizer = new VisualizationHelpers.TimelineVisualizer(m_HistorySamples)
|
||||
{
|
||||
timeUnit = VisualizationHelpers.TimelineVisualizer.TimeUnit.Frames,
|
||||
valueUnit = new GUIContent("bytes"),
|
||||
historyDepth = m_HistorySamples,
|
||||
showLimits = true,
|
||||
limitsY = new Vector2(0, 64)
|
||||
};
|
||||
m_Visualizer = visualizer;
|
||||
visualizer.AddTimeline("Bytes", Color.red,
|
||||
VisualizationHelpers.TimelineVisualizer.PlotType.BarChart);
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.DeviceCurrent:
|
||||
{
|
||||
m_Visualizer = new VisualizationHelpers.CurrentDeviceVisualizer();
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnDeviceChange(InputDevice device, InputDeviceChange change)
|
||||
{
|
||||
if (change != InputDeviceChange.Added && change != InputDeviceChange.Removed)
|
||||
return;
|
||||
|
||||
for (var i = 0; i < s_EnabledInstances.Count; ++i)
|
||||
{
|
||||
var component = s_EnabledInstances[i];
|
||||
if (change == InputDeviceChange.Removed && component.m_Control != null &&
|
||||
component.m_Control.device == device)
|
||||
component.ResolveControl();
|
||||
else if (change == InputDeviceChange.Added)
|
||||
component.ResolveControl();
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnEvent(InputEventPtr eventPtr, InputDevice device)
|
||||
{
|
||||
// Ignore very first update as we usually get huge lag spikes and event count
|
||||
// spikes in it from stuff that has accumulated while going into play mode or
|
||||
// starting up the player.
|
||||
if (InputState.updateCount <= 1)
|
||||
return;
|
||||
|
||||
if (InputState.currentUpdateType == InputUpdateType.Editor)
|
||||
return;
|
||||
|
||||
if (!eventPtr.IsA<StateEvent>() && !eventPtr.IsA<DeltaStateEvent>())
|
||||
return;
|
||||
|
||||
for (var i = 0; i < s_EnabledInstances.Count; ++i)
|
||||
{
|
||||
var component = s_EnabledInstances[i];
|
||||
if (component.m_Control?.device != device || component.m_Visualizer == null)
|
||||
continue;
|
||||
|
||||
component.OnEventImpl(eventPtr, device);
|
||||
}
|
||||
}
|
||||
|
||||
private unsafe void OnEventImpl(InputEventPtr eventPtr, InputDevice device)
|
||||
{
|
||||
switch (m_Visualization)
|
||||
{
|
||||
case Mode.Value:
|
||||
{
|
||||
var statePtr = m_Control.GetStatePtrFromStateEvent(eventPtr);
|
||||
if (statePtr == null)
|
||||
return; // No value for control in event.
|
||||
var value = m_Control.ReadValueFromStateAsObject(statePtr);
|
||||
m_Visualizer.AddSample(value, eventPtr.time);
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.Events:
|
||||
{
|
||||
var visualizer = (VisualizationHelpers.TimelineVisualizer)m_Visualizer;
|
||||
var frame = (int)InputState.updateCount;
|
||||
ref var valueRef = ref visualizer.GetOrCreateSample(0, frame);
|
||||
var value = valueRef.ToInt32() + 1;
|
||||
valueRef = value;
|
||||
visualizer.limitsY =
|
||||
new Vector2(0, Mathf.Max(value, visualizer.limitsY.y));
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.MaximumLag:
|
||||
{
|
||||
var visualizer = (VisualizationHelpers.TimelineVisualizer)m_Visualizer;
|
||||
var lag = (Time.realtimeSinceStartup - eventPtr.time) * 1000; // In milliseconds.
|
||||
var frame = (int)InputState.updateCount;
|
||||
ref var valueRef = ref visualizer.GetOrCreateSample(0, frame);
|
||||
|
||||
if (lag > valueRef.ToDouble())
|
||||
{
|
||||
valueRef = lag;
|
||||
if (lag > visualizer.limitsY.y)
|
||||
visualizer.limitsY = new Vector2(0, Mathf.Ceil((float)lag));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.Bytes:
|
||||
{
|
||||
var visualizer = (VisualizationHelpers.TimelineVisualizer)m_Visualizer;
|
||||
var frame = (int)InputState.updateCount;
|
||||
ref var valueRef = ref visualizer.GetOrCreateSample(0, frame);
|
||||
var value = valueRef.ToInt32() + eventPtr.sizeInBytes;
|
||||
valueRef = value;
|
||||
visualizer.limitsY =
|
||||
new Vector2(0, Mathf.Max(value, visualizer.limitsY.y));
|
||||
break;
|
||||
}
|
||||
|
||||
case Mode.DeviceCurrent:
|
||||
{
|
||||
m_Visualizer.AddSample(device, eventPtr.time);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines which aspect of the control should be visualized.
|
||||
/// </summary>
|
||||
public enum Mode
|
||||
{
|
||||
None = 0,
|
||||
Value = 1,
|
||||
Events = 4,
|
||||
MaximumLag = 6,
|
||||
Bytes = 7,
|
||||
DeviceCurrent = 8,
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 50c7363fac4d24ae8a679e3e8f1fa838
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,83 @@
|
||||
using System;
|
||||
|
||||
// Some fields assigned through only through serialization.
|
||||
#pragma warning disable CS0649
|
||||
|
||||
namespace UnityEngine.InputSystem.Samples
|
||||
{
|
||||
/// <summary>
|
||||
/// Base class for <see cref="InputActionVisualizer"/> and <see cref="InputControlVisualizer"/>.
|
||||
/// Not meant to be extended outside of input system.
|
||||
/// </summary>
|
||||
public abstract class InputVisualizer : MonoBehaviour
|
||||
{
|
||||
protected void OnEnable()
|
||||
{
|
||||
ResolveParent();
|
||||
}
|
||||
|
||||
protected void OnDisable()
|
||||
{
|
||||
m_Parent = null;
|
||||
m_Visualizer = null;
|
||||
}
|
||||
|
||||
protected void OnGUI()
|
||||
{
|
||||
if (Event.current.type != EventType.Repaint)
|
||||
return;
|
||||
|
||||
// If we have a parent, offset our rect by the parent.
|
||||
var rect = m_Rect;
|
||||
if (m_Parent != null)
|
||||
rect.position += m_Parent.m_Rect.position;
|
||||
|
||||
if (m_Visualizer != null)
|
||||
m_Visualizer.OnDraw(rect);
|
||||
else
|
||||
VisualizationHelpers.DrawRectangle(rect, new Color(1, 1, 1, 0.1f));
|
||||
|
||||
// Draw label, if we have one.
|
||||
if (!string.IsNullOrEmpty(m_Label))
|
||||
{
|
||||
if (m_LabelContent == null)
|
||||
m_LabelContent = new GUIContent(m_Label);
|
||||
if (s_LabelStyle == null)
|
||||
{
|
||||
s_LabelStyle = new GUIStyle();
|
||||
s_LabelStyle.normal.textColor = Color.yellow;
|
||||
}
|
||||
|
||||
////FIXME: why does CalcSize not calculate the rect width correctly?
|
||||
var labelSize = s_LabelStyle.CalcSize(m_LabelContent);
|
||||
var labelRect = new Rect(rect.x + 4, rect.y, labelSize.x + 4, rect.height);
|
||||
|
||||
s_LabelStyle.Draw(labelRect, m_LabelContent, false, false, false, false);
|
||||
}
|
||||
}
|
||||
|
||||
protected void OnValidate()
|
||||
{
|
||||
ResolveParent();
|
||||
m_LabelContent = null;
|
||||
}
|
||||
|
||||
protected void ResolveParent()
|
||||
{
|
||||
var parentTransform = transform.parent;
|
||||
if (parentTransform != null)
|
||||
m_Parent = parentTransform.GetComponent<InputControlVisualizer>();
|
||||
}
|
||||
|
||||
[SerializeField] internal string m_Label;
|
||||
[SerializeField] internal int m_HistorySamples = 500;
|
||||
[SerializeField] internal float m_TimeWindow = 3;
|
||||
[SerializeField] internal Rect m_Rect = new Rect(10, 10, 300, 30);
|
||||
|
||||
[NonSerialized] internal GUIContent m_LabelContent;
|
||||
[NonSerialized] internal VisualizationHelpers.Visualizer m_Visualizer;
|
||||
[NonSerialized] internal InputVisualizer m_Parent;
|
||||
|
||||
private static GUIStyle s_LabelStyle;
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 55e8b429cfd654e2f89f16b18d99cf4b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 76c62aa07f01945d4b9afdb34d7a3396
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,274 @@
|
||||
%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, g: 0, b: 0, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 1
|
||||
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: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
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!1 &676010914
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 676010918}
|
||||
- component: {fileID: 676010917}
|
||||
- component: {fileID: 676010916}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &676010916
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &676010917
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
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
|
||||
--- !u!4 &676010918
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
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: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &2680667830097201012
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2680667830796240929, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: MouseVis
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 955.3655
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 464.9797
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -160.45508
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2680667830796240931, guid: 76c62aa07f01945d4b9afdb34d7a3396,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 76c62aa07f01945d4b9afdb34d7a3396, type: 3}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fef3f56dbc5ed42a08528b798af41a4e
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15e76881a88c849388ecd62eb8a05750
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,274 @@
|
||||
%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, g: 0, b: 0, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 1
|
||||
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: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
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!1 &676010914
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 676010918}
|
||||
- component: {fileID: 676010917}
|
||||
- component: {fileID: 676010916}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &676010916
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &676010917
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
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
|
||||
--- !u!4 &676010918
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
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: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &3520677240537631409
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 3520677241453528548, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: PenVis
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 955.3655
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 464.9797
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -160.45508
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3520677241453528550, guid: 15e76881a88c849388ecd62eb8a05750,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 15e76881a88c849388ecd62eb8a05750, type: 3}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e35258e8d9ecf4a17b799d42b5ace6f3
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"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": ""
|
||||
},
|
||||
{
|
||||
"name": "move",
|
||||
"type": "Value",
|
||||
"id": "50fd2809-3aa3-4a90-988e-1facf6773553",
|
||||
"expectedControlType": "Stick",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "look",
|
||||
"type": "Value",
|
||||
"id": "c60e0974-d140-4597-a40e-9862193067e9",
|
||||
"expectedControlType": "Vector2",
|
||||
"processors": "",
|
||||
"interactions": ""
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
{
|
||||
"name": "",
|
||||
"id": "abb776f3-f329-4f7b-bbf8-b577d13be018",
|
||||
"path": "*/{PrimaryAction}",
|
||||
"interactions": "Tap,SlowTap",
|
||||
"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": []
|
||||
}
|
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dc782cd8f65d34f0a9c0e85380a5b684
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 8404be70184654265930450def6a9037, type: 3}
|
||||
generateWrapperCode: 0
|
||||
wrapperCodePath:
|
||||
wrapperClassName:
|
||||
wrapperCodeNamespace:
|
@@ -0,0 +1,291 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &1309930466035750405
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1309930466035750406}
|
||||
- component: {fileID: 1309930466035750407}
|
||||
m_Layer: 0
|
||||
m_Name: MoveActionVis
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1309930466035750406
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930466035750405}
|
||||
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: []
|
||||
m_Father: {fileID: 1309930466712146553}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1309930466035750407
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930466035750405}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 939ce9f3839b54466af594f7854ed222, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Label: Move
|
||||
m_HistorySamples: 500
|
||||
m_TimeWindow: 4
|
||||
m_Rect:
|
||||
serializedVersion: 2
|
||||
x: 225
|
||||
y: 125
|
||||
width: 150
|
||||
height: 150
|
||||
m_Visualization: 1
|
||||
m_ActionReference: {fileID: 0}
|
||||
m_ActionName: move
|
||||
m_PlayerIndex: 0
|
||||
m_ShowControlName: 1
|
||||
--- !u!1 &1309930466250040071
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1309930466250040120}
|
||||
- component: {fileID: 1309930466250040121}
|
||||
m_Layer: 0
|
||||
m_Name: FireActionVis
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1309930466250040120
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930466250040071}
|
||||
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: []
|
||||
m_Father: {fileID: 1309930466712146553}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1309930466250040121
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930466250040071}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 939ce9f3839b54466af594f7854ed222, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Label: Fire
|
||||
m_HistorySamples: 500
|
||||
m_TimeWindow: 4
|
||||
m_Rect:
|
||||
serializedVersion: 2
|
||||
x: 50
|
||||
y: 50
|
||||
width: 50
|
||||
height: 50
|
||||
m_Visualization: 1
|
||||
m_ActionReference: {fileID: 0}
|
||||
m_ActionName: fire
|
||||
m_PlayerIndex: 0
|
||||
m_ShowControlName: 1
|
||||
--- !u!1 &1309930466712146503
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1309930466712146553}
|
||||
- component: {fileID: 1309930466712146552}
|
||||
m_Layer: 0
|
||||
m_Name: SimpleControlsVis
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1309930466712146553
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930466712146503}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 955.3655, y: 464.9797, z: -160.45508}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1309930466250040120}
|
||||
- {fileID: 1309930467610566051}
|
||||
- {fileID: 1309930467894820737}
|
||||
- {fileID: 1309930466035750406}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1309930466712146552
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930466712146503}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 939ce9f3839b54466af594f7854ed222, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Label:
|
||||
m_HistorySamples: 500
|
||||
m_TimeWindow: 3
|
||||
m_Rect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 300
|
||||
height: 30
|
||||
m_Visualization: 0
|
||||
m_ActionReference: {fileID: 0}
|
||||
m_ActionName:
|
||||
m_PlayerIndex: 0
|
||||
m_ShowControlName: 0
|
||||
--- !u!1 &1309930467610566049
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1309930467610566051}
|
||||
- component: {fileID: 1309930467610566050}
|
||||
m_Layer: 0
|
||||
m_Name: FireActionVis
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1309930467610566051
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930467610566049}
|
||||
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: []
|
||||
m_Father: {fileID: 1309930466712146553}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1309930467610566050
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930467610566049}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 939ce9f3839b54466af594f7854ed222, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Label:
|
||||
m_HistorySamples: 500
|
||||
m_TimeWindow: 4
|
||||
m_Rect:
|
||||
serializedVersion: 2
|
||||
x: 110
|
||||
y: 50
|
||||
width: 200
|
||||
height: 50
|
||||
m_Visualization: 2
|
||||
m_ActionReference: {fileID: 0}
|
||||
m_ActionName: fire
|
||||
m_PlayerIndex: 0
|
||||
m_ShowControlName: 0
|
||||
--- !u!1 &1309930467894820736
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1309930467894820737}
|
||||
- component: {fileID: 1309930467894820738}
|
||||
m_Layer: 0
|
||||
m_Name: LookActionVis
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1309930467894820737
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930467894820736}
|
||||
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: []
|
||||
m_Father: {fileID: 1309930466712146553}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1309930467894820738
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1309930467894820736}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 939ce9f3839b54466af594f7854ed222, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Label: Look
|
||||
m_HistorySamples: 1000
|
||||
m_TimeWindow: 4
|
||||
m_Rect:
|
||||
serializedVersion: 2
|
||||
x: 50
|
||||
y: 125
|
||||
width: 150
|
||||
height: 150
|
||||
m_Visualization: 1
|
||||
m_ActionReference: {fileID: 0}
|
||||
m_ActionName: look
|
||||
m_PlayerIndex: 0
|
||||
m_ShowControlName: 1
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd3e0c715b35445fbb238f50ba9c9332
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,337 @@
|
||||
%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, g: 0, b: 0, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 11
|
||||
m_GIWorkflowMode: 1
|
||||
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: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
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!1 &524695744
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 524695745}
|
||||
- component: {fileID: 524695746}
|
||||
m_Layer: 0
|
||||
m_Name: Player
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &524695745
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 524695744}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 955.3655, y: 464.9797, z: -160.45508}
|
||||
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!114 &524695746
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 524695744}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 62899f850307741f2a39c98a8b639597, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Actions: {fileID: -944628639613478452, guid: dc782cd8f65d34f0a9c0e85380a5b684,
|
||||
type: 3}
|
||||
m_NotificationBehavior: 0
|
||||
m_UIInputModule: {fileID: 0}
|
||||
m_DeviceLostEvent:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.InputSystem.PlayerInput.PlayerInput+DeviceLostEvent, Unity.InputSystem,
|
||||
Version=0.9.1.0, Culture=neutral, PublicKeyToken=null
|
||||
m_DeviceRegainedEvent:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.InputSystem.PlayerInput.PlayerInput+DeviceRegainedEvent,
|
||||
Unity.InputSystem, Version=0.9.1.0, Culture=neutral, PublicKeyToken=null
|
||||
m_ActionEvents: []
|
||||
m_AutoSwitchControlScheme: 0
|
||||
m_DefaultControlScheme:
|
||||
m_DefaultActionMap: 265c38f5-dd18-4d34-b198-aec58e1627ff
|
||||
m_SplitScreenIndex: -1
|
||||
m_Camera: {fileID: 0}
|
||||
--- !u!1 &676010914
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 676010918}
|
||||
- component: {fileID: 676010917}
|
||||
- component: {fileID: 676010916}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &676010916
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &676010917
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 2
|
||||
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
|
||||
--- !u!4 &676010918
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 676010914}
|
||||
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: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &1309930466053861656
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1309930466712146503, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SimpleControlsVis
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 955.3655
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 464.9797
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: -160.45508
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1309930466712146553, guid: cd3e0c715b35445fbb238f50ba9c9332,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: cd3e0c715b35445fbb238f50ba9c9332, type: 3}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14281ec1c6daa42bc97c543e027b5839
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "InputSystem.Samples.Visualizers",
|
||||
"references": [
|
||||
"GUID:75469ad4d38634e559750d17036d5f7c"
|
||||
],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": true,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": []
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 728e24aed463f43edbdc096fef896432
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ad5cfc4797aad4aa1b10dc648646ba5e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user