Button center in Frame bug

Hello,
I want to create a mute button but it does not center in the stroke frame.
The position and size are on scale.
I tryed deleting the UIAspectRationConstraint but another problem appears: the stroke and the button becomes too thin:

With UIAspectRatioCons:

Without UIAspectRatioCons:

set the AnchorPoint of the button to 0.5, 0.5 and set the Position to 0.5, 0, 0.5, 0

AnchorPoint is already on 0.5, 0.5 and position is already on 0.5, 0, 0.5, 0 too but it’s still not working…

1 Like

Look, sometimes it’s too big and sometimes it’s too small… :thinking:

Your text button should be a child (place inside of) of your “Stroke” frame… this way its sizing and scale and position will follow relative to its parent, the “Stroke”. This will also help your UIConstraints follow the parent.

The way you have it set up now, it is a child of “Mute” screengui and so the constraints and the scaling and position will all follow that element and not the “Stroke” frame.

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.