Instance Method

valueForAttributeNamed:

The value of a shader attribute.

Declaration

- (SKAttributeValue *)valueForAttributeNamed:(NSString *)key;

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

Working with Custom Shaders

shader

Defines a shader which is applied to each tile of the tile map.

attributeValues

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

- setValue:forAttributeNamed:

Sets an attribute value for an attached shader.