unreal.DMMaterialValue¶
- class unreal.DMMaterialValue(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
DMMaterialLinkedComponentA value used inside a material. Can be exported as a material parameter.
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterial
File: DMMaterialValue.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]local(bool): [Read-Only] True: The value is local to the stage it is used in. False: The value is a global value that can be used anywhereparameter(DMMaterialParameter): [Read-Only] The parameter name used to expose this value in a material. If it isn’t provided, GetFName() will be used instead.preview_material(Material): [Read-Only]type(DMValueType): [Read-Only]
- classmethod create_material_value(material_model, name, type, local) DMMaterialValue¶
Create Material Value
- Parameters:
material_model (DynamicMaterialModel) –
name (str) –
type (DMValueType) –
local (bool) –
- Return type:
- find_index() int32¶
Find Index
- Return type:
int32
- get_material_model() DynamicMaterialModel¶
Get Material Model
- Return type:
- get_parameter() DMMaterialParameter¶
Get Parameter
- Return type:
- get_type() DMValueType¶
Get Type
- Return type:
- property local: bool¶
The value is local to the stage it is used in. False: The value is a global value that can be used anywhere
- Type:
(bool)
- Type:
[Read-Only] True
- property parameter: DMMaterialParameter¶
[Read-Only] The parameter name used to expose this value in a material. If it isn’t provided, GetFName() will be used instead.
- Type:
- property type: DMValueType¶
[Read-Only]
- Type: