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

Setting a Node's Unique Attributes for a Shader

attributeValues

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

Deprecated
- valueForAttributeNamed:

The value of a shader attribute.

Deprecated