setIntensity abstract method

void setIntensity(
  1. MapSceneLightsCategory category,
  2. double intensity,
  3. MapSceneLightsAttributeSettingCallback? callback
)

Set a new intensity for the light based on its category.

  • category The category of light for which the intensity is set.

  • intensity The light intensity value must be inside the range [0, 10]. The intensity value is clamped to this range. If the value falls outside its supported range, it will be adjusted to stay within the range. Note: When the intensity value is big, 3D objects might turn completely white because all the color channels could go over the limit of 1.0.

  • callback Optional callback that will receive the result of this operation.

Implementation

void setIntensity(MapSceneLightsCategory category, double intensity, MapSceneLightsAttributeSettingCallback? callback);