Sign in to follow this  
JCPalmer

Button dis-connected

Recommended Posts

I have made a form for inputting parameters for webm audio/video recordings.  I have broken out the top level StackPanel apart from the full screen AdvancedDynamicTexture.  When either the "Rehearse" or "Record" buttons are pressed, you cannot still have the form visible or this happens:

424647677_side-by-sideUHD.thumb.jpg.b9b04edcd257526bf1e97e3d78ece7d3.jpg

Clearly not acceptable to be in the video itself, & a little annoying for rehearsing.  The only way I found to temporarily get rid of it was to dispose the texture.  After the scene is done, I took the StackPanel and put it in a new AdvancedDynamicTexture, just 2 lines.  The buttons are connected to NOTHING now though.

Using a Mesh for the texture will allow it to be hidden, but then I need a second camera in ortho mode & setup layer masks.  Is there any way to avoid going that route?

 

Share this post


Link to post
Share on other sites

We can also play with the layerMask on advancedDynamicTexture and set the value to 0 to hide it

advancedDynamicTexture.layer.layerMask = 0; // hide GUI

advancedDynamicTexture.layer.layerMask = 1; // show GUI

It works well for me

Share this post


Link to post
Share on other sites

@dad72, always good to have a number of ways of equal effort.  From a tie breaker standpoint, the code reads slightly more straight forward by setting the visibility of the top level StackPanel..  Though I suppose the downside of that is you have to have a top level control.  I definitely need one anyway, since I need vertical stacking with some horizontal.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.