Main

Main (Class)

Main entry point for the Unity backend integration. Handles initialization, update loop, and synchronization with Unity's lifecycle. Supports both standard Unity and Universal Render Pipeline (URP) configurations.

Static Members

unity
project: Project

The Ceramic project instance.


unity
monoBehaviour: unityengine.MonoBehaviour

Unity MonoBehaviour instance for coroutines and Unity API access.


unity
audioMixer: unityengine.AudioMixer

Unity AudioMixer for global audio processing.


unity
sync(monoBehaviour: unityengine.MonoBehaviour, audioMixer: unityengine.AudioMixer): Void

Synchronizes with Unity components and initializes Ceramic if needed. Called from Unity's C# side to establish the connection.

Name Type Description
monoBehaviour unityengine.MonoBehaviour Unity MonoBehaviour for lifecycle hooks
audioMixer unityengine.AudioMixer Unity AudioMixer for audio processing

unity
main(): Void

Main initialization function for the Ceramic Unity backend. Sets up project settings, initializes the app, and starts the update loop.


unity
regularUpdate(): Void

Regular update for Universal Render Pipeline. Handles screen and input updates separately from rendering.


unity
renderPassUpdate(): Void

Render pass update for Universal Render Pipeline. Called during the render pass to update and render the app.


unity
update(): Void

Main update loop for the Ceramic app. Processes input, updates app state, and triggers rendering. Includes error handling to mark critical errors.

Private Members

Metadata

Name Parameters
:hxGen -