Contents

getParameter(name:)

Returns the value of a parameter by name.

Declaration

func getParameter(name: String) -> MaterialParameters.Value?

Parameters

  • name:

    The name of the parameter as declared in the shader graph.

Return Value

The current value of the parameter, or nil if the parameter has no value set on this material.

See Also

Accessing shader parameters