How to tag umap(s) with AssetRegistrySearchable?

Hi!

I have some different maps that the player should be able to choose from. All the maps can have different settings that must be known to display accurate information to the user before loading the maps into memory. Sure, I could just create some second file or config storing these setting/tags but I found that error prone and also not a very elegant solution. I recently found out about the “AssetRegistrySearchable” keyword which sounded exactly like what I needed. The problem is that if I overload “ALevelScriptActor” and add my properties to it, I can’t find any classes of that type when using the object library as described here. I guess the .umap isn’t just a “ALevelScriptActor” and that may be what causing the problem. So how do you set tags to maps so you can check e.g. maxplayers before loading the map?

Is this even possible?

I’m looking for exactly the same thing

Still no solution unfortunately. Feels like it can’t be such an uncommon problem though. Hope we can find a solution soon.

I’ve been looking into unreal tournament source on github and it’s using AssetRegistrySearchable to list the maps with author, screenshot and recommended player number. Take a look at it. Seems that the class for map assets settings is UWorldSettings, so you need to inherit from it.

Seems to be under development according to the comments in the code, however it gets the job done.

Thanks!

Yes it works, but it takes a while when you iterate through 20-40 maps. Is it loading them actually? Or maybe you’ve found a way to overcome this? Any hint would be appreciated.

Hi, how you do this, can you show some codes? And do you find some better solutions nowadays?