diff --git a/Assets/Mirage/Runtime/NetworkServer.cs b/Assets/Mirage/Runtime/NetworkServer.cs
index a57edba1dd8..2c186cd2204 100644
--- a/Assets/Mirage/Runtime/NetworkServer.cs
+++ b/Assets/Mirage/Runtime/NetworkServer.cs
@@ -109,7 +109,7 @@ public class NetworkServer : MonoBehaviour, INetworkServer
/// Number of active player objects across all connections on the server.
/// This is only valid on the host / server.
///
- public int NumPlayers => connections.Count(kv => kv.Identity != null);
+ public int NumberOfPlayers => connections.Count(kv => kv.Identity != null);
///
/// A list of local connections on the server.
diff --git a/Assets/Mirage/Samples~/Pong/Scripts/PaddleSpawner.cs b/Assets/Mirage/Samples~/Pong/Scripts/PaddleSpawner.cs
index fb438cf2b22..4e1bcf334d4 100644
--- a/Assets/Mirage/Samples~/Pong/Scripts/PaddleSpawner.cs
+++ b/Assets/Mirage/Samples~/Pong/Scripts/PaddleSpawner.cs
@@ -13,12 +13,12 @@ public class PaddleSpawner : PlayerSpawner
public override void OnServerAddPlayer(INetworkConnection conn)
{
// add player at correct spawn position
- Transform start = Server.NumPlayers == 0 ? leftRacketSpawn : rightRacketSpawn;
+ Transform start = Server.NumberOfPlayers == 0 ? leftRacketSpawn : rightRacketSpawn;
NetworkIdentity player = Instantiate(PlayerPrefab, start.position, start.rotation);
ServerObjectManager.AddPlayerForConnection(conn, player.gameObject);
// spawn ball if two players
- if (Server.NumPlayers == 2)
+ if (Server.NumberOfPlayers == 2)
{
ball = Instantiate(ballPrefab);
ServerObjectManager.Spawn(ball);
diff --git a/Assets/Tests/Performance/Runtime/HeadlessBenchmark/Scripts/HeadlessBenchmark.cs b/Assets/Tests/Performance/Runtime/HeadlessBenchmark/Scripts/HeadlessBenchmark.cs
index a891ea249e7..4cca06a6ca1 100644
--- a/Assets/Tests/Performance/Runtime/HeadlessBenchmark/Scripts/HeadlessBenchmark.cs
+++ b/Assets/Tests/Performance/Runtime/HeadlessBenchmark/Scripts/HeadlessBenchmark.cs
@@ -52,7 +52,7 @@ private IEnumerator DisplayFramesPerSecons()
long messages = messageCount - previousMessageCount;
#if UNITY_EDITOR
- Debug.LogFormat("{0} FPS {1} messages {2} clients", frames, messages, server.NumPlayers);
+ Debug.LogFormat("{0} FPS {1} messages {2} clients", frames, messages, server.NumberOfPlayers);
#else
Console.WriteLine("{0} FPS {1} messages {2} clients", frames, messages, server.NumPlayers);
#endif
diff --git a/Assets/Tests/Runtime/ClientServer/NetworkServerTests.cs b/Assets/Tests/Runtime/ClientServer/NetworkServerTests.cs
index 0e80d7dc236..dcd35421f7c 100644
--- a/Assets/Tests/Runtime/ClientServer/NetworkServerTests.cs
+++ b/Assets/Tests/Runtime/ClientServer/NetworkServerTests.cs
@@ -114,7 +114,7 @@ public IEnumerator UnRegisterMessage1() => UniTask.ToCoroutine(async () =>
[Test]
public void NumPlayersTest()
{
- Assert.That(server.NumPlayers, Is.EqualTo(1));
+ Assert.That(server.NumberOfPlayers, Is.EqualTo(1));
}
[Test]