[BUG] MainCameraInstance: Missing DontDestroyOnLoad causes camera loss on scene transition #8

Closed
opened 2026-03-12 00:02:29 +00:00 by lavarius · 0 comments
Owner

🔴 Critical Bug

File: MainCameraInstance.cs

Camera singleton is destroyed on scene transition, breaking all systems that reference it (e.g. AddCameraToStack, MovementManager).

Fix: Add to Awake():

DontDestroyOnLoad(gameObject);
## 🔴 Critical Bug **File:** `MainCameraInstance.cs` Camera singleton is destroyed on scene transition, breaking all systems that reference it (e.g. `AddCameraToStack`, `MovementManager`). **Fix:** Add to `Awake()`: ```csharp DontDestroyOnLoad(gameObject); ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lavarius/ProjectOverlay#8
No description provided.