Set character sub light color||doc135712

September 20, 2022

Format

 GameSettings:setActorSubLightColor(color) 

Description

Sets the color of the character's sublight. The character sub-light is the auxiliary light of the character's main light. It is generally used to outline the outline of the character or to compensate the details of the dark part to show the texture of the shadow part of the character. The light intensity is weaker than that of the character's main light.


Parameters

Variable name type Description
color Vector3 light color value


Code Samples

Blockman.Instance().gameSettings:setActorSubLightColor({x=0.5,y=0.5,z=0.5})
print(Blockman.Instance().gameSettings:getActorSubLightColor())