Quick answer: Add CinemachineConfiner2D (not the legacy CinemachineConfiner). Bounding Shape: PolygonCollider2D covering allowed area. Damping = 0. Click Invalidate Bounding Shape Cache after edits.
2D camera leaves the world bounds at the corners. The legacy Confiner doesn’t account for camera size; Confiner2D does.
The Symptom
Camera shows void/skybox at room corners or after PolygonCollider2D edits.
The Fix
Vcam → Add Extension → CinemachineConfiner2D
Bounding Shape 2D: PolygonCollider2D (room outline)
Damping: 0
Slowing Distance: 0
→ Invalidate Bounding Shape Cache // click after collider edits
Confiner2D shrinks the bounding polygon by camera half-size, then clamps the camera point inside that shrunk poly. Damping smooths approach but allows brief overshoot.
Verifying
Pan camera to corner. Camera stops cleanly at the edge with no void visible. Resize collider, invalidate cache, resize-clamps update.
“Confiner2D. Damping zero. Cache invalidated. Camera stays in.”
Related Issues
For Cinemachine impulse, see impulse. For StateDrivenCamera priority, see priority.
Confiner2D. Cache fresh. Camera stays.