Set key light color||doc135701

September 20, 2022

Format

 GameSettings:setMainLightColor(color) 

This function is only accessible on the client side

Description

Sets the color of the key light. The main light is the main light source in the scene. It is usually used to illuminate the main objects in the scene and the surrounding area, and the light intensity is large.


Parameters

Variable name type Description
color Vector3 main light color


Code Samples

Blockman.Instance().gameSettings:setMainLightColor({x=0.5,y=0.5,z=0.5})