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.