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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
302 changes: 191 additions & 111 deletions Assets/Samples/Visualizers/GamepadVis.prefab

Large diffs are not rendered by default.

103 changes: 16 additions & 87 deletions Assets/Samples/Visualizers/GamepadVisualizer.unity
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ OcclusionCullingSettings:
--- !u!104 &2
RenderSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
serializedVersion: 10
m_Fog: 0
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
m_FogMode: 3
Expand All @@ -38,13 +38,12 @@ RenderSettings:
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
serializedVersion: 13
m_BakeOnSceneLoad: 0
m_GISettings:
serializedVersion: 2
m_BounceScale: 1
Expand All @@ -67,9 +66,6 @@ LightmapSettings:
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
Expand Down Expand Up @@ -207,29 +203,22 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 676010914}
serializedVersion: 2
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
serializedVersion: 9
m_EnableBakedLightmaps: 1
m_EnableRealtimeLightmaps: 1
m_RealtimeEnvironmentLighting: 1
Expand All @@ -239,6 +228,8 @@ LightingSettings:
m_UsingShadowmask: 1
m_BakeBackend: 1
m_LightmapMaxSize: 1024
m_LightmapSizeFixed: 0
m_UseMipmapLimits: 1
m_BakeResolution: 40
m_Padding: 2
m_LightmapCompression: 3
Expand All @@ -252,13 +243,11 @@ LightingSettings:
m_FilterMode: 1
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
m_ExportTrainingData: 0
m_EnableWorkerProcessBaking: 1
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
Expand All @@ -282,64 +271,7 @@ LightingSettings:
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
m_RespectSceneVisibilityWhenBakingGI: 0
--- !u!1001 &5430831075364511436
PrefabInstance:
m_ObjectHideFlags: 0
Expand All @@ -353,11 +285,6 @@ PrefabInstance:
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
Expand Down Expand Up @@ -410,10 +337,12 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects: []
m_AddedGameObjects:
- targetCorrespondingSourceObject: {fileID: 5430831075476541851, guid: b8429651427a640919754290f3704312,
type: 3}
insertIndex: -1
addedObject: {fileID: 1615874398}
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b8429651427a640919754290f3704312, type: 3}
--- !u!1660057539 &9223372036854775807
SceneRoots:
m_ObjectHideFlags: 0
m_Roots:
- {fileID: 676010918}
- {fileID: 5430831075364511436}
1 change: 1 addition & 0 deletions Assets/Samples/Visualizers/InputVisualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected void OnGUI()
{
s_LabelStyle = new GUIStyle();
s_LabelStyle.normal.textColor = Color.yellow;
s_LabelStyle.fontSize = 20;
}

////FIXME: why does CalcSize not calculate the rect width correctly?
Expand Down
80 changes: 40 additions & 40 deletions Assets/Samples/Visualizers/MouseVis.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 350
x: 437.5
y: 0
width: 150
height: 150
width: 187.5
height: 187.5
m_Visualization: 1
m_ControlPath: <Mouse>/scroll
m_ControlIndex: 0
Expand Down Expand Up @@ -105,10 +105,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 85
y: 175
width: 50
height: 50
x: 106.25
y: 218.75
width: 62.5
height: 62.5
m_Visualization: 1
m_ControlPath: <Mouse>/middleButton
m_ControlIndex: 0
Expand Down Expand Up @@ -161,10 +161,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 25
y: 175
width: 50
height: 50
x: 31.25
y: 218.75
width: 62.5
height: 62.5
m_Visualization: 1
m_ControlPath: <Mouse>/leftButton
m_ControlIndex: 0
Expand Down Expand Up @@ -217,10 +217,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 20
y: 375
width: 700
height: 70
x: 25
y: 468.75
width: 875
height: 87.5
m_Visualization: 4
m_ControlPath: <Mouse>
m_ControlIndex: 0
Expand Down Expand Up @@ -273,10 +273,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 20
y: 460
width: 700
height: 70
x: 25
y: 575
width: 875
height: 87.5
m_Visualization: 6
m_ControlPath: <Mouse>
m_ControlIndex: 0
Expand Down Expand Up @@ -331,8 +331,8 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 150
height: 150
width: 187.5
height: 187.5
m_Visualization: 1
m_ControlPath: <Mouse>/position
m_ControlIndex: 0
Expand Down Expand Up @@ -452,10 +452,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 175
x: 218.75
y: 0
width: 150
height: 150
width: 187.5
height: 187.5
m_Visualization: 1
m_ControlPath: <Mouse>/delta
m_ControlIndex: 0
Expand Down Expand Up @@ -508,10 +508,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 145
y: 175
width: 50
height: 50
x: 181.25
y: 218.75
width: 62.5
height: 62.5
m_Visualization: 1
m_ControlPath: <Mouse>/rightButton
m_ControlIndex: 0
Expand Down Expand Up @@ -564,10 +564,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 20
y: 550
width: 700
height: 70
x: 25
y: 687.5
width: 875
height: 87.5
m_Visualization: 7
m_ControlPath: <Mouse>
m_ControlIndex: 0
Expand Down Expand Up @@ -620,10 +620,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 265
y: 175
width: 50
height: 50
x: 331.25
y: 218.75
width: 62.5
height: 62.5
m_Visualization: 1
m_ControlPath: <Mouse>/backButton
m_ControlIndex: 0
Expand Down Expand Up @@ -676,10 +676,10 @@ MonoBehaviour:
m_TimeWindow: 3
m_Rect:
serializedVersion: 2
x: 205
y: 175
width: 50
height: 50
x: 256.25
y: 218.75
width: 62.5
height: 62.5
m_Visualization: 1
m_ControlPath: <Mouse>/forwardButton
m_ControlIndex: 0
Loading