Announcement

Collapse
No announcement yet.

Best practice for sublevel loading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Best practice for sublevel loading

    Hey! Whats the best practice for level loading? I do it inside the persistent level blueprint and its called from the game mode.
    Unfortunately somehow all players get rubber banding lags after i unload the old map and loaded the new one.
    Is there a right way to do it?

    Best regards

    #2
    Originally posted by MajekPL View Post
    Hey! Whats the best practice for level loading? I do it inside the persistent level blueprint and its called from the game mode.
    Unfortunately somehow all players get rubber banding lags after i unload the old map and loaded the new one.
    Is there a right way to do it?

    Best regards
    There's not much to it. You just have a persistent level ( with nothing in ), and all your levels loaded inside that, as sub levels. Then you just use LoadStreamLevel and UnloadStreamLevel.

    Unless I'm mistaken though, game mode is not the right place to do that. More logical places would be level BP of the persistent level or inside a BP actor in the persistent level.

    Comment

    Working...
    X