unreal.MaterialParameterCollection
¶
- class unreal.MaterialParameterCollection(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
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]vector_parameters
(Array[CollectionVectorParameter]): [Read-Write]
- get_scalar_parameter_default_value(parameter_name) -> (float, parameter_found=bool)¶
Gets the default value of a scalar parameter from a material collection.
- get_scalar_parameter_names() Array[Name] ¶
Returns an array of the names of all the scalar parameters in this Material Parameter Collection *
- get_vector_parameter_default_value(parameter_name) -> (LinearColor, parameter_found=bool)¶
Gets the default value of a scalar parameter from a material collection.