3D widget at another level

hey this is my first post sorry if this is in the wrong place

i made this puzzle game where all levels connected through a hub. Once a player gets to the end of 1 level and they go through the portal it will load up the Hub at the end of each level i have Completion widget

i made the widget a 3D in hub

3D widget

the problem is its not updating after you finish the level and come back to the hub

everthing stuck at 0

i think i need to use game instance or something to store the final result of every level but i don’t know how
or maybe i can spawn the 3D widget after the player come back to the hub

am not sure how to do that either

You can use the game instance to pass information between levels, so you could make the consistent using that, but…

That won’t fix things if you stop playing and start again, then you need to use the save game.

1 Like

the 3D widget is an actor it doesn’t show how to store an actor in game instance am not sure how to do that or if that even possible

I assume you are saving/setting the coins, gems, death stuff with an structure?

If it is the case, you could set the variables within your characters and update your 3D widget.

You store the info you need in the GI ( or SG ), and then make the widget in the other level, when you get there.

you mean this?

i found a way to spawn the 3D widget after level 1 is done
by doing this in the hub BP level

spawnWidget

it worked but nothing updating everthing stuck at 0

Save your stats within a structure, send it to your player controller and let the widget get it from the controller

by structure you mean variable right? also can i send it to game instance instead of player controller

You would need the “custom structs”

thank you so much :heart:

Np. Let us know if you run into other issues with that :slight_smile: