Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEditor;
- public class DADTestWindowB : EditorWindow
- {
- [MenuItem("Tools/Tests/WinB")]
- static void Init()
- {
- CreateInstance<DADTestWindowB>().Show();
- }
- DragContainer container;
- private void OnEnable()
- {
- container = new DragContainer();
- new DragObj { title = "TestObj1B", owner = container }.MoveTo(container);
- new DragObj { title = "TestObj2B", owner = container }.MoveTo(container);
- new DragObj { title = "TestObj3B", owner = container }.MoveTo(container);
- }
- void OnGUI()
- {
- container.Draw();
- }
- }
Advertisement
RAW Paste Data
Copied
Advertisement