This page describes how we handle visual transitions during content loading.
Key Components
MainCamera Prefab
The MainCamera prefab (Assets/Prefab/MainCamera) includes:
- FadeManager prefab from
io.kanda.graphics package
- Handles fade effects on the player camera
- Coordinates with the content loading system
Place this in any session or lobby scene that you want to have default camera behaviour.
ContentLoadTransition Prefab
The ContentLoadTransition prefab (Assets/Prefabs/ContentLoadTransition):
- Creates a loading environment while content loads
- Manages fade effects before content activation
- Automatically cleans up loading visuals when content is ready
Place this prefab in your session scene to have content loading transitions.
How It Works
- When content loading begins, the
ContentLoadTransition prefab initializes
- The prefab displays a loading environment while content loads in the background
- Once content is ready, the system initiates a fade via the
FadeService
- The content scene activates during the fade
- Finally, the system fades back in to reveal the loaded content
Best Practices
- Use the
MainCamera prefab for default fade handling
- Use the
ContentLoadTransition prefab for default content loading transitions