Sign In Register

How can we help you today?

Start a new topic
Answered

A way to control when GameSparks connects on startup?

I would like to defer connection to the GameSparks service until some startup operations complete. Currently, the PlatformBase implementation will connect as soon as it is created.


Is there a way around that so that I can control when the connection should be made?


Best Answer

Hi Jason,


A simple way to do this would be to have the GameSparks object as a prefab and instantiate it when required, once in the scene it will make a connection with GameSparks.


Thanks,

Liam


Answer

Hi Jason,


A simple way to do this would be to have the GameSparks object as a prefab and instantiate it when required, once in the scene it will make a connection with GameSparks.


Thanks,

Liam

Hi Liam,


I am actually doing that already, but it is one of a group of prefabs which orchestrate initialization of various services within my game. It's not critical. I can hack around it, but it would be nice for the library to not assume anything about the usage patterns of its users.


Thanks!

Login to post a comment