sinbad / SPUD

Steve's Persistent Unreal Data library
MIT License
300 stars 44 forks source link

Where to call add persistent global object (mygameinstance)? #51

Closed phill266 closed 1 year ago

phill266 commented 1 year ago

When I GetSpudSubsystem and feed this into the target of AddPersistentGlobalObject with my game instance as the object, should I call this function on event init in my game instance, or where should I be calling this function to get SPUD to recognize my game instance as persistent? Sorry for all the questions, and thanks for your help.

sinbad commented 1 year ago

Yes, in your GameInstance init.

Please take a look at the examples project which has an example of this and other things: https://github.com/sinbad/SPUDExamples