Photon Unity Networking v1.101

Static Public Attributes | List of all members
ActorProperties Class Reference

Class for constants. These (byte) values define "well known" properties for an Actor / Player. More...

Static Public Attributes

const byte PlayerName = 255
 (255) Name of a player/actor. More...
 
const byte IsInactive = 254
 (254) Tells you if the player is currently in this game (getting events live). More...
 
const byte UserId = 253
 (253) UserId of the player. Sent when room gets created with RoomOptions.PublishUserId = true. More...
 

Detailed Description

Class for constants. These (byte) values define "well known" properties for an Actor / Player.

Pun uses these constants internally. "Custom properties" have to use a string-type as key. They can be assigned at will.

Member Data Documentation

◆ IsInactive

const byte ActorProperties.IsInactive = 254
static

(254) Tells you if the player is currently in this game (getting events live).

A server-set value for async games, where players can leave the game and return later.

◆ PlayerName

const byte ActorProperties.PlayerName = 255
static

(255) Name of a player/actor.

◆ UserId

const byte ActorProperties.UserId = 253
static

(253) UserId of the player. Sent when room gets created with RoomOptions.PublishUserId = true.