Showing a Kongregate user's avatar image in a Unity 3D game

2 posts

Flag Post

This is a tutorial I wrote recently about how to retrieve and show a Kongregate user’s avatar image in-game.

The post is at http://blog.dreasgrech.com/2013/04/showing-kongregate-users-avatar-image.html and I use a C# code example.

The end result is something like this:

In short, what I do is use the user-info REST API method to fetch details about the current user, extract the avatar url to download the image and then rendering it on screen as a texture.

If anyone should give it a look, I would really appreciate feedback on what I should add or correct in article. Cheers!

 
Flag Post

To get past the crossdomain warning/restriction, you should use the subdomain api to make REST calls. So your user_info url would become http://api.kongregate.com/api/user_info.json?username={0}