Skip to content
ManeFunctionPublic

About

A lazy-style TUI alternative to Unity Hub. Built on top of the official Unity CLI.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

lazyunity

A lazygit-style terminal interface for Unity projects and Editors, born of an urge to get rid of the slow, bloated, half-a-gig official Unity Hub. It replaces the Hub: you don't need to install the Hub at all.

brew install manefunction/tap/lazyunity
winget install ManeFunction.lazyunity
scoop bucket add manefunction https://github.com/ManeFunction/scoop-bucket && scoop install manefunction/lazyunity

lazyunity is a thin, fast front end for the official Unity CLI. Every change goes through the CLI, so lazyunity shares the Hub's project list and install location. Editors you open from it start signed in, without the Hub running.

Text version of UI
╭─[1]─Projects────────────────────────────────────────────────╮╭─[2]─Installed Editors - Releases────────────────────────────────────────────╮
│♥ Space Shooter  2h ago    6000.6.8f1             Linux      ││★ 6000.6.8f1      x86_64 Linux, Android, WebGL                               │
│♥ Neon Drift     5h ago    6000.6.8f1             Android    ││  6000.3.28f1 LTS x86_64 Linux, Android, WebGL                               │
│  Tiny Kingdoms  1d ago    6000.3.28f1            WebGL      ││  2022.3.62f1 LTS x86_64 Linux, Windows, Android, iOS                        │
│  Lighthouse VR  3d ago    6000.3.28f1→6000.6.8f1 Android    │╰──────────────────────────────────────────────────────────────────────1 of 3─╯
│  Puzzle Garden  6d ago    2022.3.62f1            iOS→Android│╭─[3]─Tools───────────────────────────────────────────────────────────────────╮
│  Old Platformer 3w ago    2022.3.62f1            Windows    ││Unity CLI                ready · 1.0.0                                       │
│  Ancient Thing  ✗ missing 2019.4.40f1            Linux      ││Account                  signed in as alex@example.com · enter to sign out   │
│                                                             ││License                  press enter to check                                │
│                                                             ││ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ │
│                                                             ││Default project folder   ~/Projects · enter to change                        │
│                                                             ││Editors folder           ~/Unity/Hub/Editor · enter to change                │
│                                                             ││Config file              ~/.config/lazyunity/config.yml · enter to edit      │
│                                                             ││ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ │
│                                                             ││OpenUPM CLI              ready · 5.0.8                                       │
│                                                             ││ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ ╌ │
│                                                             ││About                    lazyunity 0.1.0 · by Mane Function                  │
│                                                             ││Donate                   support lazyunity on GitHub Sponsors · enter to open│
╰──────────────────────────────────────────────────────1 of 7─╯╰──────────────────────────────────────────────────────────────────────1 of 9─╯
╭─Tasks──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ⠙ Installing 6000.7.0b8 + Web Build Support   [■■■■■■■■■■■■················]  42% download · Downloading Web Build Support                 │
│ ○ Installing iOS Build Support for 6000.6.8f1 queued                                                                                       │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Open: <enter> | Version: v | Platform: p | Pin: f | New: n | Add: a | Remove: d | Keybindings: ? | Cancel task: X          ● signed in · 0.1.0

Important

If something breaks after a Unity CLI update, run lazyunity --safe to start in safe mode and roll the Unity CLI back to a supported version.

Requirements

  • The compatible version of Unity CLI. If it is missing, lazyunity offers to install it with Unity's official installer (Tools tab, [3]). docs/UnityCLI.md lists every CLI command, flag and output field lazyunity relies on.
  • Linux, macOS or Windows. A terminal with colours and, ideally, mouse support.

Installation

