SimulatedPlayer

csharp
public sealed class SimulatedPlayer : IPlayerInfo

Namespace NodeWorld.SDK.Shared.PlayMode.

A player of Play mode: the local one, or a simulated other player.

Properties

PlayerId

csharp
public uint PlayerId { get; set; }

The player's ID in the room.

DisplayName

csharp
public string DisplayName { get; set; }

The player's name.

Role

csharp
public string Role { get; }

Always "player".

IsMuted

csharp
public bool IsMuted { get; }

Never muted.

Position

csharp
public Vector3 Position { get; set; }

World position.

Rotation

csharp
public Quaternion Rotation { get; set; }

World rotation.

AvatarInstance

csharp
public GameObject AvatarInstance { get; set; }

The avatar shown for the player, or null.