Photon Unity Networking 2 2.45

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.

These constants are used internally. "Custom properties" have to use a string-type as key. They can be assigned at will.

Member Data Documentation

◆ IsInactive

const byte 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 PlayerName = 255
static

(255) Name of a player/actor.

◆ UserId

const byte UserId = 253
static

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