Search Unity

Triggering Worldspace Canvas under Screen Space Overlay Canvas

Discussion in 'UGUI & TextMesh Pro' started by Lord-Simpson, Aug 22, 2014.

  1. Lord-Simpson

    Lord-Simpson

    Joined:
    Mar 24, 2011
    Posts:
    10
    Hi I'm experimenting with the new UI system and run into a problem.

    I want to have a screen space overlay graphic (image/panel) over a section of the screen, but still activate a world space UI under the panel and cant seam to make it work.

    For example using a panel to border a "picture-in-picture" camera which is displaying an object with a world space intractable canvas.

    It seams that the overlay canvas takes complete priority over the world space if it has an element.

    Is there something I'm missing (layers,masks,depth etc) that will allow a pointer click either fall through the overlay canvas and hit the world space one, activate both or to move the world space canvas "above" the overlay elements?
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,655
    If the world space canvas isn't a child of the screen space canvas then I think the EventSystem will be ignoring the world space canvas - the input/raycaster modules are attached to the root screen space canvas and will only be processing elements that are children of it.

    Have you tried attaching the appropriate EventSystem modules to the world space canvas as well?