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

Raw Image UGUI Masking Problem

Discussion in 'UGUI & TextMesh Pro' started by AtahanOzturk, Jul 7, 2020.

  1. AtahanOzturk


    Aug 18, 2015

    For a game I'm making I'm using the new DOTS system to handle drawing what usually would be sprites using a particle shader and a texture with UV coordinates. However this means when using the regular UI to display the same items I am forced to use the RawImage component instead of Image, and as you can see in the picture, it doesn't work with masks.

    Are there workarounds to this? Should I write custom shader code? What would the performance hit be?
  2. Hosnkobf


    Aug 23, 2016
    I did a quick test - for me raw images work with masks without problem (both, Image Masks and RectMask2D).
    Maybe it has to do with some import settings of the textures?