Getting the Default Object
Getting the Default Object of an asset from the Content browser
Getting an Asset's Default Object
To change the default values on a Blueprint Asset in the Content Browser, we need its default object:
asset_path = "/Game/some/asset/path"
asset = unreal.load_asset(asset_path)
default_object = unreal.get_default_object(asset.generated_class())
Note: While there is a .get_default_object()
function available on the loaded asset reference in Python, it does not work as expected/desired here
This code gives us the default object of the asset, allowing us to update the asset's default values
Last updated