Instance Property


The diffuse and specular color of the light source.


iOS, Mac Catalyst, tvOS, watchOS
var lightColor: UIColor { get set }
var lightColor: NSColor { get set }


The default value is white.

If you are using custom shaders, you can substitute an SKUniform object instead.

See Also

Configuring the Lighting Properties

var ambientColor: UIColor

The ambient color of the light.

var shadowColor: UIColor

The color of any shadow cast by a sprite.

var falloff: CGFloat

The exponent for the rate of decay of the light source.