unreal.MaterialLibrary

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

Bases: unreal.BlueprintFunctionLibrary

Kismet Material Library

C++ Source:

  • Module: Engine
  • File: KismetMaterialLibrary.h
classmethod create_dynamic_material_instance(world_context_object, parent, optional_name="None") → MaterialInstanceDynamic

Creates a Dynamic Material Instance which you can modify during gameplay.

Parameters:
Returns:

Return type:

MaterialInstanceDynamic

classmethod create_material_instance_dynamic(world_context_object, parent, optional_name='None')

deprecated: ‘create_material_instance_dynamic’ was renamed to ‘create_dynamic_material_instance’.

classmethod get_scalar_parameter_value(world_context_object, collection, parameter_name) → float

Gets a scalar parameter value from the material collection instance. Logs if ParameterName is invalid.

Parameters:
Returns:

Return type:

float

classmethod get_vector_parameter_value(world_context_object, collection, parameter_name) → LinearColor

Gets a vector parameter value from the material collection instance. Logs if ParameterName is invalid.

Parameters:
Returns:

Return type:

LinearColor

classmethod set_scalar_parameter_value(world_context_object, collection, parameter_name, parameter_value) → None

Sets a scalar parameter value on the material collection instance. Logs if ParameterName is invalid.

Parameters:
classmethod set_vector_parameter_value(world_context_object, collection, parameter_name, parameter_value) → None

Sets a vector parameter value on the material collection instance. Logs if ParameterName is invalid.

Parameters: