Sets an attribute value for an attached shader.
SDKs
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- tvOS 10.0+
- watchOS 3.0+
Framework
- Sprite
Kit
Declaration
func setValue(_ value: SKAttribute Value, forAttribute key: String)
Parameters
value
An attribute value object containing the scalar or vector value to set in the attached shader.
key
The attribute name.