unreal.MaterialParameterCollection

class unreal.MaterialParameterCollection(outer=None, name='None')

Bases: unreal.Object

Asset class that contains a list of parameter names and their default values. Any number of materials can reference these parameters and get new values when the parameter values are changed.

C++ Source:

  • Module: Engine

  • File: MaterialParameterCollection.h

Editor Properties: (see get_editor_property/set_editor_property)

  • scalar_parameters (Array(CollectionScalarParameter)): [Read-Write] Scalar Parameters

  • vector_parameters (Array(CollectionVectorParameter)): [Read-Write] Vector Parameters

get_scalar_parameter_default_value(parameter_name) -> (float, parameter_found=bool)

Gets the default value of a scalar parameter from a material collection.

Parameters

parameter_name (Name) – The name of the value to get the value of

Returns

the value of the parameter

parameter_found (bool): if a parameter with the input name was found

Return type

bool

get_scalar_parameter_names()

Returns an array of the names of all the scalar parameters in this Material Parameter Collection *

Return type

Array(Name)

get_vector_parameter_default_value(parameter_name) -> (LinearColor, parameter_found=bool)

Gets the default value of a scalar parameter from a material collection.

Parameters

parameter_name (Name) – The name of the value to get the value of

Returns

the value of the parameter

parameter_found (bool): if a parameter with the input name was found

Return type

bool

get_vector_parameter_names()

Returns an array of the names of all the vector parameters in this Material Parameter Collection *

Return type

Array(Name)