You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/ThirteenPixels/Placr/Editor/PlacrOverlay.cs

21 lines
521 B
C#

3 months ago
// Copyright <20> Sascha Graeff/13Pixels.
#if UNITY_2021_2_OR_NEWER
namespace ThirteenPixels.Placr
{
using UnityEditor;
using UnityEditor.Overlays;
using UnityEngine.UIElements;
[Overlay(typeof(SceneView), "Placr", true)]
public class PlacrOverlay : Overlay, ITransientOverlay
{
public bool visible => Placr.isActive;
public override VisualElement CreatePanelContent()
{
return new IMGUIContainer(() => Placr.instance.DrawOverlayGUI());
}
}
}
#endif