Hi all. I'm creating a simple 2D top down game and I have a question
My game has fully white UI, and all the objects in the scene are also white. When the white object moves behind the UI, the player cannot see the UI because it has the white background
I want to make the following:
If UI gets covered by another object, it goes black only in those areas where it's being overlapped. I thought of making two versions of UI (one white and another black), so when the white gets in contact, it clips and we see black underneath it, which will be under the white UI but over all the objects
I'm not sure how to create something like that. Also keep in mind that most of objects are being instantiated via the code, so the solution with clip children doesn't seem to work here. I will appreciate greatly if you know how to make it and share it here!