More game instance

HI

how can i add more game instance’s in my project?

Thanks in advance

Hey Quintendc,

Are you trying to add additional maps/levels into your project? If so, please go to: File > New Level > Choose either ‘default’ or ‘empty level’. Once you’ve done that, you can then begin to build your new level within your project.

If this is not what you were referring to, please provide me a bit more details so I can assist you further.

Thanks! :slight_smile:

hi,

i talking about this but i use blueprint.

thanks in advance,

i can only one instance class i will use more of these classes
if i make more classes and i cast from de instance class that is selected in project settings will game remember that variable when i go to another level?

Hello,

as far as I know there can only be a single GameInstance at once (therefore called a “Singleton”) that can be accessed by any Object/Actor with a UWorld Context. Therefore I do not think you can get multiple GameInstances (at least not without changing the Engine’s source to a heavy degree).
EDIT: The GameInstance is also persistent between levels and keeps data so you cannot change the class of the GameInstance (if you’re talking about that)

I hope that I could help you :slight_smile:

Regards,

Nanoxin

Hey Quintendc,

Sorry for misunderstanding you yesterday. You can add multiple game instances however, you can only work with one at a time. As Nanoxin stated, they can be accessed by another object or actor with the UWorld context. I wasn’t able to find a more detailed document for the game instance, other than the one you linked to me.

Let us know if you have any further questions, cheers!

how can i add the second one ?