Sign In Register

How can we help you today?

Start a new topic
Answered

GSData

Hi , im trying to send a new challengerequest and in api reference shows in response this:


string challengeInstanceId = response.ChallengeInstanceId;
GSData scriptData = response.ScriptData;



but in my monodevelop (im using unity3d) it seems that the IDE cant find GSData class , i have the imports that the api reference shows it's needed


using GameSparks.Api;
using GameSparks.Api.Requests;
using GameSparks.Api.Responses;


so please can you tell me if i need to import something more ?


thanks in advance.


JOKINN




Best Answer
Hey Joaquin,

So the using directive you'll need is as follows...

using GameSparks.Core;

 

You should be able to get the right directive automatically by right-clicking on the 'GSData' and selecting 'resolve', this should automatically insert the right directive for you.

Sean


Answer
Hey Joaquin,

So the using directive you'll need is as follows...

using GameSparks.Core;

 

You should be able to get the right directive automatically by right-clicking on the 'GSData' and selecting 'resolve', this should automatically insert the right directive for you.

Sean


1 person likes this

 Hey Joaquin,

Did you get sorted it out?


Sean

Sorry to late answering , yes it helped me , thanks Sean.

 

That helped me as well. Thanks! 

It might need to be updated in the GameSparks Learn API documentation: https://api.gamesparks.net/?csharpsdk#teams

The tutorials for unity seriously need to be updated to include the line:

using GameSparks.Core;


Every single one of them that references GSData that doesn't have this line is wrong.  I am liking GameSparks so far, but the documentation is lacking.

Login to post a comment