Is it possible to transfer component’s data to a game instance?
So i made a component for a skill system, it works perfectly fine except that the skills tree will reset every time i open a new level. I wanted to save the data to the game instance, but i don’t know how to do it a component. I heard that component can’t be saved too? Is that true?
If maybe you guys are wondering, the tutorial I watch is from this
Maybe someone already watched it and knows the solution, please do tell me.
And if you need any details pls do tell, I’ll upload the screenshot of my blueprint
You can access the game instance from an actor component, so you can copy the component data across.
What is the specific problem?
If you’re looking for a one-click ‘copy all data’ node, there is none, you have to do it piece by piece
oh, so I just need to transfer the data from my skill component one by one to the game instance?
Yes, sorry, it’s not very exciting
You just need the same variables in the game instance, and you copy stuff across.
BTW, if you want the component to remember things not just between levels, but also between game sessions, then just do the whole thing in the save game.
It’s exactly the same process, but if you use the save game, you’re covered for both ( levels and restarting the game ).
alright, thanks for the answers, I’ll try it and hope it works!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.