unreal.MaterialInstanceDiffResult

class unreal.MaterialInstanceDiffResult(instance_path: SoftObjectPath = Ellipsis, diff_type: MaterialInstanceDiffType = Ellipsis, property_diffs: None = [])

Bases: StructBase

Diff result for a single material instance between two versions of a UMaterialValidationGroup.

C++ Source:

  • Plugin: MaterialValidation

  • Module: MaterialValidation

  • File: MaterialValidationLibraryTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • diff_type (MaterialInstanceDiffType): [Read-Write] Whether this instance was added, removed, or modified.

  • instance_path (SoftObjectPath): [Read-Write] Asset path of the material or material instance.

  • property_diffs (Array[MaterialInstancePropertyDiff]): [Read-Write] Per-property differences. This will be empty for Added and Removed entries.

property diff_type: MaterialInstanceDiffType

[Read-Only] Whether this instance was added, removed, or modified.

Type:

(MaterialInstanceDiffType)

property instance_path: SoftObjectPath

[Read-Only] Asset path of the material or material instance.

Type:

(SoftObjectPath)

property property_diffs: None

[Read-Only] Per-property differences. This will be empty for Added and Removed entries.

Type:

(Array[MaterialInstancePropertyDiff])