
Light baking with Unity CLI
Baking lighting across multiple scenes usually means opening each one, waiting for the bake, and checking the same camera angles over and over. With Unity CLI, you can turn that whole routine into a single command you run from the terminal.
In this video, we'll explore a few of Unity CLI's built-in commands and show you how to write your own custom command in just a few lines of C#. Then we'll combine them into a workflow that bakes three scenes (lightmaps, light probes, reflection probes, and environment lighting). For each scene, it captures consistent camera views and builds an HTML contact sheet.
You'll learn how to:
✅ Connect to a running Unity Editor and browse its available commands
✅ Run built-in commands like lighting bakes and game view captures from the terminal
✅ Write a custom command using a static method and the CLI command attribute
✅ Chain commands into a repeatable bake-and-review workflow that's easy to call from scripts or AI agents.
🔗 Download the example scripts: https://on.unity.com/LightmapBaking_Discussions
🔗 Unity CLI documentation: https://on.unity.com/UnityCLI_Docs
[0:00] Introduction
[0:45] What is Unity CLI?
[1:15] Finding built-in commands
[1:42] Running built-in lighting commands
[3:02] Writing your first custom command
[3:50] Custom lighting workflow commands
[4:54] Three design decisions for custom commands
[6:00] Running the full workflow
[6:54] Reviewing the contact sheets
[7:43] Other baking commands
[8:03] Try it in your own project
_______________
Stay connected with us:
Games Twitter/X: https://x.com/unitygames
Instagram: https://www.instagram.com/unitytechnologies/
Discord: https://discord.com/invite/unity
Discussions: https://discussions.unity.com/
LinkedIn: https://www.linkedin.com/company/unity/
Facebook: https://www.facebook.com/unity3d.in/
Bluesky: https://bsky.app/profile/unity.com
Company Twitter/X: https://x.com/unity
#Unity #LightBaking #UnityCLI









![[2D 게임 개발 꿀팁 시리즈] 2D 게임에 3D 오브젝트 쉽게 사용하는 방법](https://img.youtube.com/vi/8ytJW1I6Agg/hqdefault.jpg)



![[2D 게임 개발 꿀팁 시리즈] 2D 배칭 조건](https://img.youtube.com/vi/5DstF95ojw0/hqdefault.jpg)













































































































































































































