CameraClaimer
A class in Root.Township, the global namespace.
Client debug helper for scenes without a player: keeps one camera active and lets F3 cycle through every camera with this component. Turns itself off once a PlayerController exists or on a headless build.
- Listed in Global namespace: C to D
- Inherits or implements
MonoBehaviour - Attributes
RequireComponent
Constructors
| Member | What it is |
|---|---|
CameraClaimer() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
4 private and internal fields
| Member | What it is |
|---|---|
private static readonly List<CameraClaimer> all | Every CameraClaimer that has started. Destroyed ones are removed when F3 is pressed. |
private Camera checkCamera | The Camera on this object. |
private static CameraClaimer current | The claimer whose camera is active now. |
private static CameraClaimer oldCurrent | The current claimer as of the last frame, so F3 is ignored the frame the current one changes. |