Install lazyunity with brew, scoop or winget if you can: they also keep it up to date.

  1. brew (Recommended for Mac and Linux users)
    • Run brew tap manefunction/tap && brew trust manefunction/tap in your terminal to add my tap (app source), if you haven't already.
    • Run brew install lazyunity to install the app.
    • Verify the installation with lazyunity --version.
    • That's it: run lazyunity from any folder.
  2. Scoop (Recommended for Windows users)
    • If you don't have Scoop yet, install it as scoop.sh shows: one line in PowerShell.
    • Run scoop bucket add manefunction https://github.com/ManeFunction/scoop-bucket in PowerShell to add my bucket (app source), if you haven't already.
    • Run scoop install manefunction/lazyunity to install the app.
    • Verify the installation with lazyunity --version.
    • That's it: run lazyunity from any folder.
  3. WinGet (built into Windows 10 and 11)
    • Run winget install ManeFunction.lazyunity in PowerShell or cmd. Microsoft reviews every new version before WinGet shows it, so WinGet can be a few days behind the other options.
    • Verify the installation with lazyunity --version in a new terminal window.
    • That's it: run lazyunity from any folder.
    • Update it with winget upgrade ManeFunction.lazyunity.
  4. go install (for Go developers)
    • Run go install github.com/ManeFunction/lazyunity/cmd/lazyunity@latest. It needs Go 1.27.3 or newer and puts the app into $(go env GOPATH)/bin, which should be on your PATH.
    • Verify the installation with lazyunity --version.
    • Tools, like gup can keep your go apps installed that way updated.
  5. Ready-to-use binaries (manual installation)
    • Download the archive for your system from the GitHub Releases page: darwin is macOS, arm64 is Apple Silicon and Windows on ARM, amd64 is Intel and AMD.
    • Unpack it and put lazyunity (lazyunity.exe on Windows) into a folder on your PATH.
    • The binaries are not code-signed. On macOS, run xattr -d com.apple.quarantine lazyunity once, or macOS blocks the downloaded binary.
    • Verify the installation with lazyunity --version.
  6. From source (for advanced users)
    • Clone the repository or download the source code from GitHub.
    • Go to the folder with the code in your Terminal and run make build (Go 1.27.3 or newer).
    • Run bin/lazyunity --version to verify the build.

Layout

Panel What it shows
[1] Projects Your projects with the base information about them.
[2] Editors Installed Editors with their platforms, and Releases you can install. enter on an Editor shows its modules.
[3] Tools Tools and configs
Tasks (bottom) Progress of installs. The frame shows up only while something installs. Tasks run one at a time, but you can queue.

+ and _ switch the screen mode: full (every panel), projects (only Projects) and editors (Editors and Tools). Jumping to a panel that is not on screen (1, 2, 3) switches to the mode that shows it.

A new Unity version or platform for a project applies the next time you open it. Until then the change shows in yellow, as 6000.6.8f1→2022.3.62f1 or Linux→Android.

Keys

Everything follows lazygit where lazygit has an equivalent. ? shows the keys that work right now, and filters them as you type. You can rebind keys in config.yml.

Everywhere

Key
? keybindings menu
q, ctrl+c quit
tab, l, → / shift+tab, h, ← next / previous panel
1 2 3 jump to a panel (again: next tab)
[ ] previous / next tab
j k, ↓ ↑ next / previous item
, . (or pgup pgdn) previous / next page
< > (or home end) top / bottom
/ filter the list; esc clears it
+ _ next / previous screen mode (full, projects, editors)
R refresh
@ command log
: run a shell command
ctrl+o copy the selected path
X cancel the running task
ctrl+z suspend to the shell (not on Windows)
esc clear a filter, or leave an Editor's modules

Projects

Key
enter, space open in Unity
v change the Unity version (a list of installed Editors)
p change the build platform (the platforms installed for that Editor)
f pin or unpin
n new project (name, folder, version, template, options, git)
a add an existing project
P add or remove OpenUPM packages (needs the OpenUPM CLI)
d remove from the list, or delete the folder (asks twice)
s sort: last opened, name, Unity version
o / e open the folder / edit in a code editor
i project details
y copy the path, name or version
C clean caches (Library, Temp ...)
g git tools: git init, .gitignore, .gitattributes, YAML merge tool on or off

Editors, Installed Editors

Key
enter modules
a add modules
n install a new Editor
d uninstall
space set default
U update to the newest patch, when one is out (the row says "· update X available ·")
o folder
y copy

Modules of an Editor

Key
space, a, enter install
d remove

Releases

Key
enter, space install
/ filter by version, in the row at the bottom of the tab (searches every page of releases, not only the loaded ones)
ctrl+s release stream: Supported (the default), LTS, Beta, Alpha or All
o release notes

Anywhere in the Editors panel: C cleans the download cache: installers and partial downloads of interrupted installs. It shows the size and asks first, and it doesn't run while a task runs.

Configuration

config.yml lives in the same place as lazygit's config:

Platform Path
Linux ~/.config/lazyunity/
macOS ~/Library/Application Support/lazyunity/
Windows %LOCALAPPDATA%\lazyunity\
Any, with $XDG_CONFIG_HOME set $XDG_CONFIG_HOME/lazyunity/
Any, with --config-dir or $LAZYUNITY_CONFIG_DIR that directory

lazyunity only reads config.yml; what the interface remembers (pending choices, sort order) goes to state.yml next to it.

The first time you open config.yml from the Tools tab, lazyunity fills it with every setting, keybindings included, commented out and set to the default.

OpenUPM

