Skip to content

Commit f7be60a

Browse files
committed
Merge branch 'master' of https://github.com/Microsoft/HoloToolkit-Unity into feature/cross_platform
2 parents 8df9d83 + e884de1 commit f7be60a

File tree

10 files changed

+39
-32
lines changed

10 files changed

+39
-32
lines changed

Assets/HoloToolkit/Input/Scripts/Microphone/MicStream.cs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
using System.Runtime.InteropServices;
5-
using UnityEngine;
65
using System.Text;
6+
using UnityEngine;
77

88
namespace HoloToolkit.Unity.InputModule
99
{
1010
public class MicStream
1111
{
12-
// This class replaces Unity's Microphone object
13-
// This class is made for HoloLens mic stream selection, but should work well on all windows 10 devices
14-
// chooses from one of three possible microphone modes on HoloLens
15-
// There is an example of how to use this script in HoloToolkit\Input\Tests\Scripts\MicStreamDemo.cs
16-
17-
// Streams: LOW_QUALITY_VOICE is optimized for speech analysis, COMMUNICATIONS is higher quality voice and is probably preferred
18-
// ROOM_CAPTURE tries to get the sounds of the room more than the voice of the suer
19-
// can only be set on initialization
12+
// This class replaces Unity's Microphone object.
13+
// This class is made for HoloLens mic stream selection but should work well on all Windows 10 devices.
14+
// Choose from one of three possible microphone modes on HoloLens.
15+
// There is an example of how to use this script in HoloToolkit-Tests\Input\Scripts\MicStreamDemo.cs.
16+
17+
// Streams: LOW_QUALITY_VOICE is optimized for speech analysis.
18+
// COMMUNICATIONS is higher quality voice and is probably preferred.
19+
// ROOM_CAPTURE tries to get the sounds of the room more than the voice of the user.
20+
// This can only be set on initialization.
2021
public enum StreamCategory { LOW_QUALITY_VOICE, HIGH_QUALITY_VOICE, ROOM_CAPTURE }
2122

2223
public enum ErrorCodes { ALREADY_RUNNING = -10, NO_AUDIO_DEVICE, NO_INPUT_DEVICE, ALREADY_RECORDING, GRAPH_NOT_EXIST, CHANNEL_COUNT_MISMATCH, FILE_CREATION_PERMISSION_ERROR, NOT_ENOUGH_DATA, NEED_ENABLED_MIC_CAPABILITY };
@@ -192,4 +193,4 @@ public static bool CheckForErrorOnCall(int returnCode)
192193
return true;
193194
}
194195
}
195-
}
196+
}

Assets/HoloToolkit/Input/Scripts/SetGlobalListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using UnityEngine;
55

6-
namespace HoloToolkit.Unity.InputModule.Tests
6+
namespace HoloToolkit.Unity.InputModule
77
{
88
/// <summary>
99
/// Register this game object on the InputManager as a global listener.

Assets/HoloToolkit/Input/Models/Cursor/Materials.meta renamed to Assets/HoloToolkit/Sharing/Scripts/Extensions.meta

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

Assets/HoloToolkit/Utilities/Scripts/SessionExtensions.cs renamed to Assets/HoloToolkit/Sharing/Scripts/Extensions/SessionExtensions.cs

File renamed without changes.

Assets/HoloToolkit/Utilities/Scripts/SessionExtensions.cs.meta renamed to Assets/HoloToolkit/Sharing/Scripts/Extensions/SessionExtensions.cs.meta

File renamed without changes.

Assets/HoloToolkit/Utilities/Scripts/Billboard.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,16 @@ public class Billboard : MonoBehaviour
2424
[Tooltip("Specifies the axis about which the object will rotate.")]
2525
public PivotAxis PivotAxis = PivotAxis.Free;
2626

27+
[Tooltip("Specifies the target we will orient to. If no Target is specified the main camera will be used.")]
28+
public Transform TargetTransform;
29+
2730
private void OnEnable()
2831
{
32+
if (TargetTransform == null)
33+
{
34+
TargetTransform = Camera.main.transform;
35+
}
36+
2937
Update();
3038
}
3139

@@ -34,13 +42,13 @@ private void OnEnable()
3442
/// </summary>
3543
private void Update()
3644
{
37-
if (!Camera.main)
45+
if (TargetTransform == null)
3846
{
3947
return;
4048
}
4149

4250
// Get a Vector that points from the target to the main camera.
43-
Vector3 directionToTarget = Camera.main.transform.position - transform.position;
51+
Vector3 directionToTarget = TargetTransform.position - transform.position;
4452

4553
// Adjust for the pivot axis.
4654
switch (PivotAxis)
@@ -65,4 +73,4 @@ private void Update()
6573
transform.rotation = Quaternion.LookRotation(-directionToTarget);
6674
}
6775
}
68-
}
76+
}

