unreal.DMMaterialComponent¶
- class unreal.DMMaterialComponent(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectThe base class for all material components. Has a few useful things.
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterial
File: DMMaterialComponent.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]
- property component_state: DMComponentLifetimeState¶
[Read-Only]
- Type:
- get_component_by_path(path) DMMaterialComponent¶
Searches the component for a specific component based on a path.
- Parameters:
path (str)
- Return type:
- get_component_state() DMComponentLifetimeState¶
Get Component State
- Return type:
- get_editable_properties() Array[Name]¶
Returns a list of FNames for this component representing editable UPROPERTYs.
- get_outer_safe() Object¶
Does some checks to see whether the out is safe to retrieve and retrieves it.
- Return type:
- get_parent_component() DMMaterialComponent¶
Returns the component that owns this component in the model hierarchy.
- Return type:
- get_typed_parent(parent_class, allow_subclasses) DMMaterialComponent¶
Returns the first in the model hierarchy above this component of the given type.
- Parameters:
- Return type:
- has_component_been_added() bool¶
Returns true if this component is in the Added or greater state.
- Return type:
- has_component_been_created() bool¶
This is a kind of “useless” check, a component has _always_ been created. It’s here for completeness.
- Return type:
- has_component_been_removed() bool¶
Returns true if this component is in the Removed or greater state.
- Return type:
- is_component_created() bool¶
Returns true if this component is in the original “Created” state and has not been moved onto Added or Removed.
- Return type:
- set_component_state(new_state) None¶
Changes the component state to a new one. Should not be used to set it back to Created.
- Parameters:
new_state (DMComponentLifetimeState)
- update(source, update_type) None¶
Event that is triggered when this component, or a sub-component, changes to trigger other updates in the model.
- Parameters:
source (DMMaterialComponent)
update_type (DMUpdateType)