Hi all,
I just ran into a strange issue and wanted to check if you get the same results, is it a bug or is there something that I am overlooking?
I am building my UI panel and I wanted to add an outline to one of the image elements. This always works fine, but I have never used it before in combination when using a render texture on the image. Here’s the situation:
- Create image ui element and add the Outline script to it.
- Set image color to black (or anything other than white) and set the outline color to white and enough width to clearly see it.
- The image should appear correctly, but the moment a material that uses Render Texture is added to the Image component, the Outline color turns black for me, and no longer responds to the color changes at all. I can change the width and height and that works, but it’s always stuck on black?
- Remove the Render Texture material and the outline should come back to normal again.
Has anyone encountered this before and is it something that I am doing wrong or a bug that I should report?
Thanks!