6

I'm coding a game in C# in unity3d. I installed the Steamworks API, and now I see that a lot of things like getPersonaName() and avatar need SteamID to fetch them. I want to know how, even if it's the briefest of explanation, just point me in the right direction.

P.s: on their support page is a link to documentation. In that documentation are the examples for getting your name and names of your "friends", but the examples use CSteamID variable, which declaration is unknown.

halfer
  • 19,824
  • 17
  • 99
  • 186
MG lolenstine
  • 919
  • 1
  • 11
  • 32

1 Answers1

7

You should be able to call:

SteamUser.GetSteamID();
Matt
  • 1,377
  • 2
  • 13
  • 26
  • I got it to work, but I don't know how to change id.getMediumAvatar() into Texture in unity3d? EDIT: Don't know how to do tags. – MG lolenstine Sep 26 '16 at 17:59
  • That sounds like the kind of thing that you should create a new question for, rather than nesting it in the comments on this one. – Matt Sep 27 '16 at 13:56
  • 1
    Created a new one :D http://stackoverflow.com/questions/39709536/how-to-use-id-getsmallavatar-unity3d-with-steamworks – MG lolenstine Sep 28 '16 at 05:39