AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
ElementSelectedActiveWidget.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.Collections;
5 using System.Collections.Generic;
6 using UnityEngine;
7 namespace HoloToolkit.Examples.InteractiveElements
8 {
13  {
14  public GameObject TargetObject;
15 
20  public override void SetState(Interactive.ButtonStateEnum state)
21  {
22  base.SetState(state);
23  TargetObject.SetActive(InteractiveHost.IsSelected);
24  }
25  }
26 }
InteractiveState can exist on a child element of the game object containing the Interactive component...
override void SetState(Interactive.ButtonStateEnum state)
On the selected state, activate this game object
ButtonStateEnum
A button typically has 8 potential states. We can update visual feedback based on state change...
Definition: Interactive.cs:80
Interactive exposes basic button type events to the Unity Editor and receives messages from the Gestu...
Definition: Interactive.cs:22
A widget the activates/deactivates a child or other assigned element