Tanoda
LeapPanelOutlineGraphicEditor.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;
10
using
System.Collections.Generic;
11
using
UnityEngine
;
12
using
UnityEditor
;
13
using
Leap
.
Unity
.
Query
;
14
15
namespace
Leap.Unity.GraphicalRenderer
{
16
17
[CanEditMultipleObjects]
18
[CustomEditor(typeof(LeapPanelOutlineGraphic), editorForChildClasses:
true
)]
19
public
class
LeapPanelOutlineGraphicEditor
:
LeapSlicedGraphicEditor
{
20
21
protected
override
void
OnEnable
() {
22
base.OnEnable();
23
24
specifyConditionalDrawing(() => targets.Query()
25
.Cast<
LeapPanelOutlineGraphic
>()
26
.Any(t => !t.nineSliced || t.overrideSpriteBorders),
27
"_thickness"
);
28
}
29
30
}
31
32
}
Leap.Unity.GraphicalRenderer.LeapPanelOutlineGraphicEditor
Definition:
LeapPanelOutlineGraphicEditor.cs:19
Leap.Unity.GraphicalRenderer.LeapPanelOutlineGraphicEditor.OnEnable
override void OnEnable()
Definition:
LeapPanelOutlineGraphicEditor.cs:21
Leap.Unity.GraphicalRenderer.LeapPanelOutlineGraphic
The Panel Outline Graphic acts just like a Panel Graphic, but only produces quads for the outermost e...
Definition:
LeapPanelOutlineGraphic.cs:22
Leap.Unity.GraphicalRenderer.LeapSlicedGraphicEditor
Definition:
LeapSlicedGraphicEditor.cs:19
Leap.Unity.GraphicalRenderer
Definition:
EditorPickingMeshRebuilder.cs:12
Leap.Unity.Query
Definition:
Query.cs:13
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
Legacy
GraphicRenderer
Scripts
Graphics
ProceduralMeshGraphics
Editor
LeapPanelOutlineGraphicEditor.cs
Generated by
1.9.3