Photon Unity Networking v1.101

Static Public Attributes | List of all members
Photon.Chat.ChatUserStatus Class Reference

Contains commonly used status values for SetOnlineStatus. You can define your own. More...

Static Public Attributes

const int Offline = 0
 (0) Offline. More...
 
const int Invisible = 1
 (1) Be invisible to everyone. Sends no message. More...
 
const int Online = 2
 (2) Online and available. More...
 
const int Away = 3
 (3) Online but not available. More...
 
const int DND = 4
 (4) Do not disturb. More...
 
const int LFG = 5
 (5) Looking For Game/Group. Could be used when you want to be invited or do matchmaking. More...
 
const int Playing = 6
 (6) Could be used when in a room, playing. More...
 

Detailed Description

Contains commonly used status values for SetOnlineStatus. You can define your own.

While "online" (value 2 and up), the status message will be sent to anyone who has you on his friend list.

Define custom online status values as you like with these rules: 0: Means "offline". It will be used when you are not connected. In this status, there is no status message. 1: Means "invisible" and is sent to friends as "offline". They see status 0, no message but you can chat. 2: And any higher value will be treated as "online". Status can be set.

Member Data Documentation

◆ Away

const int Photon.Chat.ChatUserStatus.Away = 3
static

(3) Online but not available.

◆ DND

const int Photon.Chat.ChatUserStatus.DND = 4
static

(4) Do not disturb.

◆ Invisible

const int Photon.Chat.ChatUserStatus.Invisible = 1
static

(1) Be invisible to everyone. Sends no message.

◆ LFG

const int Photon.Chat.ChatUserStatus.LFG = 5
static

(5) Looking For Game/Group. Could be used when you want to be invited or do matchmaking.

◆ Offline

const int Photon.Chat.ChatUserStatus.Offline = 0
static

(0) Offline.

◆ Online

const int Photon.Chat.ChatUserStatus.Online = 2
static

(2) Online and available.

◆ Playing

const int Photon.Chat.ChatUserStatus.Playing = 6
static

(6) Could be used when in a room, playing.