-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFeaturesPanelVisuals.cs
More file actions
30 lines (27 loc) · 988 Bytes
/
FeaturesPanelVisuals.cs
File metadata and controls
30 lines (27 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.MixedReality.Toolkit.Input;
using Microsoft.MixedReality.Toolkit.Utilities;
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.UI
{
/// <summary>
/// Class that initializes the appearance of the features panel according to the toggled states of the associated features
/// </summary>
internal class FeaturesPanelVisuals : MonoBehaviour
{
[SerializeField]
private Interactable handMeshButton = null;
private void Start()
{
if (CoreServices.InputSystem?.InputSystemProfile != null)
{
MixedRealityHandTrackingProfile handProfile = CoreServices.InputSystem.InputSystemProfile.HandTrackingProfile;
if (handProfile != null)
{
handProfile.EnableHandMeshVisualization = handMeshButton.IsToggled;
}
}
}
}
}