Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Mask non-UI game objects with a Mask component?

Discussion in 'UGUI & TextMesh Pro' started by hansadler, Dec 11, 2014.

  1. hansadler

    hansadler

    Joined:
    May 12, 2014
    Posts:
    50
    Hi, I have some objects with procedurally generated meshes and animated sprites that are children of a UI Panel so they move around with the panel.

    I want to put these objects into a ScrollRect and mask them to only be visible in the area of the ScrollRect with the Mask component. By default this doesn't happen. All the UI gameobjects get masked, but the non-UI gameobjects don't get masked. Is it possible to do this with shaders or some other method?

    Thanks.
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,181
    Not currently. It is on our roadmap.
     
    trasher258 likes this.
  3. pRoFlT

    pRoFlT

    Joined:
    Dec 20, 2014
    Posts:
    27
    I've been trying to do a similar thing with the UI mask. Wanted to put 3D fire behind UI Image with Mask. then blend two cameras for game over screen, etc...so you could see where the game ended with the game over image (as a mask image) with flames showing only in masked area...
     
  4. CodeFighter

    CodeFighter

    Joined:
    Dec 15, 2012
    Posts:
    63
    Is this still in road map?