Unity Figma Importer
  • Getting Started
    • Figma Design Downloader
    • Figma Design
    • Unity Canvas Setup
  • Layout
    • Horizontal & Vertical Layouts
    • Grid Layout
  • Components
    • Text
    • Image
    • Button
    • Toggle
    • Slider
    • Scroll View
    • Input Field
    • Dropdown
    • Custom Component
  • Limitations
  • Bindings
  • Optimization
Powered by GitBook
On this page
  • Auto Horizontal Layout & Horizontal Layout Group
  • Auto Vertical Layout & Vertical Layout Group
  • Limitations

Was this helpful?

  1. Layout

Horizontal & Vertical Layouts

Horizontal and vertical layouts from Figma are imported with ease.

PreviousLayoutNextGrid Layout

Last updated 1 year ago

Was this helpful?

While importing layouts, Unity built in Layout Groups are used.

Auto Horizontal Layout & Horizontal Layout Group

Auto horizontal layouts are imported to Unity using built in Horizontal Layout Group. Desired & designed behavior of the auto layout in Figma is copied to Unity Horizontal Layout Group.

Children of auto layout frame in Figma are imported with Layout Element component to Unity.

Nodes with auto layouts in Figma may have "Hug", and child of a auto layout node may have "Fill" constraint. These behaviors are copied in Unity using "Content Size Fitter" for nodes with "Hug" constraint for example.

Auto Vertical Layout & Vertical Layout Group

Vertical Layouts are imported the same way as Horizontal Layouts the only difference is that Vertical Layout Groups are used instead of Horizontal Layout Group.

Limitations

"Wrap" mode on Auto Layouts and "Space Between" layout constraint on Auto Layouts in Figma are not yet implemented in Figma Importer.

Auto Horizontal Layout (Figma)
Horizontal Layout Group (Unity)
Child of Horizontal Layout Group
Figma Auto Horizontal Layout Constraints
Unity implementation of Layout Constraint "Hug"