Skip to content

Commit c29617a

Browse files
author
Stephen Hodgson
committed
Merge branch 'MRTK-Master' into HTK-WorldAnchorManagerUpdate
# Conflicts: # Assets/HoloToolkit/Input/Scripts/Interactions/TapToPlace.cs
2 parents 67e86d8 + 8ed1817 commit c29617a

File tree

18 files changed

+866
-106
lines changed

18 files changed

+866
-106
lines changed

Assets/HoloToolkit-Tests/Input/Scenes/TapToPlace.unity

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ RenderSettings:
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 0}
41-
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
41+
m_IndirectSpecularColor: {r: 0.44657874, g: 0.49641258, b: 0.5748172, a: 1}
4242
--- !u!157 &3
4343
LightmapSettings:
4444
m_ObjectHideFlags: 0
45-
serializedVersion: 9
45+
serializedVersion: 11
4646
m_GIWorkflowMode: 0
4747
m_GISettings:
4848
serializedVersion: 2
@@ -54,7 +54,7 @@ LightmapSettings:
5454
m_EnableBakedLightmaps: 1
5555
m_EnableRealtimeLightmaps: 1
5656
m_LightmapEditorSettings:
57-
serializedVersion: 8
57+
serializedVersion: 9
5858
m_Resolution: 2
5959
m_BakeResolution: 40
6060
m_TextureWidth: 1024
@@ -87,7 +87,7 @@ LightmapSettings:
8787
m_PVRFilteringAtrousNormalSigma: 1
8888
m_PVRFilteringAtrousPositionSigma: 1
8989
m_LightingDataAsset: {fileID: 0}
90-
m_ShadowMaskMode: 2
90+
m_UseShadowmask: 1
9191
--- !u!196 &4
9292
NavMeshSettings:
9393
serializedVersion: 2
@@ -219,6 +219,7 @@ MonoBehaviour:
219219
PlaceParentOnTap: 0
220220
ParentGameObjectToPlace: {fileID: 0}
221221
IsBeingPlaced: 0
222+
AllowMeshVisualizationControl: 1
222223
--- !u!23 &181528116
223224
MeshRenderer:
224225
m_ObjectHideFlags: 0
@@ -376,9 +377,10 @@ MonoBehaviour:
376377
m_EditorClassIdentifier:
377378
DefaultGazeDistance: 2
378379
SavedAnchorFriendlyName: 5361766564416e63686f72467269656e646c794e616d65
379-
PlaceParentOnTap: 0
380+
PlaceParentOnTap: 1
380381
ParentGameObjectToPlace: {fileID: 0}
381382
IsBeingPlaced: 0
383+
AllowMeshVisualizationControl: 1
382384
--- !u!23 &532765827
383385
MeshRenderer:
384386
m_ObjectHideFlags: 0
@@ -474,6 +476,11 @@ Prefab:
474476
propertyPath: drawVisualMeshes
475477
value: 0
476478
objectReference: {fileID: 0}
479+
- target: {fileID: 114000012149591842, guid: 2ed75ffdf9031c94e8bce4b3d17b9928,
480+
type: 2}
481+
propertyPath: RoomModel
482+
value:
483+
objectReference: {fileID: 100008, guid: 68a7a806bf726614aa309bb190ab7cee, type: 3}
477484
m_RemovedComponents: []
478485
m_ParentPrefab: {fileID: 100100000, guid: 2ed75ffdf9031c94e8bce4b3d17b9928, type: 2}
479486
m_IsPrefabParent: 0
@@ -513,6 +520,7 @@ MonoBehaviour:
513520
PlaceParentOnTap: 0
514521
ParentGameObjectToPlace: {fileID: 0}
515522
IsBeingPlaced: 0
523+
AllowMeshVisualizationControl: 1
516524
--- !u!23 &1023018528
517525
MeshRenderer:
518526
m_ObjectHideFlags: 0
@@ -772,6 +780,20 @@ Light:
772780
m_Lightmapping: 4
773781
m_AreaSize: {x: 1, y: 1}
774782
m_BounceIntensity: 1
783+
m_FalloffTable:
784+
m_Table[0]: 0
785+
m_Table[1]: 0
786+
m_Table[2]: 0
787+
m_Table[3]: 0
788+
m_Table[4]: 0
789+
m_Table[5]: 0
790+
m_Table[6]: 0
791+
m_Table[7]: 0
792+
m_Table[8]: 0
793+
m_Table[9]: 0
794+
m_Table[10]: 0
795+
m_Table[11]: 0
796+
m_Table[12]: 0
775797
m_ColorTemperature: 6570
776798
m_UseColorTemperature: 0
777799
m_ShadowRadius: 0

Assets/HoloToolkit-UnitTests/Editor/Input.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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See LICENSE in the project root for license information.
3+
4+
using System.Linq;
5+
using UnityEngine;
6+
7+
namespace HoloToolkit.Unity
8+
{
9+
public static class EditorUtils
10+
{
11+
/// <summary>
12+
/// Deletes all objects in the scene
13+
/// </summary>
14+
public static void ClearScene()
15+
{
16+
foreach (var transform in Object.FindObjectsOfType<Transform>().Select(t => t.root).Distinct().ToList())
17+
{
18+
Object.DestroyImmediate(transform.gameObject);
19+
}
20+
}
21+
}
22+
}

Assets/HoloToolkit-UnitTests/Editor/Utilities/EditorUtils.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
using NUnit.Framework;
2+
using UnityEngine;
3+
4+
namespace HoloToolkit.Unity.Tests
5+
{
6+
public class EditorUtilsTests
7+
{
8+
[Test]
9+
public void ClearOne()
10+
{
11+
GameObject.CreatePrimitive(PrimitiveType.Cube);
12+
EditorUtils.ClearScene();
13+
Assert.That(Object.FindObjectsOfType<GameObject>(), Is.Empty);
14+
}
15+
16+
[Test]
17+
public void ClearMany()
18+
{
19+
for (var i = 0; i < 10; i++)
20+
{
21+
GameObject.CreatePrimitive(PrimitiveType.Cube);
22+
}
23+
EditorUtils.ClearScene();
24+
Assert.That(Object.FindObjectsOfType<GameObject>(), Is.Empty);
25+
}
26+
27+
[Test]
28+
public void ClearHierarchy()
29+
{
30+
var empty = new GameObject();
31+
var parent = Object.Instantiate(empty);
32+
for (var i = 0; i < 10; i++)
33+
{
34+
parent = Object.Instantiate(empty, parent.transform);
35+
}
36+
EditorUtils.ClearScene();
37+
Assert.That(Object.FindObjectsOfType<GameObject>(), Is.Empty);
38+
}
39+
}
40+
}

Assets/HoloToolkit-UnitTests/Editor/Utilities/EditorUtilsTests.cs.meta

Lines changed: 12 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)