Skip to content

Commit 2c711ab

Browse files
author
David Kline
authored
Merge pull request #6253 from microsoft/prerelease/2.1.0_stabilization
merge 2.1.0 into release branch
2 parents ac2b810 + e9c2fda commit 2c711ab

File tree

1,363 files changed

+145069
-46359
lines changed

Some content is hidden

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

1,363 files changed

+145069
-46359
lines changed

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
[Aa]pp/
1111
UWP/
1212
WindowsStoreApp/
13+
WSA/
1314
UnityGenerated/
1415
UnityPackageManager/
1516
.out/
@@ -74,10 +75,19 @@ Assets/StreamingAssets.meta
7475
# =============== #
7576
doc/
7677

78+
# This is only needed because docfx chooses the first alphabetically occurring
79+
# .cs file's folder to create an obj/xdoc cache folder inside.
80+
# When https://github.com/dotnet/docfx/issues/1156 is addressed, it should be
81+
# possible to remove the rule on the following line and update our docfx
82+
# configuration to place its cache in a deterministic folder.
83+
[Oo]bj.meta
84+
7785
# ============================= #
7886
# NuGet Build Process Generated #
7987
# ============================= #
80-
/NuGet/
88+
/NuGet/*
89+
!/NuGet/BuildSource.proj
8190
/MRTKBuild/
8291
/MSBuild/
83-
/PackagesCopy/
92+
/PackagesCopy/
93+
!/scripts/Packaging/NuGetRestoreProject.csproj

Assets/MixedReality.Toolkit.Foundation.nuspec

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,39 @@
1212
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
1313
<releaseNotes>$releaseNotes$</releaseNotes>
1414
<tags>Unity MixedReality</tags>
15+
<contentFiles>
16+
<files include="any\any\.PkgSrc\**" buildAction="None" copyToOutput="false" />
17+
</contentFiles>
1518
</metadata>
1619
<files>
17-
<file src="MixedRealityToolkit\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta" target="MRTK\" />
18-
<file src="MixedRealityToolkit.Providers\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta" target="MRTK\" />
19-
<file src="MixedRealityToolkit.SDK\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta" target="MRTK\" />
20-
<file src="MixedRealityToolkit.Services\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta" target="MRTK\" />
20+
<file src="MixedRealityToolkit\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta;MixedRealityToolkit\toc.yml*" target="MRTK\" />
21+
<file src="MixedRealityToolkit.Providers\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta;MixedRealityToolkit.Providers\License.txt*;MixedRealityToolkit.Providers\Version.txt*" target="MRTK\" />
22+
<file src="MixedRealityToolkit.SDK\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta;MixedRealityToolkit.SDK\License.txt*;MixedRealityToolkit.SDK\Version.txt*;MixedRealityToolkit.SDK\toc.yml*;MixedRealityToolkit.SDK\StandardAssets.meta;MixedRealityToolkit.SDK\StandardAssets\Fonts.meta;MixedRealityToolkit.SDK\StandardAssets\Materials.meta;MixedRealityToolkit.SDK\StandardAssets\Shaders.meta;MixedRealityToolkit.SDK\StandardAssets\Textures.meta" target="MRTK\" />
23+
<file src="MixedRealityToolkit.Services\**" exclude="*.nuspec;*.nuspec.meta;*.props;*.props.meta;*.targets;*.targets.meta;MixedRealityToolkit.Services\License.txt*;MixedRealityToolkit.Services\Version.txt*" target="MRTK\" />
2124

2225
<file src="MixedRealityToolkit\MixedReality.Toolkit.targets" target="build\Microsoft.MixedReality.Toolkit.Foundation.targets" />
2326

24-
<!-- Assemblies that are built from the MixedRealityToolkit folder -->
27+
<!-- Assemblies and Sources that are built from the MixedRealityToolkit folder -->
2528
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.Editor.*" target="Plugins\" />
2629
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.Async.*" target="Plugins\" />
2730
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.dll*" target="Plugins\" />
28-
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.pdb*" target="Plugins\" />
31+
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.pdb*" target="Plugins\" />
2932
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.Gltf.*" target="Plugins\" />
33+
<!--Source commented as part of 2.1 release due to lack of support for long paths in N4U, and there is support for using source publicly yet.-->
34+
<!--<file src="..\..\Assets\MixedRealityToolkit\**\*.cs" target="contentFiles\any\any\.PkgSrc\MRTK\MixedRealityToolkit" />-->
3035

31-
<!-- Assemblies that are built from the MixedRealityToolkit.Providers folder -->
36+
<!-- Assemblies and Sources that are built from the MixedRealityToolkit.Providers folder -->
3237
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.Providers.*" target="Plugins\" />
38+
<!--<file src="..\..\Assets\MixedRealityToolkit.Providers\**\*.cs" target="contentFiles\any\any\.PkgSrc\MRTK\MixedRealityToolkit.Providers" />-->
3339

34-
<!-- Assemblies that are built from the MixedRealityToolkit.SDK folder -->
40+
<!-- Assemblies and Sources that are built from the MixedRealityToolkit.SDK folder -->
3541
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.SDK.*" target="Plugins\" />
3642
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.SDK.Inspectors.*" target="Plugins\" />
43+
<!--<file src="..\..\Assets\MixedRealityToolkit.SDK\**\*.cs" target="contentFiles\any\any\.PkgSrc\MRTK\MixedRealityToolkit.SDK" />-->
3744

38-
<!-- Assemblies that are built from the MixedRealityToolkit.Services folder -->
45+
<!-- Assemblies and Sources that are built from the MixedRealityToolkit.Services folder -->
3946
<file src="..\Plugins\**\Microsoft.MixedReality.Toolkit.Services.*" target="Plugins\" />
47+
<!--<file src="..\..\Assets\MixedRealityToolkit.Services\**\*.cs" target="contentFiles\any\any\.PkgSrc\MRTK\MixedRealityToolkit.Services" />-->
4048

4149
<!--
4250
link.xml is copied to the root location, so that it can catch IL2CPP

Assets/MixedRealityToolkit.Examples/Demos/EyeTracking/DemoScrollPanZoom/Scripts/BaseClasses/PanZoomBase.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ public void AutoPan()
207207
/// <summary>
208208
/// Scroll sideways.
209209
/// </summary>
210-
/// <param name="speed"></param>
211210
public void PanHorizontally(float speed)
212211
{
213212
offsetRate_Pan = new Vector2(Time.deltaTime * speed, offsetRate_Pan.y);
@@ -216,7 +215,6 @@ public void PanHorizontally(float speed)
216215
/// <summary>
217216
/// Scroll from top to bottom
218217
/// </summary>
219-
/// <param name="speed"></param>
220218
public void PanVertically(float speed)
221219
{
222220
offsetRate_Pan = new Vector2(offsetRate_Pan.x, Time.deltaTime * speed);
@@ -235,7 +233,6 @@ public void DisableHandZoom()
235233
/// <summary>
236234
/// Resets the zoom speed and sets the correct zoom direction when first engaging with "zoom in/out"
237235
/// </summary>
238-
/// <param name="zoomIn"></param>
239236
private void ZoomStart(bool zoomIn)
240237
{
241238
zoomSpeed = 0;
@@ -538,9 +535,6 @@ private IEnumerator ZoomAndStop(bool zoomIn)
538535
/// Wrapper to ease keeping parameters up-to-date
539536
/// </summary>
540537
/// <typeparam name="T"></typeparam>
541-
/// <param name="objBase"></param>
542-
/// <param name="objLocal"></param>
543-
/// <returns></returns>
544538
internal bool UpdateValues<T>(ref T objBase, T objLocal)
545539
{
546540
if (!EqualityComparer<T>.Default.Equals(objBase, objLocal))

Assets/MixedRealityToolkit.Examples/Demos/EyeTracking/DemoScrollPanZoom/Scripts/BaseClasses/PanZoomBaseTexture.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ public void Initialize(float newAspectRatio)
7373
/// Returns the pan speed.
7474
/// </summary>
7575
/// <param name="uvCursorVal">Normalized cursor position in the hit box. Center is assumed to be at [-0.5, 0.5].</param>
76-
/// <param name="maxSpeed"></param>
77-
/// <param name="minDistThresh"></param>
78-
/// <returns></returns>
7976
public override float ComputePanSpeed(float uvCursorPos, float maxSpeed, float minDistFromCenterForAutoPan)
8077
{
8178
// UV space from [0,1] -> Center: [-0.5, 0.5]

Assets/MixedRealityToolkit.Examples/Demos/EyeTracking/DemoTargetPositioning/Materials/mat_destination_blue.mat

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ Material:
1010
m_Name: mat_destination_blue
1111
m_Shader: {fileID: 4800000, guid: 5bdea20278144b11916d77503ba1467a, type: 3}
1212
m_ShaderKeywords: _BORDER_LIGHT_USES_HOVER_COLOR _DIRECTIONAL_LIGHT _DISABLE_ALBEDO_MAP
13-
_HOVER_LIGHT _REFLECTIONS _SPECULAR_HIGHLIGHTS
1413
m_LightmapFlags: 4
15-
m_EnableInstancingVariants: 0
14+
m_EnableInstancingVariants: 1
1615
m_DoubleSidedGI: 0
1716
m_CustomRenderQueue: 2000
1817
stringTagMap:
@@ -45,6 +44,10 @@ Material:
4544
m_Texture: {fileID: 0}
4645
m_Scale: {x: 1, y: 1}
4746
m_Offset: {x: 0, y: 0}
47+
- _IridescentSpectrumMap:
48+
m_Texture: {fileID: 0}
49+
m_Scale: {x: 1, y: 1}
50+
m_Offset: {x: 0, y: 0}
4851
- _MainTex:
4952
m_Texture: {fileID: 0}
5053
m_Scale: {x: 1, y: 1}
@@ -69,12 +72,17 @@ Material:
6972
- _AlbedoAlphaMode: 0
7073
- _AlbedoAssignedAtRuntime: 0
7174
- _BlendOp: 0
75+
- _BlendedClippingWidth: 1
7276
- _BorderLight: 0
7377
- _BorderLightOpaque: 0
78+
- _BorderLightOpaqueAlpha: 1
79+
- _BorderLightReplacesAlbedo: 0
7480
- _BorderLightUsesHoverColor: 1
75-
- _BorderMinValue: 0.1
76-
- _BorderWidth: 0.1
81+
- _BorderMinValue: 0.05
82+
- _BorderWidth: 0.05
7783
- _BumpScale: 1
84+
- _ClippingBorder: 0
85+
- _ClippingBorderWidth: 0.025
7886
- _ClippingPlane: 0
7987
- _ClippingPlaneBorder: 0
8088
- _ClippingPlaneBorderWidth: 0.025
@@ -92,26 +100,39 @@ Material:
92100
- _EnableHoverColorOverride: 0
93101
- _EnableLocalSpaceTriplanarMapping: 0
94102
- _EnableNormalMap: 0
103+
- _EnableProximityLightColorOverride: 0
95104
- _EnableTriplanarMapping: 0
96105
- _EnvironmentColorIntensity: 0.5
97106
- _EnvironmentColorThreshold: 1.5
98107
- _EnvironmentColoring: 0
99108
- _FadeBeginDistance: 0.85
100109
- _FadeCompleteDistance: 0.5
110+
- _FadeMinValue: 0
111+
- _FluentLightIntensity: 1
101112
- _GlossMapScale: 1
102113
- _Glossiness: 0.5
103114
- _GlossyReflections: 1
104-
- _HoverLight: 1
115+
- _HoverLight: 0
105116
- _HoverLightOpaque: 0
117+
- _IgnoreZScale: 0
106118
- _InnerGlow: 0
119+
- _InnerGlowPower: 2.68
107120
- _InstancedColor: 0
121+
- _Iridescence: 0
122+
- _IridescenceAngle: -0.78
123+
- _IridescenceIntensity: 0.5
124+
- _IridescenceThreshold: 0.05
108125
- _Metallic: 0
109126
- _Mode: 0
127+
- _NearLightFade: 0
110128
- _NearPlaneFade: 0
111129
- _NormalMapScale: 1
112130
- _OcclusionStrength: 1
113131
- _Parallax: 0.02
114-
- _Reflections: 1
132+
- _ProximityLight: 0
133+
- _ProximityLightSubtractive: 0
134+
- _ProximityLightTwoSided: 0
135+
- _Reflections: 0
115136
- _Refraction: 0
116137
- _RefractiveIndex: 0
117138
- _RenderQueueOverride: -1
@@ -122,20 +143,28 @@ Material:
122143
- _RoundCorners: 0
123144
- _Smoothness: 0.5
124145
- _SmoothnessTextureChannel: 0
125-
- _SpecularHighlights: 1
146+
- _SpecularHighlights: 0
147+
- _SphericalHarmonics: 0
126148
- _SrcBlend: 1
127149
- _Stencil: 0
128150
- _StencilComparison: 0
129151
- _StencilOperation: 0
130152
- _StencilReference: 0
131153
- _TriplanarMappingBlendSharpness: 4
132154
- _UVSec: 0
155+
- _VertexColors: 0
156+
- _VertexExtrusion: 0
157+
- _VertexExtrusionSmoothNormals: 0
158+
- _VertexExtrusionValue: 0
159+
- _ZOffsetFactor: 0
160+
- _ZOffsetUnits: 0
133161
- _ZTest: 4
134162
- _ZWrite: 1
135163
m_Colors:
136164
- _ClipPlane: {r: 0, g: 1, b: 0, a: 0}
165+
- _ClippingBorderColor: {r: 1, g: 0.2, b: 0, a: 1}
137166
- _ClippingPlaneBorderColor: {r: 1, g: 0.2, b: 0, a: 1}
138-
- _Color: {r: 0.062477753, g: 0.08642863, b: 0.33962262, a: 1}
167+
- _Color: {r: 0.27536488, g: 0.29355088, b: 0.49056602, a: 1}
139168
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
140169
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
141170
- _EnvironmentColorX: {r: 1, g: 0, b: 0, a: 1}
@@ -144,4 +173,7 @@ Material:
144173
- _HoverColorOpaqueOverride: {r: 1, g: 1, b: 1, a: 1}
145174
- _HoverColorOverride: {r: 1, g: 1, b: 1, a: 1}
146175
- _InnerGlowColor: {r: 1, g: 1, b: 1, a: 0.75}
176+
- _ProximityLightCenterColorOverride: {r: 1, g: 0, b: 0, a: 0}
177+
- _ProximityLightMiddleColorOverride: {r: 0, g: 1, b: 0, a: 0.5}
178+
- _ProximityLightOuterColorOverride: {r: 0, g: 0, b: 1, a: 1}
147179
- _RimColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}

Assets/MixedRealityToolkit.Examples/Demos/EyeTracking/DemoTargetPositioning/Materials/mat_destination_purple.mat

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Material:
1010
m_Name: mat_destination_purple
1111
m_Shader: {fileID: 4800000, guid: 5bdea20278144b11916d77503ba1467a, type: 3}
1212
m_ShaderKeywords: _BORDER_LIGHT_USES_HOVER_COLOR _DIRECTIONAL_LIGHT _DISABLE_ALBEDO_MAP
13-
_HOVER_LIGHT _REFLECTIONS _SPECULAR_HIGHLIGHTS
13+
_SPECULAR_HIGHLIGHTS
1414
m_LightmapFlags: 4
1515
m_EnableInstancingVariants: 0
1616
m_DoubleSidedGI: 0
@@ -45,6 +45,10 @@ Material:
4545
m_Texture: {fileID: 0}
4646
m_Scale: {x: 1, y: 1}
4747
m_Offset: {x: 0, y: 0}
48+
- _IridescentSpectrumMap:
49+
m_Texture: {fileID: 0}
50+
m_Scale: {x: 1, y: 1}
51+
m_Offset: {x: 0, y: 0}
4852
- _MainTex:
4953
m_Texture: {fileID: 0}
5054
m_Scale: {x: 1, y: 1}
@@ -69,12 +73,17 @@ Material:
6973
- _AlbedoAlphaMode: 0
7074
- _AlbedoAssignedAtRuntime: 0
7175
- _BlendOp: 0
76+
- _BlendedClippingWidth: 1
7277
- _BorderLight: 0
7378
- _BorderLightOpaque: 0
79+
- _BorderLightOpaqueAlpha: 1
80+
- _BorderLightReplacesAlbedo: 0
7481
- _BorderLightUsesHoverColor: 1
7582
- _BorderMinValue: 0.1
7683
- _BorderWidth: 0.1
7784
- _BumpScale: 1
85+
- _ClippingBorder: 0
86+
- _ClippingBorderWidth: 0.025
7887
- _ClippingPlane: 0
7988
- _ClippingPlaneBorder: 0
8089
- _ClippingPlaneBorderWidth: 0.025
@@ -92,26 +101,39 @@ Material:
92101
- _EnableHoverColorOverride: 0
93102
- _EnableLocalSpaceTriplanarMapping: 0
94103
- _EnableNormalMap: 0
104+
- _EnableProximityLightColorOverride: 0
95105
- _EnableTriplanarMapping: 0
96106
- _EnvironmentColorIntensity: 0.5
97107
- _EnvironmentColorThreshold: 1.5
98108
- _EnvironmentColoring: 0
99109
- _FadeBeginDistance: 0.85
100110
- _FadeCompleteDistance: 0.5
111+
- _FadeMinValue: 0
112+
- _FluentLightIntensity: 1
101113
- _GlossMapScale: 1
102114
- _Glossiness: 0.5
103115
- _GlossyReflections: 1
104-
- _HoverLight: 1
116+
- _HoverLight: 0
105117
- _HoverLightOpaque: 0
118+
- _IgnoreZScale: 0
106119
- _InnerGlow: 0
120+
- _InnerGlowPower: 4
107121
- _InstancedColor: 0
122+
- _Iridescence: 0
123+
- _IridescenceAngle: -0.78
124+
- _IridescenceIntensity: 0.5
125+
- _IridescenceThreshold: 0.05
108126
- _Metallic: 0
109127
- _Mode: 0
128+
- _NearLightFade: 0
110129
- _NearPlaneFade: 0
111130
- _NormalMapScale: 1
112131
- _OcclusionStrength: 1
113132
- _Parallax: 0.02
114-
- _Reflections: 1
133+
- _ProximityLight: 0
134+
- _ProximityLightSubtractive: 0
135+
- _ProximityLightTwoSided: 0
136+
- _Reflections: 0
115137
- _Refraction: 0
116138
- _RefractiveIndex: 0
117139
- _RenderQueueOverride: -1
@@ -123,19 +145,27 @@ Material:
123145
- _Smoothness: 0.5
124146
- _SmoothnessTextureChannel: 0
125147
- _SpecularHighlights: 1
148+
- _SphericalHarmonics: 0
126149
- _SrcBlend: 1
127150
- _Stencil: 0
128151
- _StencilComparison: 0
129152
- _StencilOperation: 0
130153
- _StencilReference: 0
131154
- _TriplanarMappingBlendSharpness: 4
132155
- _UVSec: 0
156+
- _VertexColors: 0
157+
- _VertexExtrusion: 0
158+
- _VertexExtrusionSmoothNormals: 0
159+
- _VertexExtrusionValue: 0
160+
- _ZOffsetFactor: 0
161+
- _ZOffsetUnits: 0
133162
- _ZTest: 4
134163
- _ZWrite: 1
135164
m_Colors:
136165
- _ClipPlane: {r: 0, g: 1, b: 0, a: 0}
166+
- _ClippingBorderColor: {r: 1, g: 0.2, b: 0, a: 1}
137167
- _ClippingPlaneBorderColor: {r: 1, g: 0.2, b: 0, a: 1}
138-
- _Color: {r: 0.41509432, g: 0.048949793, b: 0.37441173, a: 1}
168+
- _Color: {r: 0.745283, g: 0.35506406, b: 0.70050377, a: 1}
139169
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
140170
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
141171
- _EnvironmentColorX: {r: 1, g: 0, b: 0, a: 1}
@@ -144,4 +174,7 @@ Material:
144174
- _HoverColorOpaqueOverride: {r: 1, g: 1, b: 1, a: 1}
145175
- _HoverColorOverride: {r: 1, g: 1, b: 1, a: 1}
146176
- _InnerGlowColor: {r: 1, g: 1, b: 1, a: 0.75}
177+
- _ProximityLightCenterColorOverride: {r: 1, g: 0, b: 0, a: 0}
178+
- _ProximityLightMiddleColorOverride: {r: 0, g: 1, b: 0, a: 0.5}
179+
- _ProximityLightOuterColorOverride: {r: 0, g: 0, b: 1, a: 1}
147180
- _RimColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}

0 commit comments

Comments
 (0)