// Update is called once per frame public void OnGUI() { if (_guiStage == null) { SetupUpGui(); } _guiStage.Draw(); }
// Update is called once per frame public void OnGUI() { // Debug.Log("OnGUI"); if (_guiStage == null) { // Debug.Log("creating gui"); SetupUpGui(); } // var mat = Matrix4x4.TRS(new Vector3(0, 50, 0), Quaternion.Euler(0, 0, 0), new Vector3(1, 1, 1)); // var mat2 = Matrix4x4.TRS(new Vector3(_x, 0, 0), Quaternion.Euler(0, 0, 0), new Vector3(1, 1, 1)); // GUI.matrix = (mat*mat2) * mat2.inverse; _x += 0.2F; _guiStage.Draw(); }