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.
21 lines
521 B
C#
21 lines
521 B
C#
// Copyright © 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 |