lazyunity can add OpenUPM packages to your projects through openupm-cli.

  • Installing the CLI. The OpenUPM CLI row of the Tools tab installs it with npm, which needs Node.js. By default you get the official release from the npm registry. With openupm.repo set in config.yml, lazyunity clones and builds that repository (the official one or a fork) instead, which also needs git.

  • Updates. Like the Unity CLI row, the row says ready · <version> for the npm release and update available: <version> once a newer one is out. A build from a repository reads <version> · from <repo>@<branch> #<commit>, and the row offers an update whenever the branch has newer commits, even when the version did not change.

  • Packages. P in Projects opens the project's OpenUPM packages with some recommended packages, that can be removed with a config.

  • Adding any package. The field at the bottom of the list (tab, or down past the last package) takes a package name, such as com.example.package or com.example.package@1.2.0. enter looks it up in the OpenUPM registry.

  • New projects. With the CLI installed, n (new project) ends with a step with the same list. lazyunity adds the ticked packages before the Editor opens.

  • Your own packages. openupm.packages in config.yml adds packages to the list, in their own group, optionally pinned to a version:

    openupm:
      packages: [com.example.package, com.example.other@1.2.3]

Where the CLI comes from: the openupm block of config.yml sets it.

# openupm:                   # commented out: the Tools tab installs the official npm release
#   repo: https://github.com/openupm/openupm-cli   # set: clone, build and install from this git repo
#   ref: master              # a branch or tag to build; empty: the default branch

Git

g on a project opens Git tools. They need git on the PATH. If the project is in no repository, the popup offers git init in the project folder first and keeps the other items locked until then.

  1. Add .gitignore (1) writes a .gitignore into the project folder. It is based on GitHub's Unity.gitignore plus the IDE and OS templates.
  2. Add .gitattributes (2) writes a .gitattributes into the repository root:
    • * text=auto: the repository keeps LF line endings. Windows checkouts get CRLF, and git converts them back to LF on commit. .sh files always use LF; .bat, .cmd and .ps1 always use CRLF.
    • Textures, audio, video, 3D models, fonts, archives, libraries and LightingData.asset are marked binary, so git never diffs or merges them.
    • Scenes, prefabs, .asset and the other Unity YAML files are left to * text=auto, which converts line endings only for content that is text: an .asset can be binary even in Force Text mode (terrain data, NavMesh), and in Mixed or Force Binary mode any of them can.
  3. Enable / Disable YAML merge tool (3) sets up Unity's smart merge (UnityYAMLMerge), taken from the Editor the project uses:
    • A merge driver: git merge, rebase and pull merge scenes, prefabs and other Unity YAML files with it, without opening any window. When conflicts are left, or the Editor is gone, git writes its usual conflict markers and marks the file conflicted.
    • A merge tool: git mergetool (or git mergetool -t unityyamlmerge when you already have another merge tool) merges what it can and opens a fallback tool from Unity's mergespecfile.txt for the rest.
    • The settings go into the repository's own .git/config, never your global one. The lines that send Unity files to the driver go at the end of .gitattributes, between # >>> lazyunity and # <<< lazyunity comments. Disabling removes both.
    • When the project moves to another Unity version, lazyunity points the merge driver and tool at the new Editor the next time it lists the projects.
    • Commit .gitattributes, so git sends Unity files to the driver for your teammates too. Git never runs commands from a repository, so each teammate enables the tool once in their clone.

When a file is already there, items 1 and 2 ask whether to add only the lines it lacks (enter) or replace it (r). Lines added to a .gitattributes go before your own rules, after its leading comments, so that your rules still win; a pattern the file already sets is left alone.

New projects. With git installed, n (new project) has a git step with four checkboxes: Initialize a git repository and the three items above, which stay locked while the first is unticked. If the new project's folder is already inside a repository, the first box starts unticked and the files go into that repository.

Safety

  • lazyunity asks before it installs, removes or deletes anything. Deleting a project's folder asks twice, and lazyunity refuses to delete the home folder or anything that is not a Unity project.
  • Quitting during a task asks first.
  • lazyunity never writes the Hub's files itself. It asks the CLI.

Notes

  • Editors older than 2019.1, and any Editor when the CLI is missing, open directly. That works, but the Editor starts signed out.
  • To move a project to Unity 6.7 or later, lazyunity runs unity projects upgrade, because unity open refuses to upgrade it.

Special thanks

Thanks to the whole lazygit team for the inspiration and for a great Git client 🤎

Author

lazyunity is made by Ilia Petrov-Komotskii (Mane Function). If it saves you time, you can support it on GitHub Sponsors.

Repository info

This repo follows the Conventional Commits specification.

GitHub release (latest by date) GitHub All Releases GitHub Sponsors

About

A lazy-style TUI alternative to Unity Hub. Built on top of the official Unity CLI.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages