gilzoide/unity-flex-ui
关于
Flexbox layout support for Unity UI using the Yoga layout engine
游戏与模拟器可以做什么
- Supported platforms: Windows, Linux, macOS, iOS, tvOS, visionOS, Android and WebGL
- There is a single component you need: FlexLayout
- Live updates in edit mode.
- FlexLayout only lays out children that also have a FlexLayout component, so you can still use anchors and other Layout Elements where necessary.
实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Flex UI
Flexbox support for Unity UI using the Yoga layout engine.

Features
- Supported platforms: Windows, Linux, macOS, iOS, tvOS, visionOS, Android and WebGL
- There is a single component you need: FlexLayout
- Live updates in edit mode.
FlexLayoutonly lays out children that also have aFlexLayoutcomponent, so you can still use anchors and other Layout Elements where necessary.- Set additional layout engine configurations per object using FlexLayoutConfig assets.
How to install
This package is available on the openupm registry and can be installed using the openupm-cli:
openupm add com.gilzoide.flex-ui
Otherwise, you can install directly using the Unity Package Manager with the following URL:
https://github.com/gilzoide/unity-flex-ui.git#1.2.4
How to use
- Add a
FlexLayoutcomponent to the UI object that will layout its descendants (children, grandchildren, etc...) - Add
FlexLayoutcomponents to the descendants that will be layed out by the rootFlexLayouts. - Configure the layout properties as necessary and see all changes live in edit mode.
- Enjoy 🍾
All properties can be set in the Inspector as well as by code and the layout will be automatically refreshed. You can set several values in code and the layout will be calculated only once per frame.
To learn more about the properties supported by FlexLayout, check out the Yoga documentation in the "Properties" section: https://yogalayout.dev/docs
You can also set the layout engine configurations by creating FlexLayoutConfig assets and setting them to FlexLayout's "Configuration" property.
These configurations include toggling of experimental features and controlling how Yoga rounds floating point values using the "Point Scale Factor" property.
探索相关项目
加载中…