Skip to main content

Description

LckQualityConfig is a ScriptableObject that defines capture quality presets (resolution, bitrate, framerate) for different platforms and devices. It holds base options for Android and Desktop, plus optional per-device overrides for specific Android hardware. At runtime, GetQualityOptionsForSystem() automatically detects the platform and device model to return the correct set of quality options.

Usage

Use LckQualityConfig to give users quality presets that match their hardware. Assign it to LCKCameraController in the Inspector — the camera controller’s quality selector will populate from it automatically.

References

Fields

FieldTypeDescription
BaseAndroidQualityOptionsList<QualityOption>Base quality options for Android devices.
AndroidOptionsDeviceOverridesList<QualityOptionOverride>Device-specific override options for Android devices.
DesktopQualityOptionsList<QualityOption>Quality options for desktop platforms (Windows, Linux, macOS).

Methods

MethodReturnsDescription
GetQualityOptionsForSystem()List<QualityOption>Returns the appropriate quality options for the current runtime platform. On Android, may return device-specific overrides if available; otherwise, returns base Android options. On desktop platforms, returns desktop options. Throws NotImplementedException if the platform is unsupported.

See Also