Hello, so I want to make a small game where I will player the freedom to choose the character form the ready player me character creator, so I want that same character to appear in the next level.
I know this can be done with game instance, but I’m kinda lost, can anyone help me with this?
Thanks
Hey @P4N1H3R , welcome to the forum!
There are some classes that are persistent through levels and of which only one instance can exist, just like GameInstance.
You can save all the parameters and data you need on character creation in the GameInstance, and then read and reapply them after level transition / load.
You can add logic to retrieve the “skin” on the BeginPlay of your player character class.
Hey, thank you so much for the answer.
Actually I don’t know how to do that, as I am very new to this ue game development.
Can you please elaborate more? Or give me some examples?
Thank you so much again!
Well, when someone customizes a character, there are values that change like height, weight, hair cut, hair color, skin color, …
When a player is done customizing their character, save all those values. I would assume your character maker has some sort of struct or data set to store all those values, so you can probably just copy that data variable and store that copy in your GameInstance.
When a playable level loads, in your Player blueprint / class get a reference to the GameInstance, retrieve that data and apply those values again to the character.
I can’t give more details since I don’t know how your current system works, but as a general idea that would be the base logic.
Thank you for answer!
So, I created a small character creator system using skeletal meshes and material, etc. and tried game instance and yeah, it’s working properly.
But whenever I use ready player me character creator for unreal engine, same issue persists.