How to get steamID from Steamworks API in Unity3D in C#?
Asked Answered
D

1

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.

Divertimento answered 24/8, 2016 at 19:44 Comment(0)
C
8

You should be able to call:

SteamUser.GetSteamID();
Comnenus answered 13/9, 2016 at 21:25 Comment(3)
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 <code> tags.Divertimento
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.Comnenus
Created a new one :D #39710036Divertimento

© 2022 - 2024 — McMap. All rights reserved.