How To Display Profile Pictures & Names - Steam Multiplayer Game in Unity
https://www.youtube.com/watc...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: https://www.youtube.com/watch?v=7Eoc8U8TWa8
Mirror: https://assetstore.unity.com/packages/tools/network/mirror-129321
FizzySteamworks: https://github.com/Chykary/FizzySteamworks/releases
Steam Docs: https://partner.steamgames.com/doc/home
Source Code: https://www.patreon.com/posts/steam-displaying-61375850
------My Personal Links------
Discord: https://discord.gg/tYDXGja55Y
Instagram: https://www.instagram.com/gabzxd/
Twitch: https://www.twitch.tv/officialzyger
Twitter: https://twitter.com/ZygerDesigns
➤WISHLIST MY GAME:
https://store.steampowered.com/app/1648340/Push_Me_If_You_Can/
//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
Home
/
Indie Game Developers/
Zyger/
How To Display Profile Pictures & Names - Steam Multiplayer Game in Unity