Dynad
Member
|
[Solved] Draw gui objects to different viewports
Hi,
I have a problem with drawing gui objects to a specific viewport. Is this even possible?
When i try this:
Gui+=viewport[0].create()
//object code etc.......
viewport[0] += menu.button(b);
It doesn't show up... if i do Gui += menu.create(n); it works just fine but it shows up as 1 in both of the viewports.
Let me know what i am doing wrong here
~Dynad
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-04-2011 01:47 AM by Dynad.)
|
|
05-03-2011 06:53 PM |
|
Esenthel
Administrator
|
RE: Draw gui objects to different viewports
Viewport doesn't support children (only window, desktop, region, tabs can have children), use region instead of viewport
|
|
05-03-2011 09:39 PM |
|
Dynad
Member
|
[Solved] Draw gui objects to different viewports
Ok, do i need to use Render to texture for this? Im not entirely sure how to change it to a region...
Edit: Ok i got it.. rendered the viewport on the region and it works great
There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-04-2011 01:46 AM by Dynad.)
|
|
05-03-2011 10:33 PM |
|