Skip to content

Commit cc42435

Browse files
committed
Disable cardboard audio listener by default in main prefab to work
around a bug in Unity's audio spatializer.
1 parent 65cb71f commit cc42435

File tree

5 files changed

+31
-26
lines changed

5 files changed

+31
-26
lines changed

Cardboard/DemoScene/DemoScene.unity

100644100755
Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ NavMeshSettings:
7373
minRegionArea: 2
7474
widthInaccuracy: 16.666666
7575
heightInaccuracy: 10
76-
tileSizeHint: 0
7776
m_NavMesh: {fileID: 0}
7877
--- !u!1 &159634548
7978
GameObject:
@@ -504,8 +503,9 @@ MonoBehaviour:
504503
--- !u!114 &417382011
505504
MonoBehaviour:
506505
m_ObjectHideFlags: 0
507-
m_PrefabParentObject: {fileID: 0}
508-
m_PrefabInternal: {fileID: 0}
506+
m_PrefabParentObject: {fileID: 11400000, guid: b8b03d395f5734e98af91ccf44f9bf47,
507+
type: 2}
508+
m_PrefabInternal: {fileID: 437064765}
509509
m_GameObject: {fileID: 417382008}
510510
m_Enabled: 1
511511
m_EditorHideFlags: 0
@@ -641,6 +641,10 @@ Prefab:
641641
propertyPath: vrModeEnabled
642642
value: 1
643643
objectReference: {fileID: 0}
644+
- target: {fileID: 11400000, guid: b8b03d395f5734e98af91ccf44f9bf47, type: 2}
645+
propertyPath: m_Enabled
646+
value: 1
647+
objectReference: {fileID: 0}
644648
m_RemovedComponents:
645649
- {fileID: 11417550, guid: b8b03d395f5734e98af91ccf44f9bf47, type: 2}
646650
m_ParentPrefab: {fileID: 100100000, guid: b8b03d395f5734e98af91ccf44f9bf47, type: 2}
@@ -1251,8 +1255,9 @@ MonoBehaviour:
12511255
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
12521256
m_Name:
12531257
m_EditorClassIdentifier:
1254-
m_IgnoreReversedGraphics: 1
1255-
m_BlockingObjects: 0
1258+
m_Priority: 3
1259+
ignoreReversedGraphics: 1
1260+
blockingObjects: 0
12561261
m_BlockingMask:
12571262
serializedVersion: 2
12581263
m_Bits: 4286578683
@@ -2784,8 +2789,9 @@ MonoBehaviour:
27842789
m_Script: {fileID: 1301386320, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
27852790
m_Name:
27862791
m_EditorClassIdentifier:
2787-
m_IgnoreReversedGraphics: 1
2788-
m_BlockingObjects: 0
2792+
m_Priority: 3
2793+
ignoreReversedGraphics: 1
2794+
blockingObjects: 0
27892795
m_BlockingMask:
27902796
serializedVersion: 2
27912797
m_Bits: 4286578683

Cardboard/Prefabs/CardboardHead.prefab

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ GameObject:
6464
- 124: {fileID: 12400004}
6565
- 92: {fileID: 9246874}
6666
- 81: {fileID: 8100000}
67-
- 114: {fileID: 11427708}
6867
- 114: {fileID: 11400006}
68+
- 114: {fileID: 11400008}
6969
m_Layer: 0
7070
m_Name: Camera
7171
m_TagString: Untagged
@@ -302,13 +302,13 @@ MonoBehaviour:
302302
screenParallax: 0
303303
stereoPaddingX: 0
304304
stereoPaddingY: 0
305-
--- !u!114 &11427708
305+
--- !u!114 &11400008
306306
MonoBehaviour:
307307
m_ObjectHideFlags: 1
308308
m_PrefabParentObject: {fileID: 0}
309309
m_PrefabInternal: {fileID: 100100000}
310310
m_GameObject: {fileID: 100006}
311-
m_Enabled: 1
311+
m_Enabled: 0
312312
m_EditorHideFlags: 0
313313
m_Script: {fileID: 11500000, guid: b1156c073149742478887bb24456f32d, type: 3}
314314
m_Name:

Cardboard/Prefabs/CardboardMain.prefab

100644100755
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ GameObject:
6464
- 124: {fileID: 12400004}
6565
- 92: {fileID: 9200004}
6666
- 81: {fileID: 8100000}
67-
- 114: {fileID: 11417550}
6867
- 114: {fileID: 11400006}
68+
- 114: {fileID: 11400000}
6969
m_Layer: 0
7070
m_Name: Main Camera
7171
m_TagString: MainCamera
@@ -423,6 +423,20 @@ Behaviour:
423423
m_PrefabInternal: {fileID: 100100000}
424424
m_GameObject: {fileID: 150432}
425425
m_Enabled: 1
426+
--- !u!114 &11400000
427+
MonoBehaviour:
428+
m_ObjectHideFlags: 1
429+
m_PrefabParentObject: {fileID: 0}
430+
m_PrefabInternal: {fileID: 100100000}
431+
m_GameObject: {fileID: 100006}
432+
m_Enabled: 0
433+
m_EditorHideFlags: 0
434+
m_Script: {fileID: 11500000, guid: b1156c073149742478887bb24456f32d, type: 3}
435+
m_Name:
436+
m_EditorClassIdentifier:
437+
globalGainDb: 0
438+
worldScale: 1
439+
quality: 1
426440
--- !u!114 &11400002
427441
MonoBehaviour:
428442
m_ObjectHideFlags: 1
@@ -511,26 +525,11 @@ MonoBehaviour:
511525
neckModelScale: 1
512526
autoDriftCorrection: 1
513527
electronicDisplayStabilization: 0
514-
syncWithCardboardApp: 0
515528
autoUntiltHead: 1
516529
UseUnityRemoteInput: 0
517530
screenSize: 0
518531
deviceType: 1
519532
stereoScreenScale: 1
520-
--- !u!114 &11417550
521-
MonoBehaviour:
522-
m_ObjectHideFlags: 1
523-
m_PrefabParentObject: {fileID: 0}
524-
m_PrefabInternal: {fileID: 100100000}
525-
m_GameObject: {fileID: 100006}
526-
m_Enabled: 1
527-
m_EditorHideFlags: 0
528-
m_Script: {fileID: 11500000, guid: b1156c073149742478887bb24456f32d, type: 3}
529-
m_Name:
530-
m_EditorClassIdentifier:
531-
globalGainDb: 0
532-
worldScale: 1
533-
quality: 1
534533
--- !u!114 &11450432
535534
MonoBehaviour:
536535
m_ObjectHideFlags: 1

CardboardDemoForUnity.unitypackage

41 Bytes
Binary file not shown.

CardboardSDKForUnity.unitypackage

-491 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)