Skip to main content

SpotLight

Inherits from DynamicInstance

SpotLight is a source of light emitting in a specific direction and angle that can be placed in the world.


Summary

Properties


Properties

Angle

SpotLight.Angle: float

Specifies the angle of the spotlight.


Brightness

SpotLight.Brightness: float

Specifies how bright/intense the light is.

Brightness should ideally be between 0-1

Color

SpotLight.Color: Color

Specifies the color of the light.


Range

SpotLight.Range: float

Specifies how far out the light can reach.


Shadows

SpotLight.Shadows: bool

Specifies whether this light emits shadows or not.

Having many lights with shadows enabled will cause a massive hit in performance. Consider minimizing the amount of lights with shadows to ensure every player is enjoying your place with minimal framerate issues.