Download

Get asset reference from scene selected asset

Hi
Does anyone know how to get a reference to an asset from scene selection?

I can get at the instance that I have selected via:


selected_actors = unreal.EditorLevelLibrary.get_selected_level_actors()
for sel in selected_actors: for i in range(num_geom_collection_comps):   
    g = sel.get_components_by_class(unreal.GeometryCollectionComponent)*

However, its not the scene placed instance I want. Its the resource itself (not sure of terminology). Anyone know how to get a reference to an asset from selection? Thanks.