Instance Method


Gets the value of a shader attribute.


func value(forAttributeNamed key: String) -> SKAttributeValue?



The attribute name.

Return Value

An attribute value object containing the scalar or vector value or nil if no such attribute exists.

See Also

Applying a Shader with an Effect Node

var shader: SKShader?

A custom shader that is called when the effect node is blended into the parent’s framebuffer.

var attributeValues: [String : SKAttributeValue]

The values of each attribute associated with the node's attached shader.

func setValue(SKAttributeValue, forAttribute: String)

Sets an attribute value for an attached shader.