Interaction
Last updated
Last updated
Returns true if the interaction is enabled.
Syntax[Sansar.Script.Interface] public GetEnabled ()
Returns
true if the interaction is enabled.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Get the current Interaction prompt.
SyntaxReturns
The current prompt string.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
value
true to enable the Interaction, false to disable it.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
sessionId
The SessionId of the agent to disable or enable the interaction for..
value
true to enable the Interaction, false to disable it.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
agent
The agent to disable or enable the interaction for.
value
true to enable the Interaction, false to disable it.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
value
true to enable the Interaction, false to disable it.
handler
Handler to be called when the event completes.
Returns
A legacy eventId
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
value
true to enable the Interaction, false to disable it.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
sessionId
The SessionId of the agent to disable or enable the interaction for..
value
true to enable the Interaction, false to disable it.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Change an Interaction state to disabled or enabled.
SyntaxParameters
agent
The agent to disable or enable the interaction for.
value
true to enable the Interaction, false to disable it.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
prompt
The string to set the prompt to.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
sessionId
The sessionId of the user to change the prompt for.
prompt
The string to set the prompt to.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
agent
The agent to change the prompt for.
prompt
The string to set the prompt to.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
prompt
The string to set the prompt to.
handler
Handler to be called when the event completes.
Returns
A legacy eventId
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
prompt
The string to set the prompt to.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
sessionId
The sessionId of the user to change the prompt for.
prompt
The string to set the prompt to.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Set the Interaction prompt string.
SyntaxParameters
agent
The agent to change the prompt for.
prompt
The string to set the prompt to.
handler
Handler to be called when the event completes.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Subscribes to Interaction Events.
SyntaxSee Also
Parameters
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
Handler for Interaction events.
The SessionId of the agent who clicked the Interaction.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The ControlPoint that triggered the Interaction.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The normal direction at the position of the Interaction.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The position of the Interaction.
SyntaxValue
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The position of the start of the ray that triggered the Interaction.
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.Interface] public GetPrompt ()
[Sansar.Script.Interface] public SetEnabled ( value)
[Sansar.Script.Interface] public SetPrompt ( prompt)
An that can be used to cancel the subscription.
[get: Sansar.Script.Interface] public ControlPoint { get; }
[get: Sansar.Script.Interface] public HitNormal { get; }
[get: Sansar.Script.Interface] public HitPosition { get; }
[get: Sansar.Script.Interface] public Origin { get; }
[Sansar.Script.Interface] public override ToString ()