unreal.DMMaterialStageInputFunction

class unreal.DMMaterialStageInputFunction(outer: Object | None = None, name: Name | str = 'None')

Bases: DMMaterialStageInputThroughput

DMMaterial Stage Input Function

C++ Source:

  • Plugin: DynamicMaterial

  • Module: DynamicMaterialEditor

  • File: DMMSIFunction.h

Editor Properties: (see get_editor_property/set_editor_property)

  • component_dirty (bool): [Read-Only]

  • component_state (DMComponentLifetimeState): [Read-Only]

  • editable_properties (Array[Name]): [Read-Only]

  • output_connectors (Array[DMMaterialStageConnector]): [Read-Only]

  • sub_stage (DMMaterialSubStage): [Read-Only]

classmethod change_stage_input_function(stage, material_function, input_idx, input_channel, output_idx, output_channel) DMMaterialStageInputFunction

Change the input type of an input on a stage to a function.

Parameters:
  • stage (DMMaterialStage)

  • material_function (MaterialFunctionInterface)

  • input_idx (int32) – Index of the source input.

  • input_channel (int32) – The channel of the input that the input connects to.

  • output_idx (int32) – The output index of the new input.

  • output_channel (int32) – The channel of the output to connect.

Return type:

DMMaterialStageInputFunction

classmethod change_stage_source_function(stage, material_function) DMMaterialStageInputFunction

Change Stage Source Function

Parameters:
Return type:

DMMaterialStageInputFunction

classmethod create_stage(layer=None) DMMaterialStage

Create Stage

Parameters:

layer (DMMaterialLayerObject)

Return type:

DMMaterialStage

get_material_function() MaterialFunctionInterface

Get Material Function

Return type:

MaterialFunctionInterface

get_material_stage_function() DMMaterialStageFunction

Get Material Stage Function

Return type:

DMMaterialStageFunction

set_material_function(material_function) None

Set Material Function

Parameters:

material_function (MaterialFunctionInterface)