Experimental: this API is experimental and might be changed or removed in the future.

XRCameraSubsystem.TryGetAverageBrightness

Switch to Manual
public bool TryGetAverageBrightness (ref float averageBrightness);

Parameters

averageBrightnessAn estimated average brightness for the environment.

Returns

bool Returns true if average brigthness was provided.

Description

Provides brightness for the whole image as an average of all pixels' brightness.