UserData

UserData Class

Subscribe to receive events when users enter or leave the experience, or change their chat name.

Syntax

[Sansar.Script.Interface]
public class UserData : Sansar.Script.EventData

Remarks

 

Requirements

Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0

Members

See Also: Inherited members from Sansar.Script.EventData.

Public Properties

[read-only]
 
Action string . string action of the event: AddUser, RemoveUser, NameChange
[read-only]
 
Data string . On NameChange events, the user's old name. Otherwise an empty string.
[read-only]
 
User Sansar.Script.SessionId . Sansar.Script.SessionId for the user.

Member Details

Action Property

string action of the event: AddUser, RemoveUser, NameChange

Syntax

[get: Sansar.Script.Interface]
public string Action { get; }

Value

Remarks

 

Requirements

Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0

Data Property

On NameChange events, the user's old name. Otherwise an empty string.

Syntax

[get: Sansar.Script.Interface]
public string Data { get; }

Value

Remarks

 

Requirements

Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0

User Property

Sansar.Script.SessionId for the user.

Syntax

[get: Sansar.Script.Interface]
public Sansar.Script.SessionId User { get; }

Value

Remarks

 

Requirements

Namespace: Sansar.Simulation
Assembly: Sansar.Simulation (in Sansar.Simulation.dll)
Assembly Versions: 1.1.0.0


 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.