[BUG] CameraManager: Instantiate called every LateUpdate frame #5

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

🔴 Critical Bug

File: CameraManager.cs

Instantiate(CameraPrefab) is called every LateUpdate when the reference is null, creating infinite GameObjects every frame — this is a major performance/memory leak bug.

Fix: Move initialization to Start() or Awake() with a proper null check guard so it only runs once.

## 🔴 Critical Bug **File:** `CameraManager.cs` `Instantiate(CameraPrefab)` is called every `LateUpdate` when the reference is null, creating infinite GameObjects every frame — this is a major performance/memory leak bug. **Fix:** Move initialization to `Start()` or `Awake()` with a proper null check guard so it only runs once.
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#5
No description provided.