Tanoda
Disable.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
#if UNITY_EDITOR
10
using
UnityEditor
;
11
#endif
12
13
namespace
Leap.Unity.Attributes
{
14
15
public
class
DisableAttribute
:
CombinablePropertyAttribute
,
IPropertyDisabler
{
16
17
#if UNITY_EDITOR
18
public
bool
ShouldDisable(SerializedProperty property) {
19
return
true
;
20
}
21
#endif
22
}
23
}
Leap.Unity.Attributes.CombinablePropertyAttribute
Definition:
CombinablePropertyAttribute.cs:66
Leap.Unity.Attributes.DisableAttribute
Definition:
Disable.cs:15
Leap.Unity.Attributes.IPropertyDisabler
Definition:
CombinablePropertyAttribute.cs:27
Leap.Unity.Attributes
Definition:
CombinablePropertyDrawer.cs:16
UnityEditor
Definition:
BoxSliderEditor.cs:6
Source
Assets
Plugins
LeapMotion
Core
Scripts
Attributes
Disable.cs
Generated by
1.9.3