Skip to content

Commit a2ebf58

Browse files
author
Jonathan Palmer [MSoft Work]
committed
Merge branch 'mrtk_development' into mrtk_development_tooltip_assets
2 parents 3148b3e + d82c164 commit a2ebf58

File tree

207 files changed

+14449
-1104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

207 files changed

+14449
-1104
lines changed

.gitignore

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ UWP/
1212
WindowsStoreApp/
1313
UnityGenerated/
1414
UnityPackageManager/
15+
.out/
1516
project.json
1617
project.lock.json
17-
WSATestCertificate.pfx
18-
WSATestCertificate.pfx.meta
18+
*.package
19+
20+
# ============ #
21+
# Certificates #
22+
# ============ #
23+
*.cert
24+
*.privkey
25+
*.pfx
26+
*.pfx.meta
1927

2028
# ===================================== #
2129
# Visual Studio / MonoDevelop generated #
@@ -54,3 +62,4 @@ Assets/ThirdParty/
5462
Assets/ThirdParty.meta
5563
Assets/TextMesh Pro.meta
5664
Assets/TextMesh Pro/
65+
--Version/

Assets/MixedRealityToolkit-Examples/Demos/Audio/Scenes/AudioLoFiEffectDemo.unity

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ GameObject:
376376
m_Component:
377377
- component: {fileID: 874911121}
378378
m_Layer: 0
379-
m_Name: Body
379+
m_Name: MixedRealityPlayspace
380380
m_TagString: Untagged
381381
m_Icon: {fileID: 0}
382382
m_NavMeshLayer: 0
@@ -642,6 +642,7 @@ MonoBehaviour:
642642
m_Name:
643643
m_EditorClassIdentifier:
644644
sourceQuality: 0
645+
influencerController: {fileID: 1014969685}
645646
--- !u!114 &1014969685
646647
MonoBehaviour:
647648
m_ObjectHideFlags: 0
@@ -655,7 +656,8 @@ MonoBehaviour:
655656
m_EditorClassIdentifier:
656657
updateInterval: 0.25
657658
maxDistance: 20
658-
MaxObjects: 10
659+
maxObjects: 10
660+
audioSource: {fileID: 1014969681}
659661
--- !u!1 &1353076106
660662
GameObject:
661663
m_ObjectHideFlags: 0

Assets/MixedRealityToolkit-Examples/Demos/Audio/Scenes/AudioOcclusionDemo.unity

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,8 @@ MonoBehaviour:
476476
m_EditorClassIdentifier:
477477
updateInterval: 0.25
478478
maxDistance: 20
479-
MaxObjects: 10
479+
maxObjects: 10
480+
audioSource: {fileID: 977203055}
480481
--- !u!135 &977203057
481482
SphereCollider:
482483
m_ObjectHideFlags: 0
@@ -801,7 +802,7 @@ GameObject:
801802
m_Component:
802803
- component: {fileID: 1912278560}
803804
m_Layer: 0
804-
m_Name: Body
805+
m_Name: MixedRealityPlayspace
805806
m_TagString: Untagged
806807
m_Icon: {fileID: 0}
807808
m_NavMeshLayer: 0

Assets/MixedRealityToolkit-Examples/Demos/Boundary/Scenes/BoundaryVisualization.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ GameObject:
640640
m_Component:
641641
- component: {fileID: 1289414260}
642642
m_Layer: 0
643-
m_Name: Body
643+
m_Name: MixedRealityPlayspace
644644
m_TagString: Untagged
645645
m_Icon: {fileID: 0}
646646
m_NavMeshLayer: 0
@@ -785,7 +785,7 @@ GameObject:
785785
- component: {fileID: 1491404206}
786786
- component: {fileID: 1491404205}
787787
m_Layer: 0
788-
m_Name: Head
788+
m_Name: Main Camera
789789
m_TagString: MainCamera
790790
m_Icon: {fileID: 0}
791791
m_NavMeshLayer: 0

Assets/MixedRealityToolkit-Examples/Demos/Boundary/Scripts/BoundaryVisualizationDemo.cs

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using Microsoft.MixedReality.Toolkit.Core.Managers;
88
using Microsoft.MixedReality.Toolkit.Core.Utilities;
99
using System.Collections.Generic;
10+
using Microsoft.MixedReality.Toolkit.Core.Utilities.Async;
1011
using UnityEngine;
1112
using UnityEngine.Experimental.XR;
1213

