How To Display Profile Pictures & Names - Steam Multiplayer Game in Unity
Zyger Zyger
74.8K subscribers
33,594 views
0

 Published On Jan 19, 2022

In this video I will be showing you how to display members who join your lobby. I will show you how to make this modular so no matter how many people join your lobby will look neat and nice. I will also go over how to display steam usernames and profile pictures and how to get it all setup so no matter who joins and leaves it works. Finally I will show you how to remove users when someone leaves or disconnects.

-----Tutorial Links-----
Previous Tutorial:    • How To Make A Steam Multiplayer Game ...  
Mirror: https://assetstore.unity.com/packages...
FizzySteamworks: https://github.com/Chykary/FizzySteam...
Steam Docs: https://partner.steamgames.com/doc/home
Source Code:   / steam-displaying-61375850  

-----My Personal Links-----
Discord:   / discord  
Instagram:   / gabzxd  
Twitch:   / officialzyger  
Twitter:   / zygerdesigns  

➤WISHLIST MY GAME:
https://store.steampowered.com/app/16...

//Code Snippet From Video

private Texture2D GetSteamImageAsTexture(int iImage)
{
Texture2D texture = null;

bool isValid = SteamUtils.GetImageSize(iImage, out uint width, out uint height);
if (isValid)
{
byte[] image = new byte[width * height * 4];

isValid = SteamUtils.GetImageRGBA(iImage, image, (int)(width * height * 4));

if (isValid)
{
texture = new Texture2D((int)width, (int)height, TextureFormat.RGBA32, false, true);
texture.LoadRawTextureData(image);
texture.Apply();
}
}
AvatarReceived = true;
return texture;
}


----Time Stamps-----
0:00 - Intro
0:19 - Stage 1 - Setting Up UI & Scene
1:51 - Stage 2 - Prefab and Script Making
3:16 - Stage 3 - Writing Scripts
5:05 - Player Object Controller Script
7:14 - Network Manager Script
8:28 - Player List Item Script
11:02 - Lobby Controller Script
20:57 - Player Object Controller Script
23:47 - Final Editor Changes
24:49 - Testing
25:37 - Outro

show more

Share/Embed