무엇을 찾고 계신가요?
Unity Platform

Light Baking Public C# API

Apr 2, 2025
Planned
Safe harbor statement

The following is intended for informational purposes only, and may not be incorporated into any contract. No purchasing decisions should be made based on the following materials. Unity is not committing to deliver any functionality, features or code. The development, timing and release of all products, functionality and features are at the sole discretion of Unity, and are subject to change.

How to share roadmap feedback

If you have accepted to use functional cookies and logged in using your Unity ID at the top right of the page, then sharing feedback is as simple as clicking a card below, selecting a topic’s importance, adding your point of view, and submitting. If you prefer not to accept functional cookies or log in, you will be prompted to enter an email address and validate it, so we know how to reach out when the topic evolves. For more information read the Feedback and privacy terms.

Summary

Baking lighting data is currently tied to the concept of GameObjects in scenes, which limits the Editor’s capabilities for scalable, modular & code-driven light baking workflows.

Use Case / Intended Outcome

With the Light Baking Public C# API, we provide a robust, side-effect free, and supported C# API. This lets creators define the inputs that affect a GI bake (e.g. Meshes, Transforms, Materials, Lights etc) and the outputs to generate (e.g. lightmaps and/or light probes and their individual components like irradiance, directionality, occlusion, octahedral depth etc.).

Additionally, several users will be able to use the API concurrently without state leaking through.

Some example use cases:

  • Create input data procedurally and use it in the API
  • Extract baked sky occlusion data and use this data for your projects
  • Write baked output directly to GPU memory, without touching disk
  • Write baked output data to your own data structure
  • Pass baked output data for further processing in a custom system
Help us deliver the deliver that matter to you. Let us know how important is this for you.
By submitting you agree to the Unity’s feedback terms and privacy policy.
Discover upcoming updates and share your feedback