There is any free size FairyGUI mode? #1886
Closed
paulocoutinhox
started this conversation in
General
Replies: 2 comments
-
I think that |
Beta Was this translation helpful? Give feedback.
0 replies
-
I will put here the solution if anyone need in future: void YourWindow::onInit()
{
setContentPane(UIPackage::createObject("Main", "GameWindow")->as<GComponent>());
setSize(Global::getInstance().safeArea.size.width, Global::getInstance().safeArea.size.height);
} Obs: The code |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
There is any free size FairyGUI mode?
I want that my window use custom available size, but it always draw in aspect ratio from FairyGUI design tool.
Everything in my FairyGUI file has relation, but when i force other size than keep aspect ratio, it stretch all components.
In my above screenshot, i want show that i need increase the height only, but keep relation between components.
There is any "free size" mode that keep elements relations? Im using scroll, but scroll always have a limit that is the window area.
Thanks for any help.
Beta Was this translation helpful? Give feedback.
All reactions