unreal.MetaHumanAssetReport

class unreal.MetaHumanAssetReport(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

A report generated when an asset is imported or tested for MetaHuman compatibility

C++ Source:

  • Plugin: MetaHumanSDK

  • Module: MetaHumanSDKEditor

  • File: MetaHumanAssetReport.h

add_error(message) None

Adds a user-facing message to appear in the report. This will flag the report as containing warnings and as having failed.

Parameters:

message (MetaHumanAssetReportItem) – The localized error message

add_info(message) None

Adds a user-facing message to appear in the report. This will not flag the report as containing warnings or as having failed.

Parameters:

message (MetaHumanAssetReportItem) – The localized informational message

add_verbose(message) None

Adds a user-facing message to appear in the report. This will not flag the report as containing warnings or as having failed and will be discarded if SetVerbose is not called with a value of true

Parameters:

message (MetaHumanAssetReportItem) – The localized informational message

add_warning(message) None

Adds a user-facing message to appear in the report. This will flag the report as containing warnings but will not flag it as having failed.

Parameters:

message (MetaHumanAssetReportItem) – The localized warning message

generate_html_report() str

Generates an HTML representation of the report

Return type:

str

generate_json_report() str

Generates a JSON representation of the report

Return type:

str

generate_raw_report() str

Generates a plain text representation of the report

Return type:

str

generate_rich_text_report() Text

Generates a representation of the report suitable for use in an SRichText control

Return type:

Text

get_report_result() MetaHumanOperationResult

Determine whether the report represents a successful operation or not

Return type:

MetaHumanOperationResult

has_warnings() bool

Determine whether the report contains non-informational messages

Return type:

bool

set_silent(value) None

Suppress logging of messages from the report

Parameters:

value (bool)

set_subject(subject) None

Set the subject for the report, typically the name of the asset being tested or imported

Parameters:

subject (str) – The Name to appear in the title of the report

set_verbose(value) None

Set whether to include verbose items in the report

Parameters:

value (bool)

set_warnings_as_errors(value) None

Set whether warnings should be reported as errors

Parameters:

value (bool)