lysandr
(Joey)
September 10, 2022, 12:04am
#1
I’m trying to make sure these descendant frames do not render, so naturally I attempted to utilize ClipDescendants property of 2 of it’s parents. And neither is applying properly.
Rotation set at 30
Rotation set at 1
Rotation set at 0
Any rotation value above 0 causes it to completely circumvent ancestor ClipDescendants. And I’m not really sure what to do. Is this a bug or intended?
Any help?
2 Likes
lysandr
(Joey)
September 10, 2022, 12:08am
#2
Just noticed that it is indeed a bug and has yet to be fixed for 7+ years. Nice.
Reproduction Steps
Create a Frame with any Size and Position. Turn the Frames ClipDescendants to Active/True. Create a Second Frame inside of the Previous Frame, Position this frame Outside or Half Outside of the Parent Frame. Rotate the Second Frame to anything above or below 0.
For My Example:
ParentFrame.Position = UDim2.new(0.5,0,0.5,0)
ParentFrame.Size = UDim2.new(0.5,0,0.5,0)
ParentFrame.AnchorPoint = Vector2.new(0.5,0.5)
ParentFrame.ClipDescendants = true
SubFrame.Position = UDim2…
Please fix this.
Also, if this has already been reported, I tried finding it but couldn’t.
Not supported because the current frames aren’t coded to be sliced at an angle.
I would quote Zeuxcg but I can’t find the quote either.
It’s not a bug, it’s intended behavior. Roblox has no plans on supporting this anytime soon.
cc @Tiffblocks
Been well over 4 years since this request was made, over 7 years since the first request for this and over a year with no further word, and still not implemented how hard can it possibly be?
All these awesome UI features like UICorner, UIStroke, Richtext, all (I’d imagine) would be a lot more complex to add. But simple clipping of rotated items still isn’t here? Hell, since the introduction of CSG, I’d imagine something like this, which is only 2D, would be in…
I’m deciding to post this here so people who are still looking for a solution can find it here, as I did not find a solution myself without experimenting.
You can use CanvasGroup instead of a normal frame, I noticed that it still clips descendants even when rotated, although it doesn’t have an option to disable this behavior.
6 Likes