My MapLoader class takes in TAssetPtr<UWorld> references and streams in the maps when needed.
This works fine with UPROPERTY() TAssetPtr<UWorld> variables.
However, I would also like to load levels through paths. ("/Game/Maps/Test_Map")
Rather than load a pathed level directly, how would I get the TAssetPtr<UWorld> from a path so I can send it to my MapLoader?
Note: Everything I’ve seen online loads the levels immediately, while I only want to get the TAssetPtr>UWorld> of them.