static Texture LoadAvatar( long steamid )
static Texture LoadAvatar( string steamid )

book_4_sparkGenerated
code_blocksInput

Description

The LoadAvatar method is a static method of the Texture class in the Sandbox API. It is used to load a user's avatar texture from Steam using their Steam ID. This method returns a Texture object representing the avatar image.

Usage

To use the LoadAvatar method, you need to provide a valid Steam ID as a parameter. The method will return a Texture object that you can use in your application to display the user's avatar.

Example

// Example of loading a Steam user's avatar
long steamId = 76561198000000000; // Replace with a valid Steam ID
Texture avatarTexture = Texture.LoadAvatar(steamId);

// Use the avatarTexture in your application, e.g., display it on a UI element