Class UnityGameCameraSettings
ScriptableObject configuration for the Unity GameCamera service: whether to auto-discover scene cameras, the default two-player split-screen layout, whether the service manages the UnityEngine.AudioListener, and which layers auto-discovery should ignore.
Namespace: Serenity.GameCamera.Infrastructure.Settings
Assembly: Serenity.UnityGameCamera.Infrastructure.dll
Syntax
public class UnityGameCameraSettings : ScriptableObject, IGameCameraSettings, IFoundationSettings
Constructors
UnityGameCameraSettings()
Declaration
public UnityGameCameraSettings()
Fields
AutoDiscoverCameras
Declaration
public bool AutoDiscoverCameras
Field Value
| Type | Description |
|---|---|
| bool | Whether the service should auto-discover cameras present in the scene instead of relying only on explicit registration. |
DefaultTwoPlayerLayout
Declaration
public SplitScreenLayout DefaultTwoPlayerLayout
Field Value
| Type | Description |
|---|---|
| SplitScreenLayout | Default split-screen layout used when exactly two players are active and no explicit layout was requested. |
ExcludeLayerMask
Declaration
public LayerMask ExcludeLayerMask
Field Value
| Type | Description |
|---|---|
| LayerMask | Layers excluded from automatic camera discovery. |
Guid
Declaration
public string Guid
Field Value
| Type | Description |
|---|---|
| string | GUID for this settings asset. |
Id
Declaration
public string Id
Field Value
| Type | Description |
|---|---|
| string | Unique identifier for this settings asset. |
ManageAudioListener
Declaration
public bool ManageAudioListener
Field Value
| Type | Description |
|---|---|
| bool | Whether the service should manage which camera owns the audio listener. |