Sign In Register

How can we help you today?

Start a new topic

Spark Scheduler and Unity

 I've learned how to use the spark scheduler but how can i call it from unity in c#?

1 Comment

Hi Marc


Spark Scheduler is in cloud code, to call cloud code from a client like Unity.You need to call the event  that the cloud code is in.

In unity this is done using a logeventrequest


    using GameSparks.Api;

    using GameSparks.Api.Requests;

    using GameSparks.Api.Responses;

    ...

    new LogEventRequest()

        .SetEventKey(eventKey)

        .Send((response) => {

        GSData scriptData = response.ScriptData;

        });


Regards

Katie


1 person likes this
Login to post a comment