Tanoda
XRHeightOffsetEditor.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
using
Leap
.
Unity
;
14
15
namespace
Leap.Unity
{
16
17
[CanEditMultipleObjects]
18
[CustomEditor(typeof(
XRHeightOffset
))]
19
public
class
XRHeightOffsetEditor
:
CustomEditorBase
<XRHeightOffset> {
20
21
protected
override
void
OnEnable
() {
22
base.OnEnable();
23
24
specifyConditionalDrawing
(conditionalName:
"recenterOnKey"
,
25
dependantProperties:
"recenterKey"
);
26
}
27
28
}
29
30
}
Leap.Unity.CustomEditorBase
Definition:
CustomEditorBase.cs:17
Leap.Unity.CustomEditorBase< XRHeightOffset >::specifyConditionalDrawing
void specifyConditionalDrawing(string conditionalName, params string[] dependantProperties)
Specify a list of properties that should only be displayed if the conditional property has a value of...
Definition:
CustomEditorBase.cs:112
Leap.Unity.XRHeightOffsetEditor
Definition:
XRHeightOffsetEditor.cs:19
Leap.Unity.XRHeightOffsetEditor.OnEnable
override void OnEnable()
Definition:
XRHeightOffsetEditor.cs:21
Leap.Unity.XRHeightOffset
Definition:
XRHeightOffset.cs:16
Leap.Unity
Definition:
AssetFolderPropertyDrawer.cs:15
Leap
Definition:
AssetFolderPropertyDrawer.cs:15
UnityEditor
Definition:
BoxSliderEditor.cs:6
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Plugins
LeapMotion
Core
Editor
XRHeightOffsetEditor.cs
Generated by
1.9.3