Jump to content

Is the GUI supposed to respect layerMasks?


Recommended Posts

I am using the advancedTexture GUI to make some controls in a scene. In the full scene, I am using the layerMask to separate objects between the main camera and the minimap. The layerMask does not appear to be respected for GUI components.

This playground has the ground plane and the button in the same layerMask(2). the ground plane is not rendered, but the button is. This is not what I expected. Is it correct?


Link to comment
Share on other sites

I want to remove the GUI from the second camera I am using in my scene. I have a Point Of Interest App that I am building. On each point I have a mesh that is connected to a button through the GUI. i want to hide the meshes in the main camera, and hide the GUI elements in the minimap camera.

I was using 2 meshes and layerMasks, one mesh for each camera, but The button meshes weren't as clear as I would have liked, so I changed the setup.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...