Hi,
I am an amateur and i want to make a choice selection menu and deck selection menu (something like clash royal). I manage to do something like that (picture 1 and 2), but my question is :" How can I save images from a deck selected (which are 2d textures btw.) to spawn my object or mesh in a new level? or: Can I somehow when I’m in a new level see these images that I Drop on from the selected widget and spawn them in the game manually?" I saw some talented guy say: “This is user-independent and will mostly be found in GameMode, GameInstance, GameState and Player Controller.” (https://answers.unrealengine.com/questions/424894/view.html).
My gameinstance does not save selected images from the deck selection when i go in another level. In my GameInstance widget i use variable (2d texture) to save chosen images but I can t see them in another level. I am sorry for bad grammer and if it was dumb questions.
Yes am using Blueprints and I change in setup my gameinstance with variable 2d texture. Do I need to put My gameinstance in choice selection menu widget or deck selection menu widget to call funktionality of saveing 2d texture?
In Project settings → Maps and Modes-> Game Instance class
you should set your game instance class there
no need to put game instance. You can access game instance from anywhere using getgameinstance method. just make sure to cast it to your custom game instance to use it
Okej, i did that in In Project settings → Maps and Modes-> Game Instance class. Thats why i said i use in setup “mygameinstance”(this is my custom name for Game Instance class). Sorry if I didnt specified more clearly.