User Data
Last updated
Last updated
The User class handles interactions user logins and logoffs.
For subscribing to events for users entering the scene
Syntaxpublic static readonly AddUser
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
For subscribing to events for users leaving the scene
Syntaxpublic static readonly RemoveUser
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to User Events.
SyntaxParameters
Action
string action of the event: AddUser, RemoveUser
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to User Events.
SyntaxSee Also
Parameters
Action
string action of the event: AddUser, RemoveUser
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to User Events.
SyntaxParameters
Action
string action of the event: AddUser, RemoveUser
User
Sansar.Script.SessionId for the user.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to User Events.
SyntaxSee Also
Parameters
Action
string action of the event: AddUser, RemoveUser
User
Sansar.Script.SessionId for the user.
callback
Callback which is executed when the event completes.
persistent
Optional, set to false to unsubscribe after one event.
Returns
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribe to receive events when users enter or leave the experience, or change their chat name.
Parameters
Action
string action of the event: AddUser, RemoveUser
User
Sansar.Script.SessionId for the user.
Data
Deprecated.
Namespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribe to receive events when users enter or leave the experience.
string action of the event: AddUser, RemoveUser
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Deprecated.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
A string representation of this object.
SyntaxReturns
A string representation of this object.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sansar.Script.SessionId for the user.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
[Sansar.Script.Interface] [System.Obsolete("Use subscription callbacks of type Action<Sansar.Simulation.UserData>", false)] public Subscribe ( Action, callback, persistent)
An that can be used to cancel the subscription.
An that can be used to cancel the subscription.
[Sansar.Script.Interface] [System.Obsolete("Use subscription callbacks of type Action<Sansar.Simulation.UserData>", false)] public delegate User.SubscriptionHandler ( Action, User, Data)
[get: Sansar.Script.Interface] public Action { get; }
[get: Sansar.Script.Interface] public Data { get; }
[Sansar.Script.Interface] public override ToString ()