⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

Lighting.SourceAvailable

static bool SourceAvailable(LightingSource source)

Check if a lighting source is supported on this device, without switching to it! Manual is always available, while world needs light estimation support from the XR runtime, and may still need a permission the user can decline at RequestSource time.

   
LightingSource source The lighting source to check on.
RETURNS: bool True if the source can be used on this device.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!