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
9using System;
10using System.Collections.Generic;
11using UnityEngine;
12using UnityEditor;
13using Leap.Unity.Query;
14
16
17 [CanEditMultipleObjects]
18 [CustomEditor(typeof(LeapPanelOutlineGraphic), editorForChildClasses: true)]
20
21 protected override void OnEnable() {
22 base.OnEnable();
23
24 specifyConditionalDrawing(() => targets.Query()
26 .Any(t => !t.nineSliced || t.overrideSpriteBorders),
27 "_thickness");
28 }
29
30 }
31
32}
The Panel Outline Graphic acts just like a Panel Graphic, but only produces quads for the outermost e...