Namespace Serenity.UnityGameCamera.Tests.Infrastructure
Classes
UnityGameCameraServiceDiscoveryTests
Tests for UnityGameCameraService auto-discovery: inactive cameras are found,
render-to-texture and UnityGameCameraExclude-marked cameras are skipped, and
explicit RegisterCamera bypasses the exclusion marker.
UnityGameCameraServiceRegistryTests
Tests for UnityGameCameraService's camera registry: register/unregister and
lazy dead-camera pruning. Ambient scene cameras are disabled for the duration of each test
(mirroring UnityCameraUtilsTests) so depth/registry assertions are not skewed.
UnityGameCameraServiceSplitScreenTests
Tests for UnityGameCameraService split-screen: layout-driven UnityEngine.Camera.rect assignment, recalculation on unassign, manual per-player overrides, and restoring full rects on deactivation.
UnityGameCameraServiceSwitchTests
Tests for UnityGameCameraService exclusive active-camera switching: disabling only the Camera component (never the GameObject), override precedence, revert-to-depth on clear, the UnityEngine.Camera.main fallback, and opt-in AudioListener management.
UnityGameCameraSwitchTriggerComponentTests
PlayMode tests for UnityGameCameraSwitchTriggerComponent, driven by real trigger messages and the real UnityGameCameraService (same fixture shape as UnityGameCameraServiceSwitchTests): entering the volume switches exclusively to the target camera, leaving it makes the camera that was active on entry active again when the author asked for that, and a project without the Game Camera module gets one warning instead of an exception. Two volumes that switch to the same camera share it: it stays until the last of them is empty. A volume torn down with a visitor inside hands its camera back, and a rig tagged on its root leaves only when its last collider does. A visitor destroyed or switched off inside the volume sends no exit in 3D, so the volume notices it within a few fixed updates and counts it as having left. A release that keeps the camera switched still remembers what was true before the first switch.