About Store Forum Documentation Contact



Post Reply 
[Solved] Draw gui objects to different viewports
Author Message
Dynad Offline
Member

Post: #1
[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 smile


~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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #3
[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 smile

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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply