mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
1.91k stars 257 forks source link

RawImage can't display image when used with VideoPlayer+RenderTexture #124

Closed BenJoe72 closed 3 years ago

BenJoe72 commented 3 years ago

Description Raw Image doesn't show texture when using with VideoPlayer.

To Reproduce Steps to reproduce the behavior:

  1. Add a Raw Image to a canvas
  2. Add a video player
  3. Create a RenderTexture asset and assign it to the output of the video player an the input of the raw image
  4. Add SoftMaskable component to the Raw Image and create and alpha texture for the SoftMask on parent object
  5. The video will not render on the texture, instead it's just white

Expected behavior The video should be visible and

Environment (please complete the following information):

BenJoe72 commented 3 years ago

Sorry, might've been too quick to jump the gun and didn't realise that there was another regular unity mask on the parent container. Removing that helped with the issue and now the texture displays correctly with soft masking.