- Home /
Window Inside window
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");
}
}
No, it's impossible with Unity's GUI. Why would you want that? The whole point of windows is that it acts like a window on your computer. What you want is a area or something similar :)
Your answer
Follow this Question
Related Questions
GUI skin in GUI Window with Scrollbar 0 Answers
Unity GUI, ScrollView Questions 2 Answers
Level selection menu (grid) and scrolling it!! 1 Answer
Scrollbar to move left and right 1 Answer
Smooth scroll snap? 3 Answers