Tanoda
TransformHandleEditor.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
UnityEditor
;
12
using
UnityEngine
;
13
14
namespace
Leap.Unity.Examples
{
15
16
[CustomEditor(typeof(TransformHandle),
true
)]
17
[CanEditMultipleObjects]
18
public
class
TransformHandleEditor
:
CustomEditorBase
<TransformHandle> {
19
20
protected
override
void
OnEnable
() {
21
base.OnEnable();
22
23
deferProperty
(
"OnHandleDeactivated"
);
24
deferProperty
(
"OnHandleActivated"
);
25
deferProperty
(
"OnShouldHideHandle"
);
26
deferProperty
(
"OnShouldShowHandle"
);
27
}
28
29
}
30
31
}
Leap.Unity.CustomEditorBase
Definition:
CustomEditorBase.cs:17
Leap.Unity.CustomEditorBase< TransformHandle >::deferProperty
void deferProperty(string propertyName)
Defer rendering of a property until the end of the inspector. Deferred properties are drawn in the RE...
Definition:
CustomEditorBase.cs:176
Leap.Unity.Examples.TransformHandleEditor
Definition:
TransformHandleEditor.cs:18
Leap.Unity.Examples.TransformHandleEditor.OnEnable
override void OnEnable()
Definition:
TransformHandleEditor.cs:20
Leap.Unity.Examples
Definition:
InertiaPostProcessProvider.cs:12
UnityEditor
Definition:
BoxSliderEditor.cs:6
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Plugins
LeapMotion
Modules
InteractionEngine
Examples
3. Interaction Callbacks
Scripts
Editor
TransformHandleEditor.cs
Generated by
1.9.3