Displaying an Avatar

Wednesday, January 10, 2018

Most people that use my Steamworks library only want to do a few basic things. One of those is showing an avatar.

Easy Way

The simple answer is:

If you want to set the SteamID dynamically you need to do something like:

Manual Way

The manual way is basically just looking at the above component and seeing what it does.

Request The Avatar


What's in theĀ Image

  • Width + Height- size of the image in pixels

  • Id - Steam's internal image id (not Steam Id)

  • Data - array of bytes, 0-255 representing the colours.

  • GetPixel( x, y ) - convenience function, lets you get the Color of a pixel at x, y


You can manually read from Data if the convenience class is too dumb for you and you want to do something smarter.

The data is laid out RGBA. Here's how GetPixel reads a pixel.

More Rubbish

Your Portfolio Gave Me Diarrhea

Friday, October 1, 2021


Friday, September 24, 2021

We got married

Thursday, September 16, 2021

Unity Quiz

Sunday, September 6, 2020

Everything We Watched In Lockdown

Thursday, September 3, 2020

Player Name Overlay

Tuesday, January 9, 2018

Tesla Model X

Sunday, September 3, 2017

Naming Stuff

Friday, July 21, 2017

Facepunch Api

Friday, June 16, 2017


Thursday, June 8, 2017