unreal.DMTextureSet¶
- class unreal.DMTextureSet(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectDMTexture Set
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterialTextureSet
File: DMTextureSet.h
Editor Properties: (see get_editor_property/set_editor_property)
textures(Map[DMTextureSetMaterialProperty, DMMaterialTexture]): [Read-Write]
- get_material_texture(material_property) DMMaterialTexture or None¶
Gets the Material Texture associated with a Material Property. Does not check whether a Texture is assigned to it.
- Parameters:
material_property (DMTextureSetMaterialProperty) – The Material Property to check.
- Returns:
True if the Material Property exists within the Texture Map.
out_material_texture (DMMaterialTexture): The found Material Texture.
- Return type:
DMMaterialTexture or None
- has_material_property(material_property) bool¶
Checks whether a given Material Property exists in the Texture Map. Does not check whether that a Texture is assigned to it.
- Parameters:
material_property (DMTextureSetMaterialProperty) – The Material Property to check.
- Returns:
True if the property exists in the Texture Map.
- Return type:
- has_material_texture(material_property) bool¶
Checks whether a given Material Property has a Texture assigned to it.
- Parameters:
material_property (DMTextureSetMaterialProperty) – The Material Property to check.
- Returns:
True if the Material Property has an assigned Texture.
- Return type:
- set_material_texture(material_property, material_texture) None¶
Sets the Material Texture for a given Material Property. Can be used to unset Textures.
- Parameters:
material_property (DMTextureSetMaterialProperty) – The Material Property to check.
material_texture (DMMaterialTexture) – The Material Texture to set on the given Material Property.