Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Window Inside window

$
0
0
So I have this window, i was wondering if it is possible to put another window inside the scrollbar same as the one outside , so i can use the toggle buttons as menu inside the scroll bar to open windows as the one i already have an this the scrip i have using UnityEngine; using System.Collections; public class SkinTest : MonoBehaviour { public GUISkin thisAmigaGUISkin; private Vector2 scrollPosition = Vector2.zero; public bool doWindow0 = true; void DoWindow0(int windowID) { scrollPosition = GUI.BeginScrollView(new Rect(10, 20, 685, 380), scrollPosition, new Rect(-300,20, 665, 6750)); GUI.backgroundColor = Color.green; if (GUI.Button(new Rect(-300, 22, 140, 18), "Mesa De Los Panes")) GUI.ScrollTo(new Rect(0, 1157, 100, 20)); GUI.EndScrollView(); } void OnGUI() { GUI.Box(new Rect(10,8,145,35), "Menu Del Santuario\nOn/Off"); doWindow0 = GUI.Toggle(new Rect(10, 15, 145, 30), doWindow0, ""); if (doWindow0) GUI.Window(0, new Rect(10, 44, 700, 500), DoWindow0, "Basic Window"); } }![alt text][1] [1]: /storage/temp/11492-window.png

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>