AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
DeleteLine.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
UnityEngine
;
5
using
System
.Collections;
6
7
namespace
HoloToolkit
.Examples.GazeRuler
8
{
9
public
class
DeleteLine
: MonoBehaviour
10
{
14
public
void
OnSelect
()
15
{
16
var parent = gameObject.transform.parent.gameObject;
17
if
(parent != null)
18
{
19
Destroy(parent);
20
}
21
}
22
}
23
}
System
HoloToolkit.Examples.GazeRuler.DeleteLine.OnSelect
void OnSelect()
when tip text is tapped, destroy this tip and relative objects.
Definition:
DeleteLine.cs:14
HoloToolkit.Examples.GazeRuler.DeleteLine
Definition:
DeleteLine.cs:9
HoloToolkit
UnityEngine
Assets
HoloToolkit-Examples
GazeRuler
Scripts
DeleteLine.cs
Generated by
1.8.12