PUN Essential API Reference
Current Room Player Count
int playerCount = PhotonNetwork.CurrentRoom.PlayerCount;
Checking Ownership of a PhotonView
When using scripts that inherit from MonoBehaviourPun, you can determine if the current instance belongs to the local player:
bool isOwner = photonView.IsMine;
Checking if a Player is Local
bool isLocal = somePlayer.IsLocal;
...
Posted on Sat, 09 May 2026 15:35:46 +0000 by allydm
Unity 2D Character Movement Implementation Guide
Overview
This guide demonstrates how to implement a robust 2D character movement system in Unity using a state machine architecture. We'll cover animation setup, physics configuration, input handling, and directional flipping to create responsive character controls suitable for platformer games.
Animation System Setup
Preparing the Sprite Asset ...
Posted on Sat, 09 May 2026 03:13:04 +0000 by bsamson
Optimizing UGUI Performance
Core Concepts
All UI elements are rendered using mesh-based geometry.
An Image component consists of two triangles forming four vertices.
A draw call represents a GPU command submission for rendering an object or batch of objects. Each draw call involves sending rendering instructions to the graphics processor.
Fill rate refers to the number of ...
Posted on Fri, 08 May 2026 02:04:05 +0000 by Trek15