1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2025-01-19 01:24:13 +01:00

Fix touch and button issue (based on #16)

This commit is contained in:
xpeng 2022-03-15 18:51:21 +01:00
parent dd9304e476
commit ddf474e81c
7 changed files with 126 additions and 103 deletions

View File

@ -925,6 +925,10 @@ PrefabInstance:
propertyPath: m_LocalPosition.z
value: 0.005
objectReference: {fileID: 0}
- target: {fileID: -9129991538565115585, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -8980045776078546229, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
value: 0
@ -947,7 +951,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -995,19 +999,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 0
value: 4.591775e-39
objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: 0
value: 2.2e-44
objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 1e-45
value: 2.4405384e-30
objectReference: {fileID: 0}
- target: {fileID: -8699732548318090483, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 0
value: 9.1858e-41
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_RootOrder
@ -1067,7 +1071,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8258196058206172477, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalScale.z
value: 28
value: 25
objectReference: {fileID: 0}
- target: {fileID: -8258196058206172477, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
@ -1075,11 +1079,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -8258196058206172477, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: 1.167
value: 1.1728
objectReference: {fileID: 0}
- target: {fileID: -8258196058206172477, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.028
value: 0.044
objectReference: {fileID: 0}
- target: {fileID: -8177127042228574044, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
@ -1195,7 +1199,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -1243,19 +1247,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 0
value: 9.188e-41
objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: 1.987e-42
value: 4.1003012e-19
objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 1.02e-43
value: 2.2e-44
objectReference: {fileID: 0}
- target: {fileID: -6930015188872202325, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: -1
value: -2.4405384e-30
objectReference: {fileID: 0}
- target: {fileID: -6887841177825847477, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
@ -1269,6 +1273,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -6507228226511298933, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -6355439833407328701, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
@ -1277,6 +1285,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -6094667204011117392, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -5991683805312094932, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
@ -1307,7 +1319,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -1355,19 +1367,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 5.142788e-39
value: 3.124918e-39
objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: -2.4405384e-30
value: 0
objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 4.5e-44
value: 4.408104e-39
objectReference: {fileID: 0}
- target: {fileID: -5428391844021183974, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 2.75506e-40
value: 3.03093e-39
objectReference: {fileID: 0}
- target: {fileID: -5320228517869493014, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
@ -1403,15 +1415,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -4558227266838746502, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: 0.0013234
value: 0.00132
objectReference: {fileID: 0}
- target: {fileID: -4558227266838746502, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: 0.0031745
value: 0.00329
objectReference: {fileID: 0}
- target: {fileID: -4558227266838746502, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00079991
value: 0.00049
objectReference: {fileID: 0}
- target: {fileID: -4543332526783819956, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalScale.x
@ -1423,15 +1435,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -4543332526783819956, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: -0.0032468
value: -0.00325
objectReference: {fileID: 0}
- target: {fileID: -4543332526783819956, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: 0.00133
value: 0.00145
objectReference: {fileID: 0}
- target: {fileID: -4543332526783819956, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00076
value: 0.00045
objectReference: {fileID: 0}
- target: {fileID: -4536380030537921593, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalScale.x
@ -1443,15 +1455,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -4536380030537921593, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: 0.0013453
value: 0.00134
objectReference: {fileID: 0}
- target: {fileID: -4536380030537921593, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: -0.0032936
value: -0.00318
objectReference: {fileID: 0}
- target: {fileID: -4536380030537921593, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00060043
value: 0.00029
objectReference: {fileID: 0}
- target: {fileID: -4369222210424997736, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
@ -1515,7 +1527,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -1563,19 +1575,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 0.1875
value: 4e-45
objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: 1.909824e+10
value: 1.7e-44
objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 7.3e-44
value: 0
objectReference: {fileID: 0}
- target: {fileID: -3152379998560609391, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 0.21484375
value: 1.25
objectReference: {fileID: 0}
- target: {fileID: -3113757695387598773, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
@ -1585,6 +1597,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -2770825260674409808, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -2686133645533411133, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
@ -1635,15 +1651,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -2219006240209657379, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: 0.0032368
value: 0.00323
objectReference: {fileID: 0}
- target: {fileID: -2219006240209657379, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: -0.0013925
value: -0.00128
objectReference: {fileID: 0}
- target: {fileID: -2219006240209657379, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00065906
value: 0.00035
objectReference: {fileID: 0}
- target: {fileID: -2171676161209421767, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
@ -1729,6 +1745,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -839971897075688092, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: -572932358224745548, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalScale.x
value: 1.1211013
@ -1739,15 +1759,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -572932358224745548, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: -0.0032358
value: -0.00324
objectReference: {fileID: 0}
- target: {fileID: -572932358224745548, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: -0.00129
value: -0.00117
objectReference: {fileID: 0}
- target: {fileID: -572932358224745548, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.0007
value: 0.00039
objectReference: {fileID: 0}
- target: {fileID: -452205729910708798, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Materials.Array.data[0]
@ -1775,15 +1795,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -253053448508816397, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: 0.0032258
value: 0.00322
objectReference: {fileID: 0}
- target: {fileID: -253053448508816397, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: 0.0012843
value: 0.0014
objectReference: {fileID: 0}
- target: {fileID: -253053448508816397, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00074161
value: 0.00043
objectReference: {fileID: 0}
- target: {fileID: -161563942850577322, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalScale.x
@ -1807,7 +1827,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -1855,19 +1875,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 1.3563128e-19
value: 9.188e-41
objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: 7.271859e+22
value: 4.1003012e-19
objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 2.816884e+20
value: 2.2e-44
objectReference: {fileID: 0}
- target: {fileID: -159454732624697724, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 3.739149e-14
value: -2.4405384e-30
objectReference: {fileID: 0}
- target: {fileID: 353507290322414375, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
@ -1891,11 +1911,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 795547410136657018, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: 1.3969
value: 1.397
objectReference: {fileID: 0}
- target: {fileID: 795547410136657018, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.0607
value: 0.06
objectReference: {fileID: 0}
- target: {fileID: 795547410136657018, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalRotation.w
@ -1971,15 +1991,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1437292205536730815, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.x
value: -0.0013553
value: -0.00136
objectReference: {fileID: 0}
- target: {fileID: 1437292205536730815, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: 0.0031636
value: 0.00328
objectReference: {fileID: 0}
- target: {fileID: 1437292205536730815, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00079957
value: 0.00049
objectReference: {fileID: 0}
- target: {fileID: 1597228139911881735, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
@ -2001,6 +2021,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 1934241770056242486, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 1995990277796536632, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
@ -2087,7 +2111,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -2135,19 +2159,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 8.7e-44
value: 9.188e-41
objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: 1.3e-44
value: 4.1003012e-19
objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 1.8525046e+28
value: 2.2e-44
objectReference: {fileID: 0}
- target: {fileID: 3513320045853961206, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 7.397733e+31
value: -2.4405384e-30
objectReference: {fileID: 0}
- target: {fileID: 3668888808494289767, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
@ -2187,11 +2211,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4091086025858196915, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.y
value: -0.00329
value: -0.00317
objectReference: {fileID: 0}
- target: {fileID: 4091086025858196915, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_LocalPosition.z
value: 0.00061
value: 0.0003
objectReference: {fileID: 0}
- target: {fileID: 4120935609573336197, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
@ -2265,6 +2289,10 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 5570520766955470143, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 5710883350761309999, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
value: 0
@ -2319,7 +2347,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -2367,19 +2395,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: -1.6
value: 3.5e-44
objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: -0.8
value: 6.94e-43
objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 0.8
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6449048586731311642, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 1.6
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7262664954644525434, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled
@ -2397,9 +2425,13 @@ PrefabInstance:
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 7842573136469436799, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_StaticEditorFlags
value: 4294967295
objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Range
value: 0.3
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Color.b
@ -2447,19 +2479,19 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.w
value: 0
value: 4.591775e-39
objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.x
value: 0
value: 2.2e-44
objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.y
value: 0
value: 2.4405384e-30
objectReference: {fileID: 0}
- target: {fileID: 7893704435040825264, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_BoundingSphereOverride.z
value: 0
value: 9.1858e-41
objectReference: {fileID: 0}
- target: {fileID: 8015441395889792915, guid: ea6463ca199d52046962b69f2ab654ef, type: 3}
propertyPath: m_Enabled

View File

@ -11,28 +11,18 @@ public class ButtonToKey : MonoBehaviour
public VirtualKeyCode keyToPress;
private int _insideColliderCount = 0;
private void Update()
{
if (_insideColliderCount == 0)
{
keybd_event(System.Convert.ToByte(keyToPress), (byte)MapVirtualKey((uint)keyToPress, 0), 2, UIntPtr.Zero);
}
else
{
keybd_event(System.Convert.ToByte(keyToPress), (byte)MapVirtualKey((uint)keyToPress, 0), 0, UIntPtr.Zero);
}
}
private bool triggered = true;
private void OnTriggerEnter(Collider other)
{
keybd_event(System.Convert.ToByte(keyToPress), (byte)MapVirtualKey((uint)keyToPress, 0), 0, UIntPtr.Zero);
_insideColliderCount += 1;
}
private void OnTriggerExit(Collider other)
{
if (_insideColliderCount == 0)
keybd_event(System.Convert.ToByte(keyToPress), (byte)MapVirtualKey((uint)keyToPress, 0), 2, UIntPtr.Zero);
_insideColliderCount -= 1;
_insideColliderCount = Mathf.Max(0, _insideColliderCount);
}
}

View File

@ -3,29 +3,21 @@ using UnityEngine;
public class TouchToSerial : MonoBehaviour
{
public int Area;
int _insideColliderCount = 0;
private void Update()
{
if (_insideColliderCount == 0)
{
Serial.ChangeTouch((int)Area, true);
Serial.SendTouch();
}
else
{
Serial.ChangeTouch((int)Area, false);
Serial.SendTouch();
}
}
private int _insideColliderCount = 0;
private void OnTriggerEnter(Collider other)
{
Serial.ChangeTouch((int)Area, true);
Serial.SendTouch();
_insideColliderCount += 1;
}
private void OnTriggerExit(Collider other)
{
if (_insideColliderCount == 0)
{
Serial.ChangeTouch((int)Area, false);
Serial.SendTouch();
}
_insideColliderCount -= 1;
_insideColliderCount = Mathf.Max(0, _insideColliderCount);
}

View File

@ -32,7 +32,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 761fdd4502cb7a84e9ec7a2b24f33f37, type: 3}
m_Name: MicrosoftMotionControllerProfile Standalone
m_EditorClassIdentifier:
m_enabled: 1
m_enabled: 0
nameUi: Microsoft Motion Controller Profile
version: 0.0.1
featureIdInternal: com.unity.openxr.feature.input.microsoftmotioncontroller
@ -195,7 +195,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f928d0d73a35f294fbe357ca17aa3547, type: 3}
m_Name: MicrosoftHandInteraction Standalone
m_EditorClassIdentifier:
m_enabled: 1
m_enabled: 0
nameUi: Microsoft Hand Interaction Profile
version: 0.0.1
featureIdInternal: com.unity.openxr.feature.input.handtracking

View File

@ -41,7 +41,7 @@ Material:
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 0.5, y: 1}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}

View File

@ -137,6 +137,13 @@ PlayerSettings:
bundleVersion: 0.7.2
preloadedAssets:
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 0}
- {fileID: 1708333901713763777, guid: c32bea96a9d497047888cff51152a827, type: 2}
- {fileID: 0}
- {fileID: -9008817870737138221, guid: dac1673e162f8724aada57cd5b44f68b, type: 2}
metroInputSource: 0
wsaTransparentSwapchain: 0
m_HolographicPauseOnTrackingLoss: 1
@ -282,7 +289,9 @@ PlayerSettings:
Android: 1
iPhone: 1
tvOS: 1
m_BuildTargetGroupLightmapEncodingQuality: []
m_BuildTargetGroupLightmapEncodingQuality:
- m_BuildTarget: Standalone
m_EncodingQuality: 0
m_BuildTargetGroupLightmapSettings: []
m_BuildTargetNormalMapEncoding: []
playModeTestRunnerEnabled: 0

View File

@ -232,7 +232,7 @@ QualitySettings:
PS4: 5
PS5: 5
Stadia: 5
Standalone: 5
Standalone: 0
WebGL: 3
Windows Store Apps: 5
XboxOne: 5