Tanoda
SimpleTransformUtil.cs
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) Ultraleap, Inc. 2011-2020. *
3
* *
4
* Use subject to the terms of the Apache License 2.0 available at *
5
* http://www.apache.org/licenses/LICENSE-2.0, or another agreement *
6
* between Ultraleap and you, your company or other organization. *
7
******************************************************************************/
8
9
using
System.Collections;
10
using
System.Collections.Generic;
11
using
UnityEngine
;
12
13
namespace
Leap.Unity.Examples
{
14
15
[AddComponentMenu(
""
)]
16
public
class
SimpleTransformUtil
: MonoBehaviour {
17
18
public
void
SetParentTo
(Transform t) {
19
this.transform.SetParent(t,
true
);
20
}
21
22
public
void
ClearParentTransform
() {
23
this.transform.SetParent(
null
,
true
);
24
}
25
26
}
27
28
}
29
Leap.Unity.Examples.SimpleTransformUtil
Definition:
SimpleTransformUtil.cs:16
Leap.Unity.Examples.SimpleTransformUtil.ClearParentTransform
void ClearParentTransform()
Definition:
SimpleTransformUtil.cs:22
Leap.Unity.Examples.SimpleTransformUtil.SetParentTo
void SetParentTo(Transform t)
Definition:
SimpleTransformUtil.cs:18
Leap.Unity.Examples
Definition:
InertiaPostProcessProvider.cs:12
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Plugins
LeapMotion
Modules
InteractionEngine
Examples
Common Example Assets
Scripts
SimpleTransformUtil.cs
Generated by
1.9.3