Photon Unity Networking: ActorProperties Class Reference

Photon Unity Networking

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 ActorProperties.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 ActorProperties.PlayerName = 255

(255) Name of a player/actor.

const byte ActorProperties.UserId = 253

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

Online Documentation  -  Dashboard  -  Support Forum Exit Games GmbH