TL;DR
UI Instances beneath a mask (in this occasion, an image of a rectangle) are visible only inside the image, if you didn’t follow me look at just the images attached to this thread. You’ll understand what I mean.
Is this a thing yet?
Alright so, I’m pretty sure this isn’t a roblox feature yet but knowing the developers out there, some must have cracked this issue out through a smart method of sorts.
If you don’t know what an inverse/reverse UI mask is (and I could be wrong here since I don’t know the official name for this issue) and can’t be bothered to search it up, I’ll provide you with some easy to follow images and a tiny novel for you to enjoy. (I am not writer though)
Prerequisites: Don’t be on light mode.
You passed the prerequisites with flying colors? Good.
Chapter 1, obtain your mask.
Say you have this hollow rectangle, with perfect edges, so pristine!
Perfect for what you need, maybe a logo outline, who knows? The sky’s the limit.
You want to add some color to it but keep the hollow-ness of the square, how about a red stripe? That sounds nice.
Chapter 2, so you actually decided to embark on this journey after all…
Let’s create a Frame
with a BackgroundColor
value equal to (255, 0, 0)
, it’s anchor point being (0.5, 0)
with a position of (0.5, 0, 0, 0)
and a size of (0.1, 0, 1, 0)
Gosh darn! That doesn’t look right.
The frame is trespassing the image! You want to keep the inside hollow… but how?
Chapter 3??? honestly I wish I knew how to do this…
An unknown developer is produced from thin air, you forgot TeamCreate on!
With a silent shift of UI properties and some black magic the stranger gets to work…
He assists you with your dilemma, and restricts the frame to be visible only within the ImageLabel’s Image.
Your wishes have been granted, the rectangle, more perfect than ever is ready to be used for your development needs.
The stranger bids farewell before you can ask him of his ways.
You remain in awe as that you cannot understand what in tarnation this person just did. Studying the UI yields no results as that you cannot comprehend his craftsmanship.
Did you enjoy this? I hope so.
I’m no writer but I wanted to break the monotony of the forum’s technicality with a tiny fictional story. If you didn’t follow, chapter 3’s result is what I can’t do and need help with.
So is there a way to apply this?
Apologies in advance for my bad formatting, I haven’t posted in the forums in a while and this post is seriously begging to be struck down by the moderators as to how it’s laid out in a novel style.
If anyone knows how to do this please comment on this thread of your method as explicitly as possible with clear instructions.