Adding Level Instances via modular game features

In this video

author copies files from Valley of the Ancient demo to activate custom game feature action.
Сan anyone share these files preferably for version 5.1 and tell if there are any bugs in this method?

GameFeatureAction_AddLevelInstances.cpp (5.0 KB)
GameFeatureAction_AddLevelInstances.h (3.0 KB)
GameFeatureAction_WorldActionBase.cpp (1.2 KB)
GameFeatureAction_WorldActionBase.h (1.1 KB)

2 Likes

oh so convenient to have it here instead of downloading the full project!!

1 Like

Hi, may I ask you how you managed to make the main level aware of the new level instance? its at the level BP?

I cant help you( i didn’t implemented this feature because i dont know c++ lol

im using data layers instead of level instances

oh, the ones that come with ue5.3?

I was looking back for that “add level” since I found no documentation about how to add those data layers.

Will be too much to ask for some guidance here? Thanks!!

image
im talking about this data layers, that works with world partition. They allows you to load and unload everything (meshes, blueprints and etc) in runtime. You can check this talk

Oh, I thought you were using the modular game features, that now includes an action called “add world partition Content” that I guess is the way to load a data layer, when you pack it separately as a DLC.

Any case thanks!

(by the way to load normal sub levels without the world partition is really easy, if you are interested I can send you some guides about level streaming)

1 Like

thanks, ill learn about level streaming

Hi! Thank you for advice about Level Streaming. Its really good! I can bake lights now =)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.