Contents

init(name:semantic:)

Initializes a material property without a value.

Declaration

init(name: String, semantic: MDLMaterialSemantic)

Parameters

  • name:

    A descriptive name for the material property. For details, see the Name property.

  • semantic:

    The semantic meaning for the material property’s value. For details, see the Semantic property.

Return Value

A new material property object.

Discussion

The newly created material property’s value is empty, and its type property is MDLMaterialPropertyType.none. Use one of the properties listed in Working with a Material Property’s Value to provide a value for the material property.

See Also

Creating a Material Property