Skip to content
프로젝트

소개

Flexbox layout support for Unity UI using the Yoga layout engine

게임 및 에뮬레이션

이 수치를 측정하는 방법

What you can do

  • 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.

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Flex UI

openupm

Flexbox support for Unity UI using the Yoga layout engine.

Flex Layout demo

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.
  • FlexLayout only lays out children that also have a FlexLayout component, 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

  1. Add a FlexLayout component to the UI object that will layout its descendants (children, grandchildren, etc...)
  2. Add FlexLayout components to the descendants that will be layed out by the root FlexLayouts.
  3. Configure the layout properties as necessary and see all changes live in edit mode.
  4. 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.

관련 프로젝트 살펴보기

불러오는 중…