This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

XRCameraSubsystem.TryGetAverageBrightness

Declaration

public bool TryGetAverageBrightness(ref float averageBrightness);

Parameters

averageBrightness An 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.