Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI WIdget prefab with CanvasScaler is inconsistent when dragged into Scene window #3009

Open
alcoranpaul opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working ui
Milestone

Comments

@alcoranpaul
Copy link
Contributor

Issue description:

I have a Widget prefab with UICanvas as its root. the first child of it is a CanvasScaler.
With these properties:
image

Then I added a container control, called Building Buttons,with bounds and pivot as Horizontal Stretch Bottom. As seen below,
image

I assumed that the Widget prefab editor and the Game scene (after adding it into the Scene window) it will be a 1:1 ratio. However, it is not the case.

As you can see below, the Building Buttons is smaller than what was shown in the Widget editor. Even though it has the same Transform properties.
image

Game View port size is 1920x1080

Work-around
One solution is to just re-edit the Widget prefab in the Game Scene and just apply the changes to the prefab.

  • That is what I did with the button on the top left

Flax version:
Master & 1.9.6605

@mafiesto4 mafiesto4 added bug Something isn't working ui labels Oct 22, 2024
@mafiesto4 mafiesto4 added this to the 1.10 milestone Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui
Projects
None yet
Development

No branches or pull requests

2 participants