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 Parametersvector_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.
- get_scalar_parameter_names()¶
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.