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

Question UI Video with mask?

Discussion in 'UI Toolkit' started by Kloper, Dec 2, 2022.

  1. Kloper

    Kloper

    Joined:
    Jan 28, 2014
    Posts:
    93
    I cant seem to find a good solution to display a video in the UI with a mask.
    Is it even possible to use an image with transparency or black//white image as a mask over video in the UI?
     
  2. ontrigger

    ontrigger

    Joined:
    Oct 31, 2016
    Posts:
    24
    Masking elements isn't possible in UI Toolkit. You'll have to use UGUI for that.
     
  3. Kloper

    Kloper

    Joined:
    Jan 28, 2014
    Posts:
    93
    Sounds good too.. do you have a keyword or something I can look for in order to do that?
    Maybe I am looking for the wrong keywords but simple UI Video Mask didnt really got me to a solution.
     
  4. ontrigger

    ontrigger

    Joined:
    Oct 31, 2016
    Posts:
    24
    https://github.com/mob-sakai/SoftMaskForUGUI
     
  5. Kloper

    Kloper

    Joined:
    Jan 28, 2014
    Posts:
    93