Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Can I define the shape of a mask with a material in a Scroll View game object?

Discussion in 'UGUI & TextMesh Pro' started by Deleted User, Jan 29, 2023.

  1. Deleted User

    Deleted User

    Guest

    Hey

    I was just curious if it's possible to define a mask in the "Viewport" game object with a material, instead of a texture/sprite. I tested it with a shader material I created (a star with a transparent background). And it doesn't seem to work. So I'm assuming UGUI doesn't support it, but just asking in case my assumption is wrong.

    (for clarity the Viewport game object I'm referring to is a child of the Scroll View game object you can create from the UI menu.)