unreal.DynamicMaterialModelEditorOnlyData¶
- class unreal.DynamicMaterialModelEditorOnlyData(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectDynamic Material Model Editor Only Data
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterialEditor
File: DynamicMaterialModelEditorOnlyData.h
Editor Properties: (see get_editor_property/set_editor_property)
ambient_occlusion(DMMaterialProperty): [Read-Write]anisotropy(DMMaterialProperty): [Read-Write]base_color(DMMaterialProperty): [Read-Write]blend_mode(BlendMode): [Read-Write]create_material_package(bool): [Read-Only]custom1(DMMaterialProperty): [Read-Write]custom2(DMMaterialProperty): [Read-Write]custom3(DMMaterialProperty): [Read-Write]custom4(DMMaterialProperty): [Read-Write]displacement(DMMaterialProperty): [Read-Write]displacement_center(float): [Read-Write] Mid point for displacement in the range 0-1.displacement_magnitude(float): [Read-Write] Multipler for displacement values.domain(MaterialDomain): [Read-Write]emissive_color(DMMaterialProperty): [Read-Write]expressions(Array[MaterialExpression]): [Read-Only]forward_renderer_flags(uint8): [Read-Write]general_flags(uint8): [Read-Write]has_pixel_animation(bool): [Read-Write] deprecated: Moved to MotionFlagslighting_flags(uint8): [Read-Write]material_model(DynamicMaterialModel): [Read-Only]material_stats(MaterialStatistics): [Read-Only]metallic(DMMaterialProperty): [Read-Write]motion_flags(uint8): [Read-Write]nanite_tessellation_enabled(bool): [Read-Write] deprecated: Moved to UsageFlagsnormal(DMMaterialProperty): [Read-Write]opacity(DMMaterialProperty): [Read-Write]opacity_mask(DMMaterialProperty): [Read-Write]opacity_mask_clip_value(float): [Read-Write]output_translucent_velocity_enabled(bool): [Read-Write] deprecated: Moved to MotionFlagspixel_depth_offset(DMMaterialProperty): [Read-Write]property_slot_map(Map[DMMaterialPropertyType, DMMaterialSlot]): [Read-Only]refraction(DMMaterialProperty): [Read-Write]responsive_aa_enabled(bool): [Read-Write] deprecated: Moved to MotionFlagsroughness(DMMaterialProperty): [Read-Write]shading_model(DMMaterialShadingModel): [Read-Write]slots(Array[DMMaterialSlot]): [Read-Only]specular(DMMaterialProperty): [Read-Write]state(DMState): [Read-Only]subsurface_color(DMMaterialProperty): [Read-Write]surface_thickness(DMMaterialProperty): [Read-Write]tangent(DMMaterialProperty): [Read-Write]translucency_flags(uint8): [Read-Write]two_sided(bool): [Read-Write] deprecated: Moved to GeneralFlagsusage_flags(int32): [Read-Write]world_position_offset(DMMaterialProperty): [Read-Write]
- add_slot() DMMaterialSlot¶
Adds the next available slot. Highly recommended to use AddSlotForMaterialProperty(PropertyType).
- Return type:
- add_slot_for_material_property(type) DMMaterialSlot¶
Add Slot for Material Property
- Parameters:
type (DMMaterialPropertyType)
- Return type:
- property ambient_occlusion: DMMaterialProperty¶
[Read-Only]
- Type:
- property anisotropy: DMMaterialProperty¶
[Read-Only]
- Type:
- assign_material_property_to_slot(property_, slot) None¶
Assign Material Property to Slot
- Parameters:
property (DMMaterialPropertyType)
slot (DMMaterialSlot)
- property b_pixel_animation_flag: bool¶
‘b_pixel_animation_flag’ was renamed to ‘has_pixel_animation’.
- Type:
- property base_color: DMMaterialProperty¶
[Read-Only]
- Type:
- property custom1: DMMaterialProperty¶
[Read-Only]
- Type:
- property custom2: DMMaterialProperty¶
[Read-Only]
- Type:
- property custom3: DMMaterialProperty¶
[Read-Only]
- Type:
- property custom4: DMMaterialProperty¶
[Read-Only]
- Type:
- property displacement: DMMaterialProperty¶
[Read-Only]
- Type:
- property displacement_center: float¶
[Read-Only] Mid point for displacement in the range 0-1.
- Type:
(float)
- property displacement_magnitude: float¶
[Read-Only] Multipler for displacement values.
- Type:
(float)
- property domain: MaterialDomain¶
[Read-Only]
- Type:
- property emissive_color: DMMaterialProperty¶
[Read-Only]
- Type:
- get_domain() MaterialDomain¶
Get Domain
- Return type:
- get_forward_renderer_flags() DMMaterialFlagsForwardRenderer¶
Get Forward Renderer Flags
- Return type:
- get_general_flags() DMMaterialFlagsGeneral¶
Get General Flags
- Return type:
- get_lighting_flags() DMMaterialFlagsLighting¶
Get Lighting Flags
- Return type:
- get_material_model() DynamicMaterialModel¶
Get Material Model
- Return type:
- get_material_properties() Map[DMMaterialPropertyType, DMMaterialProperty]¶
Get Material Properties
- Return type:
- get_material_properties_for_slot(slot) Array[DMMaterialPropertyType]¶
Get Material Properties for Slot
- Parameters:
slot (DMMaterialSlot)
- Return type:
- get_material_property(material_property) DMMaterialProperty¶
Get Material Property
- Parameters:
material_property (DMMaterialPropertyType)
- Return type:
- get_material_stats() MaterialStatistics¶
Get Material Stats
- Return type:
- get_motion_flags() DMMaterialFlagsMotion¶
Get Motion Flags
- Return type:
- get_shading_model() DMMaterialShadingModel¶
Get Shading Model
- Return type:
- get_slot(index) DMMaterialSlot¶
Gets slot by index. Highly recommended to use GetSlotForMaterialProperty(PropertyType).
- Parameters:
index (int32)
- Return type:
- get_slot_for_enabled_material_property(type) DMMaterialSlot¶
Same as the above method, but will only return the slot if the material property is enabled.
- Parameters:
type (DMMaterialPropertyType)
- Return type:
- get_slot_for_material_property(type) DMMaterialSlot¶
Get Slot for Material Property
- Parameters:
type (DMMaterialPropertyType)
- Return type:
- get_slots() Array[DMMaterialSlot]¶
Get Slots
- Return type:
- get_translucency_flags() DMMaterialFlagsTranslucency¶
Get Translucency Flags
- Return type:
- get_usage_flags() DMMaterialFlagsUsage¶
Get Usage Flags
- Return type:
- has_general_flag(flag) bool¶
Has General Flag
- Parameters:
flag (DMMaterialFlagsGeneral)
- Return type:
- has_lighting_flag(flag) bool¶
Has Lighting Flag
- Parameters:
flag (DMMaterialFlagsLighting)
- Return type:
- has_motion_flag(flag) bool¶
Has Motion Flag
- Parameters:
flag (DMMaterialFlagsMotion)
- Return type:
- has_translucency_flag(flag) bool¶
Has Translucency Flag
- Parameters:
flag (DMMaterialFlagsTranslucency)
- Return type:
- has_usage_flag(flag) bool¶
Has Usage Flag
- Parameters:
flag (DMMaterialFlagsUsage)
- Return type:
- property material_model: DynamicMaterialModel¶
[Read-Only]
- Type:
- property material_stats: MaterialStatistics¶
[Read-Only]
- Type:
- property metallic: DMMaterialProperty¶
[Read-Only]
- Type:
- property nanite_tessellation_enabled: bool¶
[Read-Write] deprecated: Moved to UsageFlags
- Type:
(bool)
- property normal: DMMaterialProperty¶
[Read-Only]
- Type:
- property opacity: DMMaterialProperty¶
[Read-Only]
- Type:
- property opacity_mask: DMMaterialProperty¶
[Read-Only]
- Type:
- property output_translucent_velocity_enabled: bool¶
[Read-Write] deprecated: Moved to MotionFlags
- Type:
(bool)
- property pixel_depth_offset: DMMaterialProperty¶
[Read-Only]
- Type:
- property refraction: DMMaterialProperty¶
[Read-Only]
- Type:
- remove_slot(index) DMMaterialSlot¶
Removes the next slot by index. Highly recommended to use RemoveSlotForMaterialProperty(PropertyType).
- Parameters:
index (int32)
- Return type:
- remove_slot_for_material_property(type) DMMaterialSlot¶
Remove Slot for Material Property
- Parameters:
type (DMMaterialPropertyType)
- Return type:
- request_material_build(request_type=DMBuildRequestType.PREVIEW) None¶
Called when the model needs to have the material rebuild.
- Parameters:
request_type (DMBuildRequestType)
- property roughness: DMMaterialProperty¶
[Read-Only]
- Type:
- set_displacement_magnitude(magnitude) None¶
Set Displacement Magnitude
- Parameters:
magnitude (float)
- set_domain(domain) None¶
Set Domain
- Parameters:
domain (MaterialDomain)
- set_forward_renderer_flag(flag, set) bool¶
Set Forward Renderer Flag
- Parameters:
set (bool)
- Return type:
- set_general_flag(flag, set) bool¶
Set General Flag
- Parameters:
flag (DMMaterialFlagsGeneral)
set (bool)
- Return type:
- set_lighting_flag(flag, set) bool¶
Set Lighting Flag
- Parameters:
flag (DMMaterialFlagsLighting)
set (bool)
- Return type:
- set_motion_flag(flag, set) bool¶
Set Motion Flag
- Parameters:
flag (DMMaterialFlagsMotion)
set (bool)
- Return type:
- set_opacity_mask_clip_value(clip_value) None¶
Set Opacity Mask Clip Value
- Parameters:
clip_value (float)
- set_shading_model(shading_model) None¶
Set Shading Model
- Parameters:
shading_model (DMMaterialShadingModel)
- set_translucency_flag(flag, set) bool¶
Set Translucency Flag
- Parameters:
flag (DMMaterialFlagsTranslucency)
set (bool)
- Return type:
- set_usage_flag(flag, set) bool¶
Set Usage Flag
- Parameters:
flag (DMMaterialFlagsUsage)
set (bool)
- Return type:
- property shading_model: DMMaterialShadingModel¶
[Read-Only]
- Type:
- property specular: DMMaterialProperty¶
[Read-Only]
- Type:
- property subsurface_color: DMMaterialProperty¶
[Read-Only]
- Type:
- property surface_thickness: DMMaterialProperty¶
[Read-Only]
- Type:
- property tangent: DMMaterialProperty¶
[Read-Only]
- Type:
- unassign_material_property(property_) None¶
Unassign Material Property
- Parameters:
property (DMMaterialPropertyType)
- property world_position_offset: DMMaterialProperty¶
[Read-Only]
- Type: