New Asset Instances
Initializing a new instance of an asset from the Content browser
here is how we can initialize a new instance of a Content Browser asset:
asset_path = "/Game/some/asset/path"
asset = unreal.load_asset(asset_path)
asset_instance = unreal.new_object(asset.generated_class())
This code gives us a new instance of the asset, and is great for things like populating List Views on an Editor Utility Widget
Last updated