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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

When a world canvas is scaled, the mask does not work!

Discussion in 'UGUI & TextMesh Pro' started by JonathanBolten, Dec 27, 2014.

  1. JonathanBolten

    JonathanBolten

    Joined:
    Dec 15, 2012
    Posts:
    50
    I have a world canvas with dimensions 1280x720. Parented to this world canvas is a panel with a mask component attached to it. Finally, there is a button parented to the panel. The mask works properly when the world canvas scale is 1,1,1, but obviously the world canvas is far too big being 1280x720. So I scale it down to 0.001,0.001,0.001 to fit into my game world. This keeps the text crisp, but the mask seems to hide everything and nothing is shown.

    Am I doing something wrong or is this a bug with the mask not taking scale into account?
     
  2. JonathanBolten

    JonathanBolten

    Joined:
    Dec 15, 2012
    Posts:
    50
    Does anyone have any experience with this?
     
  3. JonathanBolten

    JonathanBolten

    Joined:
    Dec 15, 2012
    Posts:
    50
  4. JonathanBolten

    JonathanBolten

    Joined:
    Dec 15, 2012
    Posts:
    50
    Would it help to give more information? Does this work for other people?
     
  5. Sebioff

    Sebioff

    Joined:
    Dec 22, 2013
    Posts:
    218
    I gave this a quick try and it seems to work fine for me, so I can only give the general advice for what to do when encountering what might be a bug - try to reproduce this in an empty scene with nothing else going on.
    If it's still not behaving as expected, send a bug report from within the Editor (Help -> Report a Bug) with your repro case attached and post the bug # over here (the devs are quite active in this forum, if one of them notices this thread he'll quite likely look into the problem). You can also attach the reproduction here so someone else can see if he can figure out the problem.
    Also, make sure you're using the latest version of Unity.