I’m not entirely sure what I’m doing wrong, as everything in my code looks right, but I can’t seem to get GUI.DragWindow() to work… If anyone could tell me what I’m doing wrong, I would greatly appreciate it.
using UnityEngine;
using System.Collections;
public class Interface : MonoBehaviour {
Rect statusWindow = new Rect(15,15,300,300);
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUI.Window (0,statusWindow,StatusWindow,"Status");
}
void StatusWindow(int windowID)
{
GUI.DragWindow(new Rect(0,0,10000,10000));
}
}