How to save and load vector parameter value of geometry ? it resets after game is closed and open

i am trying to build a game based on clicking of objects , the objects change color as i click them but i am unable to save the change of color every time i close and open game the colour is not loading

Hey @Akshaykumar814!
Have you tried using a SaveGame Object?

yes i have created an array in the object , when i print string i can see it loaded in string but not on actor geometry , and i have added the "create material by dynamic material " instance node a pesudo script to save and load vector parameter of dynamic material instance would be awesome !!!
thank you

Hey @Akshaykumar814
Are you able to send a screenshot of what you have going on? Including your SaveGame system. I just want to see how it’s set up so I can work with it. And just to clear things up so I know we’re solving the same problem here. Everything works fine, it’s just that when you exit the game, the colors of the object aren’t saved to what they’ve been changed to?

1 Like

yup the colour doesn’t load back , they change back to invisible or default material

Try using a print statement after your ADD when you’re saving the material to your save slot and display what is being added. And maybe use a tick to loop through your saveSlot’s material array and see what’s being added to that.

Solved it , while saving save the dynamic material instance of geometry of the actor and load it back into the variable which saves the material instance , then set the vector parameter so that it brings back both dynamic material instance as well as colour of the actor :wink:
if you want Pseudo script let me know :wink:ffs

1 Like