Scene
Scene info, Object Script, Private, CreatClusterData, CreateClusterHandler docs.
Last updated
Scene info, Object Script, Private, CreatClusterData, CreateClusterHandler docs.
Last updated
Information about a Scene.
Access group of the scene.
Syntax[get: Sansar.Script.Interface] public AccessGroup { get; }
Value
String name of the access group.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Api version the scene is running.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Api version the scene is running.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Persona handle for the owner of the scene.
SyntaxValue
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Persona ID for the owner of the scene.
SyntaxValue
System.Guid
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Scene's build id for debugging.
SyntaxValue
String build id of the region server.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Scene's asset compatibility version for debugging.
SyntaxValue
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Scene's build configuration.
SyntaxValue
Expected values are debug, release or production.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The event id of this scene if it is part of an event.
SyntaxValue
The Guid for this event as a string.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Scene's World Id.
SyntaxValue
World id string
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Scene's experience name.
SyntaxValue
Experience name string
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Instance id for this specific instance of the scene.
SyntaxValue
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The role of this scene.
SyntaxValue
The role of this instance: "Unset", "Broadcaster", or "Clone".
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Location handle for the Experience.
SyntaxValue
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Maximum number of users allowed per instance of this scene.
SyntaxValue
Maximum number of users allowed in the scene.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Scene's message protocol version for debugging.
SyntaxValue
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The full Sansar URI for this instance of the scene.
SyntaxValue
String
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
Extend SceneObjectScript to create a script that can be used on content that is natively in the scene. This is the primary script type in Sansar.
Syntax[Sansar.Script.Interface] protected SceneObjectScript ()
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Internal use only.
SyntaxValue
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The ObjectPrivate this script is attached to if it is attached to an object.
SyntaxValue
The scene object this script is attached to if it is attached to an object, null otherwise.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The Scene API for the Scene this script is a part of if the script is attached to scene content.
SyntaxValue
The Scene API for this scene if this script was attached to scene content, null otherwise.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The number of agents in the Scene.
SyntaxValue
Unsigned integer count of the number of agents in the Scene.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a box from start to end and returns an array of collisions along the path.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
start
The initial point of the query.
end
The end point of the query.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a box from start to end and returns an array of collisions along the path.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
orientation
The orientation of the query shape.
start
The initial point of the query.
end
The end point of the query.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a box from start to end and returns an array of collisions along the path.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
start
The initial point of the query.
end
The end point of the query.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a box from start to end and returns an array of collisions along the path.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
orientation
The orientation of the query shape.
start
The initial point of the query.
end
The end point of the query.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a capsule from start to end and returns an array of collisions along the path.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
start
The initial point of the query.
end
The end point of the query.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a capsule from start to end and returns an array of collisions along the path.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
orientation
The orientation of the query shape.
start
The initial point of the query.
end
The end point of the query.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a capsule from start to end and returns an array of collisions along the path.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
start
The initial point of the query.
end
The end point of the query.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a capsule from start to end and returns an array of collisions along the path.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
orientation
The orientation of the query shape.
start
The initial point of the query.
end
The end point of the query.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a ray from start to end and returns an array of collisions along the path.
SyntaxParameters
start
The initial point of the query.
end
The end point of the query.
Returns
An array of hit results, ordered from nearest to furthest. If the cast did not hit anything the array will be empty.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a ray from start to end and returns an array of collisions along the path.
SyntaxParameters
start
The initial point of the query.
end
The end point of the query.
maxHits
Limit the number of results returned.
Returns
An array of hit results, ordered from nearest to furthest. If the cast did not hit anything the array will be empty.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a sphere from start to end and returns an array of collisions along the path.
SyntaxParameters
radius
The radius of the sphere.
start
The initial point of the query.
end
The end point of the query.
Returns
An array of hit results, ordered from nearest to furthest. If the cast did not hit anything the array will be empty.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Casts a sphere from start to end and returns an array of collisions along the path.
SyntaxParameters
radius
The radius of the sphere.
start
The initial point of the query.
end
The end point of the query.
maxHits
Limit the number of results returned.
Returns
An array of hit results, ordered from nearest to furthest. If the cast did not hit anything the array will be empty.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Gets the Chat interface for this Scene
SyntaxValue
The Chat Api
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Creates a new cluster and adds it to the Scene.
SyntaxParameters
asset
Asset identifier to create.
position
Mono.Simd.Vector4f for the initial position.
rotation
Mono.Simd.Vector4f for the initial rotation.
initialVelocity
Mono.Simd.Vector4f for the initial velocity.
Returns
The internal event id for the completion event.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Creates a new cluster and adds it to the Scene.
SyntaxParameters
asset
Asset identifier to create.
position
Mono.Simd.Vector4f for the initial position.
rotation
Mono.Simd.Vector4f for the initial rotation.
initialVelocity
Mono.Simd.Vector4f for the initial velocity.
handler
Handler to be called when the event completes.
Returns
The internal event id for the completion event.
RemarksThe new object may start simulating before the event is triggered.
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Creates a new cluster and adds it to the Scene.
SyntaxParameters
asset
Asset identifier to create.
position
Mono.Simd.Vector4f for the initial position.
rotation
Mono.Simd.Vector4f for the initial rotation.
initialVelocity
Mono.Simd.Vector4f for the initial velocity.
handler
Handler to be called when the event completes.
Returns
The internal event id for the completion event.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The default gravity magnitude in the scene in m/s^2, which is equal to 9.81 or 1 G.
SyntaxValue
The default scene gravity magnitude.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Looks up an Agent associated with the given object id.
SyntaxParameters
objectId
The object to find.
Returns
The agent, or null if an agent cannot be found with that id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Looks up an Agent associated with the given session id if they are in the scene.
SyntaxParameters
sessionId
The session id of the agent to find.
Returns
The agent, or null if an agent cannot be found with that id in the scene.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Looks up an Agent associated with the given persona id, if they are in the scene.
SyntaxParameters
personaId
The object to find.
Returns
The agent, or null if an agent cannot be found with that id in the scene.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Looks up a Object associated with the given object id.
SyntaxParameters
objectId
The object to find.
Returns
The ObjectPrivate, or null if a Object cannot be found with that id.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Looks up Reflective objects in the scene that match the interface type by class name.
SyntaxType Parameters
TInterface
The interface type to find.
Parameters
name
The type name of the object's class to find.
Returns
An IEnumerable which contains all objects of the given type name that match the given interface.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Looks up the script object associated with the given scriptId
SyntaxParameters
scriptId
The scriptId of the object to find.
Returns
The script object, or null if an script cannot be found with that id in the scene.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
SyntaxParameters
index
The index of the agent to get.
Returns
Returns null if the index is larger than the number of agents in the Scene, or if the agent is not fully loaded.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Returns the current list of Agents in the Scene.
SyntaxReturns
The current list of agents in the Scene
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a box with the given half extents the maximum distance and returns any hits.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
origin
The center of the query.
maximumDistance
the maximum distance from the origin to check.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a box with the given half extents the maximum distance and returns any hits.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
origin
The center of the query.
orientation
The orientation of the query shape.
maximumDistance
the maximum distance from the origin to check.
Returns
An array of hit results, ordered from nearest to furthest. If the cast did not hit anything the array will be empty.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a box with the given half extents the maximum distance and returns any hits.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
origin
The center of the query.
maximumDistance
the maximum distance from the origin to check.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a box with the given half extents the maximum distance and returns any hits.
SyntaxParameters
halfExtents
The x,y,z distance from the center of the box to the corresponding face.
origin
The center of the query.
orientation
The orientation of the query shape.
maximumDistance
the maximum distance from the origin to check.
maxHits
Limit the number of results returned.
Returns
An array of hit results, ordered from nearest to furthest. If the cast did not hit anything the array will be empty.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a capsule with the given parameters the maximum distance and returns any hits.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
origin
The base of the capsule.
maximumDistance
the maximum distance from the origin to check.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a capsule with the given parameters the maximum distance and returns any hits.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
origin
The base of the capsule.
orientation
The orientation of the query shape.
maximumDistance
the maximum distance from the origin to check.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a capsule with the given parameters the maximum distance and returns any hits.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
origin
The base of the capsule.
maximumDistance
the maximum distance from the origin to check.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a capsule with the given parameters the maximum distance and returns any hits.
SyntaxParameters
capsuleStart
The base point of the capsule.
capsuleEnd
The end point of the capsule.
capsuleRadius
The radius of the capsule to query.
origin
The base of the capsule.
orientation
The orientation of the query shape.
maximumDistance
the maximum distance from the origin to check.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Gets the scene's current acceleration of gravity in m/s^2.
SyntaxReturns
Number indicating the magnitude of gravity in the scene.
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The name of the user who created the specified portal.
SyntaxParameters
objectId
Documentation for this section has not yet been entered.
Returns
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Description for the specified portal.
SyntaxParameters
objectId
Documentation for this section has not yet been entered.
Returns
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
URI destination for the specified portal.
SyntaxParameters
objectId
Documentation for this section has not yet been entered.
Returns
String
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a sphere with the given radius the maximum distance and returns any hits.
SyntaxParameters
radius
The radius of the sphere to query.
origin
The center of the query.
maximumDistance
the maximum distance from the origin to check.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Extends a sphere with the given radius the maximum distance and returns any hits.
SyntaxParameters
radius
The radius of the sphere to query.
origin
The center of the query.
maximumDistance
the maximum distance from the origin to check.
maxHits
Limit the number of results returned.
Returns
Documentation for this section has not yet been entered.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The maximum gravity magnitude in m/s^2, which is equal to 49.05 or 5 G's.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The minimum allowed gravity magnitude in m/s^2, which is equal to zero.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Gets the HttpClient for this Scene
SyntaxValue
The HttpClient Api
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The maximum number of results returned from a ., . or . call. Anything over this will be truncated.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
The minimum radius for a . call or minimum half extents for .. Any value smaller than this will use . instead.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Overrides source of web audio streams.
SyntaxParameters
url
URL to use.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Overrides source of web audio streams.
SyntaxParameters
url
URL to use.
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
Sets stream channel source.
SyntaxParameters
url
URL to use.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Overrides source of media surfaces.
SyntaxParameters
url
URL to use.
mediaWidth
(cMediaChannel only) source width.
mediaHeight
(cMediaChannel only) source height.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Overrides source of media surfaces.
SyntaxParameters
url
URL to use.
mediaWidth
(cMediaChannel only) source width.
mediaHeight
(cMediaChannel only) source height.
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
Performs a specific action on the current media surface.
SyntaxParameters
action
The action to perform.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Performs a specific action on the current media surface.
SyntaxParameters
action
The action to perform.
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
Play sound to direct output.
SyntaxParameters
soundResource
The sound resource to play.
playSettings
The play parameters.
Returns
The play handle for controlling playback.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Play sound at specified position.
SyntaxParameters
soundResource
The sound resource to play.
position
The absolute position.
playSettings
The play parameters.
Returns
The play handle for controlling playback.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Play web audio stream to direct output.
SyntaxParameters
streamChannel
Channel of the audio stream to play.
loudness
Relative loudness in dB.
Returns
The play handle for controlling playback.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Play web audio stream at specified position.
SyntaxParameters
streamChannel
Channel of the audio stream to play.
position
The absolute position.
loudness
Relative loudness in dB.
Returns
The play handle for controlling playback.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Restarts the Scene.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Gets the SceneInfo for this Scene
SyntaxValue
The full SceneInfo Api
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the scene's current gravity acceleration in m/s^2.
SyntaxParameters
scale
The gravity magnitude.
Returns
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the scene's current gravity acceleration in m/s^2.
SyntaxParameters
scale
The gravity magnitude.
handler
Handler to be called when the event completes.
Returns
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the scene's current gravity acceleration in m/s^2.
SyntaxParameters
scale
The gravity magnitude.
handler
Handler to be called when the event completes.
Returns
Remarks
Example
C# Example
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the megaphone status of the user.
SyntaxParameters
agent
Agent to broadcast.
enable
If true, user's voice will be heard by everyone in the scene. If false, user's voice will be spatialized normally.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Sets the megaphone status of the user.
SyntaxParameters
agent
Agent to broadcast.
enable
If true, user's voice will be heard by everyone in the scene. If false, user's voice will be spatialized normally.
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
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
Gets the User interface for this Scene
SyntaxValue
The User Api
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Start broadcasting agent's voice to the voice broadcast channel.
SyntaxParameters
agent
Agent to broadcast.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stop broadcasting agent's voice to voice broadcast channel.
SyntaxParameters
agent
Agent to stop broadcasting.
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
Stop broadcasting all voices to voice broadcast channel.
Syntax
Remarks
RequirementsNamespace: Sansar.Simulation Assembly: Sansar.Simulation (in Sansar.Simulation.dll) Assembly Versions: 1.1.0.0
public static readonly ApiVersion
public static readonly ApiVersionString
[get: Sansar.Script.Interface] public AvatarId { get; }
[get: Sansar.Script.Interface] public AvatarUuid { get; }
[get: Sansar.Script.Interface] public BuildId { get; }
[get: Sansar.Script.Interface] public CompatVersion { get; }
[get: Sansar.Script.Interface] public Configuration { get; }
[get: Sansar.Script.Interface] public EventId { get; }
[get: Sansar.Script.Interface] public ExperienceId { get; }
[get: Sansar.Script.Interface] public ExperienceName { get; }
[get: Sansar.Script.Interface] public InstanceId { get; }
[get: Sansar.Script.Interface] public InstanceRole { get; }
[get: Sansar.Script.Interface] public LocationHandle { get; }
[get: Sansar.Script.Interface] public MaxUsers { get; }
[get: Sansar.Script.Interface] public ProtoVersion { get; }
[get: Sansar.Script.Interface] public SansarUri { get; }
[Sansar.Script.Interface] public override ToString ()
This constructor is called before any properties have been set. Override to initialize the script after properties have been set.
[Sansar.Script.NonReflective] [get: Sansar.Script.Interface] public ObjectPrivate { protected get; set; }
[Sansar.Script.NonReflective] [get: Sansar.Script.Interface] public ScenePrivate { protected get; set; }
[get: Sansar.Script.Interface] public AgentCount { get; }
[get: Sansar.Script.Interface] public Chat { get; }
[get: Sansar.Script.Interface] public DefaultGravity { get; }
[Sansar.Script.Interface] public FindAgent ( personaId)
[Sansar.Script.Interface] [Sansar.Script.NonReflective] [System.Runtime.CompilerServices.IteratorStateMachine(typeof(Sansar.Simulation.ScenePrivate/d__116`1))] public FindReflective ( name) where TInterface : class
[Sansar.Script.Interface] public GetAgent ( index)
[Sansar.Script.Interface] public GetGravity ()
public static readonly GravityMaximum
public static readonly GravityMinimum
[get: Sansar.Script.Interface] public HttpClient { get; }
public static readonly MaximumCastRayResults
public static readonly MinimumCastRadius
[Sansar.Script.Interface] public OverrideAudioStream ( url)
[Sansar.Script.Interface] public OverrideMediaSource ( url)
[Sansar.Script.Interface] public OverrideMediaSource ( url, mediaWidth, mediaHeight)
[Sansar.Script.Interface] public PerformMediaAction ( action)
[Sansar.Script.Interface(Restricted=true)] public ResetScene ()
[get: Sansar.Script.Interface] public SceneInfo { get; }
[Sansar.Script.Interface] public SetGravity ( scale)
The return value is an internal event id which can be passed to from a coroutine for synchronous behavior.
The return value is an internal event id which can be passed to from a coroutine for synchronous behavior.
The return value is an internal event id which can be passed to from a coroutine for synchronous behavior.
[Sansar.Script.Interface] public SetMegaphone ( agent, enable)
[Sansar.Script.Interface] public override ToString ()
[get: Sansar.Script.Interface] public User { get; }
[Sansar.Script.Interface] [System.Obsolete("Deprecated. use ScenePrivate.SetMegaphone(agent, true) instead", false)] public VoiceBroadcastStart ( agent)
[Sansar.Script.Interface] [System.Obsolete("Deprecated. use ScenePrivate.SetMegaphone(agent, false) instead", false)] public VoiceBroadcastStop ( agent)
[Sansar.Script.Interface] [System.Obsolete("Deprecated. use AgentPrivate.SetMegaphone(false) instead", false)] public VoiceBroadcastStopAll ()