@@ -17,9 +18,6 @@ namespace Microsoft.MixedReality.Toolkit.Examples.Demos
1718
/// </summary>
1819
public class BoundaryVisualizationDemo : MonoBehaviour, IMixedRealityBoundaryHandler
1920
{
20-
private IMixedRealityBoundarySystem BoundaryManager => boundaryManager ?? (boundaryManager = MixedRealityManager.Instance.GetManager<IMixedRealityBoundarySystem>());
21-
private IMixedRealityBoundarySystem boundaryManager = null;
22-
2321
private GameObject markerParent;
2422
private readonly List<GameObject> markers = new List<GameObject>();
2523

@@ -44,13 +42,13 @@ private void Awake()
4442
{
4543
markerParent = new GameObject();
4644
markerParent.name = "Boundary Demo Markers";
47-
markerParent.transform.parent = CameraCache.Main.transform.parent;
45+
markerParent.transform.parent = MixedRealityManager.Instance.MixedRealityPlayspace;
4846
}
4947

5048
private void Start()
5149
{
5250

53-
if (BoundaryManager != null)
51+
if (MixedRealityManager.BoundarySystem != null)
5452
{
5553
if (markers.Count == 0)
5654
{
@@ -61,24 +59,25 @@ private void Start()
6159

6260
private void Update()
6361
{
64-
if (BoundaryManager != null)
62+
if (MixedRealityManager.BoundarySystem != null)
6563
{
66-
BoundaryManager.ShowFloor = showFloor;
67-
BoundaryManager.ShowPlayArea = showPlayArea;
68-
BoundaryManager.ShowTrackedArea = showTrackedArea;
69-
BoundaryManager.ShowBoundaryWalls = showBoundaryWalls;
70-
BoundaryManager.ShowBoundaryCeiling = showBoundaryCeiling;
64+
MixedRealityManager.BoundarySystem.ShowFloor = showFloor;
65+
MixedRealityManager.BoundarySystem.ShowPlayArea = showPlayArea;
66+
MixedRealityManager.BoundarySystem.ShowTrackedArea = showTrackedArea;
67+
MixedRealityManager.BoundarySystem.ShowBoundaryWalls = showBoundaryWalls;
68+
MixedRealityManager.BoundarySystem.ShowBoundaryCeiling = showBoundaryCeiling;
7169
}
7270
}
7371

74-
private void OnEnable()
72+
private async void OnEnable()
7573
{
76-
BoundaryManager.Register(gameObject);
74+
await new WaitUntil(() => MixedRealityManager.BoundarySystem != null);
75+
MixedRealityManager.BoundarySystem.Register(gameObject);
7776
}
7877

7978
private void OnDisable()
8079
{
81-
BoundaryManager.Unregister(gameObject);
80+
MixedRealityManager.BoundarySystem?.Unregister(gameObject);
8281
}
8382

8483
#endregion MonoBehaviour Implementation
@@ -105,7 +104,7 @@ private void AddMarkers()
105104
float widthRect;
106105
float heightRect;
107106

108-
if (!BoundaryManager.TryGetRectangularBoundsParams(out centerRect, out angleRect, out widthRect, out heightRect))
107+
if (!MixedRealityManager.BoundarySystem.TryGetRectangularBoundsParams(out centerRect, out angleRect, out widthRect, out heightRect))
109108
{
110109
// If we have no boundary manager or rectangular bounds we will show no indicators
111110
return;
@@ -136,12 +135,12 @@ private void AddMarkers()
136135

137136
Material material = null;
138137
// Check inscribed rectangle first
139-
if (BoundaryManager.Contains(position, Boundary.Type.PlayArea))
138+
if (MixedRealityManager.BoundarySystem.Contains(position, Boundary.Type.PlayArea))
140139
{
141140
material = visualizationProfile.PlayAreaMaterial;
142141
}
143142
// Then check geometry
144-
else if (BoundaryManager.Contains(position, Boundary.Type.TrackedArea))
143+
else if (MixedRealityManager.BoundarySystem.Contains(position, Boundary.Type.TrackedArea))
145144
{
146145
material = visualizationProfile.TrackedAreaMaterial;
147146
}

Assets/MixedRealityToolkit-Examples/Demos/Solvers.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/MixedRealityToolkit-Examples/Demos/Solvers/Prefabs.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!1001 &100100000
4+
Prefab:
5+
m_ObjectHideFlags: 1
6+
serializedVersion: 2
7+
m_Modification:
8+
m_TransformParent: {fileID: 0}
9+
m_Modifications: []
10+
m_RemovedComponents: []
11+
m_ParentPrefab: {fileID: 0}
12+
m_RootGameObject: {fileID: 1307245229378308}
13+
m_IsPrefabParent: 1
14+
--- !u!1 &1307245229378308
15+
GameObject:
16+
m_ObjectHideFlags: 0
17+
m_PrefabParentObject: {fileID: 0}
18+
m_PrefabInternal: {fileID: 100100000}
19+
serializedVersion: 5
20+
m_Component:
21+
- component: {fileID: 4730916243282228}
22+
- component: {fileID: 114229151188300204}
23+
- component: {fileID: 114604167685196832}
24+
- component: {fileID: 33503633605293008}
25+
- component: {fileID: 23066390738997328}
26+
m_Layer: 0
27+
m_Name: ChaseSource
28+
m_TagString: Untagged
29+
m_Icon: {fileID: 0}
30+
m_NavMeshLayer: 0
31+
m_StaticEditorFlags: 0
32+
m_IsActive: 1
33+
--- !u!4 &4730916243282228
34+
Transform:
35+
m_ObjectHideFlags: 1
36+
m_PrefabParentObject: {fileID: 0}
37+
m_PrefabInternal: {fileID: 100100000}
38+
m_GameObject: {fileID: 1307245229378308}
39+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
40+
m_LocalPosition: {x: 0, y: 0, z: 0}
41+
m_LocalScale: {x: 0.025, y: 0.025, z: 0.025}
42+
m_Children: []
43+
m_Father: {fileID: 0}
44+
m_RootOrder: 0
45+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
46+
--- !u!23 &23066390738997328
47+
MeshRenderer:
48+
m_ObjectHideFlags: 1
49+
m_PrefabParentObject: {fileID: 0}
50+
m_PrefabInternal: {fileID: 100100000}
51+
m_GameObject: {fileID: 1307245229378308}
52+
m_Enabled: 1
53+
m_CastShadows: 1
54+
m_ReceiveShadows: 1
55+
m_DynamicOccludee: 1
56+
m_MotionVectors: 1
57+
m_LightProbeUsage: 1
58+
m_ReflectionProbeUsage: 1
59+
m_RenderingLayerMask: 4294967295
60+
m_Materials:
61+
- {fileID: 2100000, guid: c4a1b7475a654dd0acaa0cfdfba2e20c, type: 2}
62+
m_StaticBatchInfo:
63+
firstSubMesh: 0
64+
subMeshCount: 0
65+
m_StaticBatchRoot: {fileID: 0}
66+
m_ProbeAnchor: {fileID: 0}
67+
m_LightProbeVolumeOverride: {fileID: 0}
68+
m_ScaleInLightmap: 1
69+
m_PreserveUVs: 0
70+
m_IgnoreNormalsForChartDetection: 0
71+
m_ImportantGI: 0
72+
m_StitchLightmapSeams: 0
73+
m_SelectedEditorRenderState: 3
74+
m_MinimumChartSize: 4
75+
m_AutoUVMaxDistance: 0.5
76+
m_AutoUVMaxAngle: 89
77+
m_LightmapParameters: {fileID: 0}
78+
m_SortingLayerID: 0
79+
m_SortingLayer: 0
80+
m_SortingOrder: 0
81+
--- !u!33 &33503633605293008
82+
MeshFilter:
83+
m_ObjectHideFlags: 1
84+
m_PrefabParentObject: {fileID: 0}
85+
m_PrefabInternal: {fileID: 100100000}
86+
m_GameObject: {fileID: 1307245229378308}
87+
m_Mesh: {fileID: 4300000, guid: 841b5755ac02dbc439bd347f414de999, type: 3}
88+
--- !u!114 &114229151188300204
89+
MonoBehaviour:
90+
m_ObjectHideFlags: 1
91+
m_PrefabParentObject: {fileID: 0}
92+
m_PrefabInternal: {fileID: 100100000}
93+
m_GameObject: {fileID: 1307245229378308}
94+
m_Enabled: 1
95+
m_EditorHideFlags: 0
96+
m_Script: {fileID: 11500000, guid: b55691ad5b034fe6966763a6e23818d2, type: 3}
97+
m_Name:
98+
m_EditorClassIdentifier:
99+
handedness: 1
100+
trackedObjectToReference: 2
101+
additionalOffset: {x: 0, y: 0, z: 0}
102+
additionalRotation: {x: 0, y: 0, z: 0}
103+
transformTarget: {fileID: 0}
104+
updateSolvers: 1
105+
--- !u!114 &114604167685196832
106+
MonoBehaviour:
107+
m_ObjectHideFlags: 1
108+
m_PrefabParentObject: {fileID: 0}
109+
m_PrefabInternal: {fileID: 100100000}
110+
m_GameObject: {fileID: 1307245229378308}
111+
m_Enabled: 1
112+
m_EditorHideFlags: 0
113+
m_Script: {fileID: 11500000, guid: 4684083f6dff4a1d8a790bccc354fcf4, type: 3}
114+
m_Name:
115+
m_EditorClassIdentifier:
116+
updateLinkedTransform: 0
117+
moveLerpTime: 0.1
118+
rotateLerpTime: 0.1
119+
scaleLerpTime: 0
120+
maintainScale: 1
121+
smoothing: 1
122+
lifetime: 0
123+
SolverHandler: {fileID: 114229151188300204}
124+
referenceDirection: 0
125+
minDistance: 0.1
126+
maxDistance: 0.1
127+
minViewDegrees: 0
128+
maxViewDegrees: 0
129+
aspectV: 1
130+
ignoreAngleClamp: 0
131+
ignoreDistanceClamp: 0
132+
orientToReferenceDirection: 0

Assets/MixedRealityToolkit-Examples/Demos/Solvers/Prefabs/ChaseSource.prefab.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)