Contents

value(forAttributeNamed:)

Gets 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

Taking Full Control of Particle Drawing with a Shader