Skip to content

Commit 5b85e3c

Browse files
authored
Merge pull request #9486 from MaxWang-MS/dwell_scene_fix
Fix the profile issue in the dwell sample scene
2 parents 4449a36 + fc7c7a4 commit 5b85e3c

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

Assets/MRTK/Examples/Experimental/Dwell/DwellExample.unity

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,25 +523,30 @@ PrefabInstance:
523523
propertyPath: m_SizeDelta.x
524524
value: 0
525525
objectReference: {fileID: 0}
526+
- target: {fileID: 1685343061998419463, guid: 18470d71939382448be2ecd06efa9662,
527+
type: 3}
528+
propertyPath: m_SizeDelta.y
529+
value: 300
530+
objectReference: {fileID: 0}
526531
- target: {fileID: 2113875699234556495, guid: 18470d71939382448be2ecd06efa9662,
527532
type: 3}
528533
propertyPath: m_textInfo.characterCount
529-
value: 66
534+
value: 392
530535
objectReference: {fileID: 0}
531536
- target: {fileID: 2113875699234556495, guid: 18470d71939382448be2ecd06efa9662,
532537
type: 3}
533538
propertyPath: m_textInfo.spaceCount
534-
value: 10
539+
value: 66
535540
objectReference: {fileID: 0}
536541
- target: {fileID: 2113875699234556495, guid: 18470d71939382448be2ecd06efa9662,
537542
type: 3}
538543
propertyPath: m_textInfo.wordCount
539-
value: 9
544+
value: 66
540545
objectReference: {fileID: 0}
541546
- target: {fileID: 2113875699234556495, guid: 18470d71939382448be2ecd06efa9662,
542547
type: 3}
543548
propertyPath: m_textInfo.lineCount
544-
value: 3
549+
value: 9
545550
objectReference: {fileID: 0}
546551
- target: {fileID: 2113875699234556495, guid: 18470d71939382448be2ecd06efa9662,
547552
type: 3}
@@ -552,7 +557,11 @@ PrefabInstance:
552557
type: 3}
553558
propertyPath: m_text
554559
value: "<size=42><b>Dwell Example</b></size>\r\n\nThis scene demonstrates the
555-
gaze & dwell behavior."
560+
gaze & dwell behavior. Note to show the gaze based dwell behavior in this
561+
scene, the MRTK profile has been changed to a HoloLens 1 style profile, where
562+
the head gaze pointer is used. To use dwell in your scene you must make sure
563+
the input profile/active pointer correctly matches the dwell trigger pointer
564+
type in the DwellHandler script component."
556565
objectReference: {fileID: 0}
557566
- target: {fileID: 2113875699234556495, guid: 18470d71939382448be2ecd06efa9662,
558567
type: 3}
@@ -562,12 +571,12 @@ PrefabInstance:
562571
- target: {fileID: 2652140712778390387, guid: 18470d71939382448be2ecd06efa9662,
563572
type: 3}
564573
propertyPath: m_LocalPosition.y
565-
value: -0.0862
574+
value: -0.178
566575
objectReference: {fileID: 0}
567576
- target: {fileID: 2652140712778390387, guid: 18470d71939382448be2ecd06efa9662,
568577
type: 3}
569578
propertyPath: m_LocalScale.y
570-
value: 0.30228883
579+
value: 0.5
571580
objectReference: {fileID: 0}
572581
- target: {fileID: 3378234012929652230, guid: 18470d71939382448be2ecd06efa9662,
573582
type: 3}
@@ -1700,7 +1709,7 @@ Camera:
17001709
m_GameObject: {fileID: 807519358}
17011710
m_Enabled: 1
17021711
serializedVersion: 2
1703-
m_ClearFlags: 1
1712+
m_ClearFlags: 2
17041713
m_BackGroundColor: {r: 0, g: 0, b: 0, a: 1}
17051714
m_projectionMatrixMode: 1
17061715
m_SensorSize: {x: 36, y: 24}
@@ -1713,7 +1722,7 @@ Camera:
17131722
y: 0
17141723
width: 1
17151724
height: 1
1716-
near clip plane: 0.1
1725+
near clip plane: 0.3
17171726
far clip plane: 1000
17181727
field of view: 60
17191728
orthographic: 0
@@ -5173,7 +5182,7 @@ MonoBehaviour:
51735182
m_Script: {fileID: 11500000, guid: 83d9acc7968244a8886f3af591305bcb, type: 3}
51745183
m_Name:
51755184
m_EditorClassIdentifier:
5176-
activeProfile: {fileID: 11400000, guid: 31a611a779d3499e8e35f1a2018ca841, type: 2}
5185+
activeProfile: {fileID: 11400000, guid: 019ea231fcd4127409ae7906b2996ee1, type: 2}
51775186
--- !u!4 &2036769035
51785187
Transform:
51795188
m_ObjectHideFlags: 0

0 commit comments

Comments
 (0)