Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Mask an image: two different behavior in the different scene

Discussion in 'UGUI & TextMesh Pro' started by VKyuzel, Apr 26, 2023.

  1. VKyuzel

    VKyuzel

    Joined:
    Mar 6, 2022
    Posts:
    21
    Hello,

    I'm creating a simply UI Card: upload_2023-4-26_10-43-51.png

    Using the mask
    upload_2023-4-26_10-44-56.png

    In an empty scene, it works perfectly, under a canvas:
    upload_2023-4-26_10-46-26.png

    But troubles comes when I use the same card in my game, the card inside disappear:
    upload_2023-4-26_10-49-50.png As you can see, it remains the layout but the card inside is empty, If I remove the "maskable" in the CardImage, the image shows again (but the image overflow the layout)... I guess something in my game hiding this mask, I launched the game, removed every gameobject exept for the canvas and the image is still hiding.
    To do the maskable I followed this videohttps://youtu.be/mhwGQ9XRBD8?t=321 from minute 5, but as I said, it works on an empty scene, but in my game something doesn't accept these maskable items. I'm sure that is something stupid that I'm missing up. I hope this is the correct section otherwise I repost that in the correct one.
     

    Attached Files:

  2. VKyuzel

    VKyuzel

    Joined:
    Mar 6, 2022
    Posts:
    21
    I found the problem... a class made for animation was hiding the image, to solve it I started to remove every GameObject until the image card was going to show up