unreal.BakingConfiguration

class unreal.BakingConfiguration(output_path: str = '', output_files_base_name: str = '', export_all_resources_on_bake: bool = False, generate_constant_material_instances_on_bake: bool = False, allow_overriding_of_files: bool = False, on_bake_operation_completed_callback: BakeOperationCompletedDelegate = Ellipsis)

Bases: StructBase

Configuration data structure designed to serve as variable container for the customizable object instance baking methods.

C++ Source:

  • Plugin: Mutable

  • Module: CustomizableObject

  • File: CustomizableObjectInstance.h

Editor Properties: (see get_editor_property/set_editor_property)

  • allow_overriding_of_files (bool): [Read-Write] Flag that determines if we should override already exported files or if we should not. If we encounter files to override and we have not permission to override them then the baking operation will fail.

  • export_all_resources_on_bake (bool): [Read-Write] Determines if we want a full or partial export

  • generate_constant_material_instances_on_bake (bool): [Read-Write] Determines if we want (or not) to generate constant material instances for each of the material instances found in the mutable instance

  • on_bake_operation_completed_callback (BakeOperationCompletedDelegate): [Read-Write] Callback executed once the baking operation gets completed. It will return the end success state and also some data about the assets saved.

  • output_files_base_name (str): [Read-Write] The name to be used as base (prefix) during the naming of the exported resources

  • output_path (str): [Read-Write] The path where to save the baked resources. EX /Game/MyBakingTest

property allow_overriding_of_files: bool

[Read-Write] Flag that determines if we should override already exported files or if we should not. If we encounter files to override and we have not permission to override them then the baking operation will fail.

Type:

(bool)

property export_all_resources_on_bake: bool

[Read-Write] Determines if we want a full or partial export

Type:

(bool)

property generate_constant_material_instances_on_bake: bool

[Read-Write] Determines if we want (or not) to generate constant material instances for each of the material instances found in the mutable instance

Type:

(bool)

property on_bake_operation_completed_callback: BakeOperationCompletedDelegate

[Read-Write] Callback executed once the baking operation gets completed. It will return the end success state and also some data about the assets saved.

Type:

(BakeOperationCompletedDelegate)

property output_files_base_name: str

[Read-Write] The name to be used as base (prefix) during the naming of the exported resources

Type:

(str)

property output_path: str

[Read-Write] The path where to save the baked resources. EX /Game/MyBakingTest

Type:

(str)