unreal.MaterialInstance

class unreal.MaterialInstance(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: MaterialInterface

Material Instance

C++ Source:

  • Module: Engine

  • File: MaterialInstance.h

Editor Properties: (see get_editor_property/set_editor_property)

  • asset_import_data (AssetImportData): [Read-Write] Asset Import Data: Importing data and options used for this material

  • asset_user_data (Array[AssetUserData]): [Read-Write] Asset User Data: Array of user data stored with the asset

  • base_property_overrides (MaterialInstanceBasePropertyOverrides): [Read-Write] Base Property Overrides

  • double_vector_parameter_values (Array[DoubleVectorParameterValue]): [Read-Write] Double Vector Parameter Values: DoubleVector parameters.

  • font_parameter_values (Array[FontParameterValue]): [Read-Write] Font Parameter Values: Font parameters.

  • lightmass_settings (LightmassMaterialInterfaceSettings): [Read-Write] Lightmass Settings: The Lightmass settings for this object.

  • nanite_override_material (MaterialOverrideNanite): [Read-Write] Nanite Override Material: An override material which will be used instead of this one when rendering with nanite.

  • override_subsurface_profile (bool): [Read-Write] Override Subsurface Profile: Defines if SubsurfaceProfile from this instance is used or it uses the parent one.

  • parent (MaterialInterface): [Read-Write] Parent: Parent material.

  • phys_material (PhysicalMaterial): [Read-Write] Phys Material: Physical material to use for this graphics material. Used for sounds, effects etc.

  • physical_material_map (PhysicalMaterial): [Read-Write] Physical Material Map: Physical material map used with physical material mask, when it exists.

  • preview_mesh (SoftObjectPath): [Read-Write] Preview Mesh: The mesh used by the material editor to preview the material.

  • runtime_virtual_texture_parameter_values (Array[RuntimeVirtualTextureParameterValue]): [Read-Write] Runtime Virtual Texture Parameter Values: RuntimeVirtualTexture parameters.

  • scalar_parameter_values (Array[ScalarParameterValue]): [Read-Write] Scalar Parameter Values: Scalar parameters.

  • subsurface_profile (SubsurfaceProfile): [Read-Write] Subsurface Profile: SubsurfaceProfile, for Screen Space Subsurface Scattering

  • texture_parameter_values (Array[TextureParameterValue]): [Read-Write] Texture Parameter Values: Texture parameters.

  • thumbnail_info (ThumbnailInfo): [Read-Only] Thumbnail Info: Information for thumbnail rendering

  • vector_parameter_values (Array[VectorParameterValue]): [Read-Write] Vector Parameter Values: Vector parameters.

property double_vector_parameter_values: Array[DoubleVectorParameterValue]

[Read-Only] Double Vector Parameter Values: DoubleVector parameters.

Type:

(Array[DoubleVectorParameterValue])

property font_parameter_values: Array[FontParameterValue]

[Read-Only] Font Parameter Values: Font parameters.

Type:

(Array[FontParameterValue])

property override_subsurface_profile: bool

[Read-Only] Override Subsurface Profile: Defines if SubsurfaceProfile from this instance is used or it uses the parent one.

Type:

(bool)

property parent: MaterialInterface

[Read-Only] Parent: Parent material.

Type:

(MaterialInterface)

property phys_material: PhysicalMaterial

[Read-Write] Phys Material: Physical material to use for this graphics material. Used for sounds, effects etc.

Type:

(PhysicalMaterial)

property runtime_virtual_texture_parameter_values: Array[RuntimeVirtualTextureParameterValue]

[Read-Only] Runtime Virtual Texture Parameter Values: RuntimeVirtualTexture parameters.

Type:

(Array[RuntimeVirtualTextureParameterValue])

property scalar_parameter_values: Array[ScalarParameterValue]

[Read-Only] Scalar Parameter Values: Scalar parameters.

Type:

(Array[ScalarParameterValue])

property texture_parameter_values: Array[TextureParameterValue]

[Read-Only] Texture Parameter Values: Texture parameters.

Type:

(Array[TextureParameterValue])

property vector_parameter_values: Array[VectorParameterValue]

[Read-Only] Vector Parameter Values: Vector parameters.

Type:

(Array[VectorParameterValue])