Unity-UI-Rounded-Corners icon indicating copy to clipboard operation
Unity-UI-Rounded-Corners copied to clipboard

Problems with RenderTexture

Open ImanCol opened this issue 2 years ago • 2 comments

I am projecting multiple cameras to select Characters, each Camera projects each Player and their asset has allowed me to round the edge. But it happens that some objects have transparency in their textures. This makes the background visible, so half of the character can be seen half dark.

The problem comes from here: Blend SrcAlpha OneMinusSrcAlpha, One OneMinusSrcAlpha This enables the rounding function, but turning it off disables renderTexture.

Is there a way to use the RoundedCorners functionality removing that blend code to avoid the transparency of the objects?

ImanCol avatar May 04 '23 13:05 ImanCol

I believe I added that in #36 You could try reverting it and see if it helps your use case.

Jepplen avatar Sep 03 '24 07:09 Jepplen

I'm not sure what the problem was at the moment, but I think I used it for this menu. As far as I remember, although I managed to round the edges, it didn't work well when using rendertexture . I'll check to see what was happening in the next few days.

https://youtu.be/F9ApikBjt_I?si=iKIyLZxymt0pAsiI

ImanCol avatar Sep 03 '24 13:09 ImanCol