Instance Method

value(forAttributeNamed:)

The value of a shader attribute.

Declaration

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

Parameters

key

The attribute name.

Return Value

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

See Also

Setting a Node's Unique Attributes for a Shader

var attributeValues: [String : SKAttributeValue]

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

Deprecated
func setValue(SKAttributeValue, forAttribute: String)

Sets an attribute value for an attached shader

Deprecated