Instance Method

objectForKeyedSubscript:

Returns the material property with the specified name, for use with subscript syntax.

Declaration

- (MDLMaterialProperty *)objectForKeyedSubscript:(NSString *)name;

Parameters

name

The name value of a material property in the material.

Return Value

The material property with the specified name, or nil if the material does not contain a material property with that name.

Discussion

This method is equivalent to the propertyNamed: method but allows for the use of subscript syntax for reading material properties. To write material properties to the material, use the setProperty: method.

See Also

Accessing Material Properties with Subscript Syntax

- objectAtIndexedSubscript:

Returns the material property at the specified index in the material, for use with subscript syntax.

count

The number of material properties in the material.