if you run the following it always crash Unity :
using UnityEngine;
using System.Collections;
public class GUIWindowCrashTest: MonoBehaviour
{
void OnGUI ()
{
GUI.Window(0, new Rect(0,0,100,200), WindowA, "WindowA");
}
void WindowA (int id)
{
GUI.Window(1, new Rect(0,0,100,200), WindowB, "WindowB");
}
void WindowB (int id)
{
GUI.Label (new Rect(0,0,100,200), "crash__??");
}
}
Well, what I am looking to do is to define an area into the Window to get more content assigned to this area.
For exemple if a texture, button or else are into this area, it should be cropped…
Then well, I was thinking to create a GUI.Window into another GUI.Window could be fine but it crashes Unity
Does someone have an idea?
Also wondering what is the following :
Any description? O_o…
Thanks!
EDIT : I just found the following as exemple for the ModelWindow :
- http://www.supersuraccoon-cocos2d.com/2011/09/01/simple-modal-window-solution-in-unity3d/
But not what I need anyway…