Hello, I’m new to the forums. I’ve done some Searches here and on google but can’t seem to find the answer to my issues…
So here it goes.
Background: I’ve got some GUI elements, boxes, within a GUI group and I want to drag those boxes around, and so far so good. But! When I drag the box outside the GUI.BeginGroup 's containing Rect the draged box hides itself.
Q: How do I take make so the overflow of the GUI group is shown instead of hidden?
The purpose of a GUI group is to place GUI within the rect. It is clipped if it leaves the bounds.
You will have to make sure the user cannot drag the box outside of the group, or not place it within the group in the first place.
okey seems quite restrictive, I just wanted the group so I could easily move the entire group of boxes around without mixturing with the position of every single item in it. I can see that you could want the content to be clipped when it gets outside the group, but I thought there was a setting to controll it.
Well I guess I have to look for another solution, or just move the one I’m currently moving outside of the scope of the group.
Thanks for the fast response 
Instead of using a group, you could use a Vector2 and have your GUI positioned according to that
var pos : Vector2;
function OnGUI () {
GUI.Box (pos.x+someVal, pos.y+someOtherVal, width, height);
// etc, etc
}
yea was doing that before, but then i noticed the gui group and switched over to it instead.
But got the thing working now, I just move the box I’m dragging outside of the group scope, while dragging, then attach it again when I release it. Working smoothly soo far.
Might go back to just use the offset to position it instead, when I clean up my code. But thats in the future
Just want the functionality for the time being.
edit: I’m even using the offset to get the actual location of the rects, as it’s position is relative to the group and not the window, so it’s just one easy change really. and i get rid of a GUI element. But I still need to clean the class up later 