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
{
12
public
class
ElementSelectedActiveWidget
:
InteractiveWidget
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
}
HoloToolkit.Examples.InteractiveElements.InteractiveWidget
InteractiveState can exist on a child element of the game object containing the Interactive component...
Definition:
InteractiveWidget.cs:13
System
HoloToolkit.Examples.InteractiveElements.ElementSelectedActiveWidget.SetState
override void SetState(Interactive.ButtonStateEnum state)
On the selected state, activate this game object
Definition:
ElementSelectedActiveWidget.cs:20
HoloToolkit.Examples.InteractiveElements.Interactive.ButtonStateEnum
ButtonStateEnum
A button typically has 8 potential states. We can update visual feedback based on state change...
Definition:
Interactive.cs:80
HoloToolkit
HoloToolkit.Examples.InteractiveElements.Interactive
Interactive exposes basic button type events to the Unity Editor and receives messages from the Gestu...
Definition:
Interactive.cs:22
UnityEngine
HoloToolkit.Examples.InteractiveElements.ElementSelectedActiveWidget.TargetObject
GameObject TargetObject
Definition:
ElementSelectedActiveWidget.cs:14
HoloToolkit.Examples.InteractiveElements.ElementSelectedActiveWidget
A widget the activates/deactivates a child or other assigned element
Definition:
ElementSelectedActiveWidget.cs:12
Assets
HoloToolkit-Examples
UX
Scripts
Controls
ElementSelectedActiveWidget.cs
Generated by
1.8.12