AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
MeshButtonDatum.cs
Go to the documentation of this file.
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;
5 using UnityEngine;
6 
7 namespace HoloToolkit.Unity.Buttons
8 {
12  [Serializable]
13  public class MeshButtonDatum
14  {
18  public MeshButtonDatum(ButtonStateEnum state) { this.ActiveState = state; this.Name = state.ToString(); }
19 
23  public string Name;
27  public ButtonStateEnum ActiveState = ButtonStateEnum.Observation;
31  public Color StateColor = Color.white;
35  public Vector3 Offset;
39  public Vector3 Scale;
40  }
41 }
ButtonStateEnum
State enum for buttons.
Vector3 Offset
Offset to translate mesh to in active state.
string Name
Name string for datum entry
MeshButtonDatum(ButtonStateEnum state)
Constructor for mesh button datum
Vector3 Scale
Scale for mesh button in active state