question

fox avatar image
fox asked

Simple leaderboard tutorial for Unity?

New to Playfab--I think I've found the API docs for leaderboard info:

https://docs.gamesparks.com/api-documentation/cloud-code-api/spark.html#getleaderboards

I have two simple leaderboards, and I just need to submit scores, and fetch leaderboard top 10 with current player info.

However, how can I access that Spark object e.g. Spark.logEvent, etc in my scripts? I can't seem to find the right namespace.

apisPlayer DataLeaderboards and Statistics
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

fox avatar image fox commented ·

or this is the wrong forum--i realize that was some GameSpark documentation i was looking at

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

Heh. No worries. Let us know if you need any help with the PlayFab tech as you work through your evaluation of the two services. :)

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.