Instance Method

setValue:forAttributeNamed:

Sets an attribute value for an attached shader.

Declaration

- (void)setValue:(SKAttributeValue *)value forAttributeNamed:(NSString *)key;

Parameters

value

An attribute value object containing the scalar or vector value to set in the attached shader.

key

The attribute name.

See Also

Taking Full Control of Particle Drawing with a Shader

Getting Started with Particle Shaders

Provide custom shader code to alter a particle's look.

shader

A custom shader used to determine how particles are rendered.

attributeValues

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

- valueForAttributeNamed:

Gets the value of a shader attribute.