Is there a way to draw a floating gui box like the camera preview in the scene pane?
1 Like
Answering my own question
using UnityEngine;
using UnityEditor;
using System.Collections;
[CustomEditor(typeof(Demo))]
public class DemoInspector : Editor
{
void OnSceneGUI()
{
Handles.BeginGUI();
GUILayout.Window(2, new Rect(Screen.width-110, Screen.height-130, 100, 100), (id)=> {
// Content of window here
GUILayout.Button("A Button");
}, "Title");
Handles.EndGUI();
}
}
9 Likes
thanks you!!!
