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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software