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())

This code gives us the default object of the asset, allowing us to update the asset's default values

Last updated