Click or drag to resize

SFSUserIsSpectator Property

Indicates whether this user is a spectator (playerId lower than 0) in the last joined Room or not.

Namespace:  Sfs2X.Entities
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public bool IsSpectator { get; }

Property Value

Type: Boolean

Implements

UserIsSpectator
Remarks
Non-Game Rooms always return false.

If the user is inside multiple Game Rooms at the same time, use the IsSpectatorInRoom(Room) method.

See Also