Skip to content

Latest commit

Β 

History

History
84 lines (51 loc) Β· 2.36 KB

README.md

File metadata and controls

84 lines (51 loc) Β· 2.36 KB

Figma Auto Layout for Unity

Figma Auto Layout is a Unity Editor package that transforms Figma designs into structured Unity UI prefabs. It preserves anchors, hierarchy, naming, and even adds specific components. This tool dramatically speeds up UI layout workflows in Unity.


✨ Features

  • Import Figma frames and pages
  • Build UI prefabs using a custom Layout Pipeline
  • Download assets from Figma (now only .jpg)

πŸ“† Installation

πŸ”— Git (recommended)

Edit your Unity project's Packages/manifest.json and add:

"com.hugglebit.figmaautolayout": "https://github.com/chav0/FigmaAutoLayout.git?path=FigmaAutoLayout"

🧩 Unity Editor (manual)

You can also install this package directly from the Unity Editor:

  1. Open Window β†’ Package Manager
  2. Click the + button β†’ Add package from Git URL...
  3. Paste this URL:
https://github.com/chav0/FigmaAutoLayout.git?path=FigmaAutoLayout

πŸ›  How to Use

  1. Open the tool via Tools β†’ UI β†’ Figma

  2. Enter your Figma Personal Access Token and File URL

  3. Set:

    • UI Prefab path
    • UI Layer ID
    • Layout Pipeline (ScriptableObject)
    • Component List (ScriptableObject)
  4. Click Parse Figma File to load available pages/frames

  5. Select a page and frame, then click Create Prefab


πŸ” Authentication

This plugin currently requires a Figma personal access token.

You need to create it in the settings in Figma: Settings β†’ Sequrity β†’ Personal access tokens β†’ Generate new token.

OAuth authentication may be added in future versions.


πŸ“š Dependencies

This package uses:

  • com.unity.nuget.newtonsoft-json
  • com.unity.textmeshpro

They will be installed automatically by Unity Package Manager.


🐱 Author

Made with love by Hugglebit. Feel free to contribute, suggest features, or report issues at: https://github.com/chav0/com.hugglebit.figmaautolayout

Buy Me A Coffee