ICameraManager Interface
Definition
Namespace: Brine2D.Rendering
Manages multiple cameras for different viewports \(gameplay, minimap, split\-screen, etc\.\).
Derived
↳ CameraManager
| Fields | |
|---|---|
| MainCameraName | The well-known name of the primary/main scene camera. Used by SceneManager when registering the scene camera and as the default value for CameraFollowComponent.CameraName. |
| Properties | |
|---|---|
| MainCamera | Gets the primary/main camera \(the camera registered under [MainCameraName](MainCameraName.md 'Brine2D\.Rendering\.ICameraManager\.MainCameraName')\). To set the main camera, use RegisterCamera\(string, ICamera\) with MainCameraName. To clear it, use RemoveCamera\(string\) with MainCameraName. |
| Methods | |
|---|---|
| ForEachCamera<TState>\(TState, Action<TState,ICamera>\) | Iterates all registered cameras without boxing the dictionary enumerator. The generic TState parameter avoids closure allocations. |
| GetAllCameras() | Gets all registered cameras. |
| GetCamera\(string\) | Gets a camera by name. |
| HasCamera\(string\) | Checks if a camera with the specified name exists. |
| RegisterCamera\(string, ICamera\) | Registers a named camera. |
| RemoveCamera\(string\) | Removes a camera by name. |