The ambient color of the light.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
var ambientColor: UIColor { get set }
var ambientColor: NSColor { get set }
Discussion
The alpha value of the color is ignored. The default color is black, meaning that the light does not have an ambient component. The ambient component of the light is not affected by the light’s falloff
property, nor is it affected by any normal map (normal
) on the sprite node.