High Fidelity API Reference
Tools Used: JavaScript, JSDoc, GitHub Pages, Markdown, HTML, CSS
Agent
The Agent API enables an assignment client to emulate an avatar. Setting isAvatar = true connects the assignment client to the avatar and audio mixers, and enables the MyAvatar API.
Supported Script Types: Assignment Client Scripts
Properties
| Name | Type | Summary |
|---|---|---|
isAvatar | boolean |
|
sessionUUID | The unique ID associated with the agent's current session in the domain. Read-only. |
Methods
| Name | Return Value | Summary |
|---|---|---|
isAvatar | boolean | Checks whether the script is emulating an avatar. |
setIsAvatar | None | Sets whether the script should emulate an avatar. |
Method Details
isAvatarReturns: |
|---|
Checks whether the script is emulating an avatar. Example: Check whether the agent is emulating an avatar |
setIsAvatar | ||||||
|---|---|---|---|---|---|---|
Sets whether the script should emulate an avatar. Parameters
Example: Make an assignment client script emulate an avatar |