Get Asset from Actor
Getting an Actor's asset from the Content browser
Getting The Asset By Actor Type
EditorActorSubsystem = unreal.get_editor_subsystem(unreal.EditorActorSubsystem)
selection = EditorActorSubsystem.get_selected_level_actors()
actor = selection[0] if selection else NoneBlueprint Actor
if isinstance(actor.get_class(), unreal.BlueprintGeneratedClass):
asset_path = actor.get_class().get_outer().get_path_name()
asset = unreal.load_asset(asset_path)Static Mesh Actor
Skeletal Mesh Actor
Niagara Actor
Level Instances Actor
Full Function Example
Last updated