Assets/HoloToolkit/Utilities/Scripts/Extensions/ComponentExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace HoloToolkit.Unity
99
{
1010
/// <summary>
1111
/// Extensions methods for the Unity Component class.
12-
/// This also includes some component-related extensions for the GameObjet class.
12+
/// This also includes some component-related extensions for the GameObject class.
1313
/// </summary>
1414
public static class ComponentExtensions
1515
{

ProjectSettings/ProjectSettings.asset

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ PlayerSettings:
328328
switchSocketMemoryPoolSize: 6144
329329
switchSocketAllocatorPoolSize: 128
330330
switchSocketConcurrencyLimit: 14
331+
switchScreenResolutionBehavior: 2
331332
switchUseCPUProfiler: 0
332333
switchApplicationID: 0x0005000C10000001
333334
switchNSODependencies:
@@ -343,9 +344,6 @@ PlayerSettings:
343344
switchTitleNames_9:
344345
switchTitleNames_10:
345346
switchTitleNames_11:
346-
switchTitleNames_12:
347-
switchTitleNames_13:
348-
switchTitleNames_14:
349347
switchPublisherNames_0:
350348
switchPublisherNames_1:
351349
switchPublisherNames_2:
@@ -358,9 +356,6 @@ PlayerSettings:
358356
switchPublisherNames_9:
359357
switchPublisherNames_10:
360358
switchPublisherNames_11:
361-
switchPublisherNames_12:
362-
switchPublisherNames_13:
363-
switchPublisherNames_14:
364359
switchIcons_0: {fileID: 0}
365360
switchIcons_1: {fileID: 0}
366361
switchIcons_2: {fileID: 0}
@@ -373,9 +368,6 @@ PlayerSettings:
373368
switchIcons_9: {fileID: 0}
374369
switchIcons_10: {fileID: 0}
375370
switchIcons_11: {fileID: 0}
376-
switchIcons_12: {fileID: 0}
377-
switchIcons_13: {fileID: 0}
378-
switchIcons_14: {fileID: 0}
379371
switchSmallIcons_0: {fileID: 0}
380372
switchSmallIcons_1: {fileID: 0}
381373
switchSmallIcons_2: {fileID: 0}
@@ -388,9 +380,6 @@ PlayerSettings:
388380
switchSmallIcons_9: {fileID: 0}
389381
switchSmallIcons_10: {fileID: 0}
390382
switchSmallIcons_11: {fileID: 0}
391-
switchSmallIcons_12: {fileID: 0}
392-
switchSmallIcons_13: {fileID: 0}
393-
switchSmallIcons_14: {fileID: 0}
394383
switchManualHTML:
395384
switchAccessibleURLs:
396385
switchLegalInformation:
@@ -406,7 +395,7 @@ PlayerSettings:
406395
switchApplicationErrorCodeCategory:
407396
switchUserAccountSaveDataSize: 0
408397
switchUserAccountSaveDataJournalSize: 0
409-
switchAttribute: 0
398+
switchApplicationAttribute: 0
410399
switchCardSpecSize: 4
411400
switchCardSpecClock: 25
412401
switchRatingsMask: 0
@@ -433,6 +422,15 @@ PlayerSettings:
433422
switchParentalControl: 0
434423
switchAllowsScreenshot: 1
435424
switchDataLossConfirmation: 0
425+
switchSupportedNpadStyles: 3
426+
switchSocketConfigEnabled: 0
427+
switchTcpInitialSendBufferSize: 32
428+
switchTcpInitialReceiveBufferSize: 64
429+
switchTcpAutoSendBufferSizeMax: 256
430+
switchTcpAutoReceiveBufferSizeMax: 256
431+
switchUdpSendBufferSize: 9
432+
switchUdpReceiveBufferSize: 42
433+
switchSocketBufferEfficiency: 4
436434
ps4NPAgeRating: 12
437435
ps4NPTitleSecret:
438436
ps4NPTrophyPackPath:

ProjectSettings/ProjectVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
m_EditorVersion: 5.6.1f1
1+
m_EditorVersion: 5.6.2f1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This is effectively part of the existing HoloToolkit, but this is the repository that will contain all Unity specific components.
33
The HoloToolkit is a collection of scripts and components intended to accelerate development of holographic applications targeting Windows Holographic.
44

5-
**Required Unity Editor Version: 5.6.1f1**
5+
**Required Unity Editor Version: 5.6.2f1**
66

77
HoloToolkit contains the following feature areas:
88

0 commit comments

Comments
 (0)