Photon Unity Networking 2: ActorProperties Class Reference

Photon Unity Networking 2

ActorProperties Class Reference

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

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

const byte IsInactive = 254

(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.

const byte PlayerName = 255

(255) Name of a player/actor.

const byte UserId = 253

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

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH