Description
Supported Script Types: Interface Scripts • Client Entity Scripts • Avatar Scripts
TheAvatarInputs
API provides facilities to manage user inputs.Properties
Name | Type | Summary |
---|---|---|
cameraEnabled | boolean |
Deprecated: This property is deprecated and has been removed. |
cameraMuted | boolean |
Deprecated: This property is deprecated and has been removed. |
ignoreRadiusEnabled | boolean |
|
isHMD | boolean |
|
showAudioTools | boolean |
|
showBubbleTools | boolean |
|
Methods
Name | Return Value | Summary |
---|---|---|
loudnessToAudioLevel
|
number |
Converts non-linear audio loudness to a linear audio level. |
resetSensors
|
None |
Resets sensors, audio, avatar animations, and the avatar rig. |
setShowAudioTools
|
None |
Sets whether or not the microphone mute button and audio level meter is shown. |
setShowBubbleTools
|
None |
Sets whether or not the privacy shield button is shown. |
toggleCameraMute
|
None |
Toggles the muting (temporary disablement) of webcam face tracking on/off. Deprecated: This function is deprecated and has been removed. |
Signals
Name | Summary |
---|---|
avatarEnteredIgnoreRadius
|
Triggered when another user enters the privacy shield. |
avatarLeftIgnoreRadius
|
Triggered when another user leaves the privacy shield. Note: Currently doesn't work. Deprecated: This signal is deprecated and will be removed. |
cameraEnabledChanged
|
Triggered when webcam face tracking is enabled or disabled. Deprecated: This signal is deprecated and has been removed. |
cameraMutedChanged
|
Triggered when webcam face tracking is muted (temporarily disabled) or unmuted. Deprecated: This signal is deprecated and has been removed. |
enteredIgnoreRadiusChanged
|
Triggered when another user enters the privacy shield. |
ignoreRadiusEnabledChanged
|
Triggered when the privacy shield is enabled or disabled. |
isHMDChanged
|
Triggered when the display mode changes between desktop and HMD. |
showAudioToolsChanged
|
Triggered when the visibility of the microphone mute button and audio level meter changes. |
showBubbleToolsChanged
|
Triggered when the visibility of the privacy shield button changes. |
Method Details
(static) loudnessToAudioLevel( loudness ) → {number}
Returns: The linear audio level. |
||||||
---|---|---|---|---|---|---|
Converts non-linear audio loudness to a linear audio level. Parameters
|
(static) resetSensors( ) |
---|
Resets sensors, audio, avatar animations, and the avatar rig. |
(static) setShowAudioTools( showAudioTools ) | ||||||
---|---|---|---|---|---|---|
Sets whether or not the microphone mute button and audio level meter is shown. Parameters
|
(static) setShowBubbleTools( showBubbleTools ) | ||||||
---|---|---|---|---|---|---|
Sets whether or not the privacy shield button is shown. Parameters
|
(static) toggleCameraMute( ) |
---|
Toggles the muting (temporary disablement) of webcam face tracking on/off. Deprecated: This function is deprecated and has been removed. |
Signal Details
avatarEnteredIgnoreRadius(
avatarID
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when another user enters the privacy shield. Parameters
Example
|
avatarLeftIgnoreRadius(
avatarID
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when another user leaves the privacy shield. Note: Currently doesn't work. Deprecated: This signal is deprecated and will be removed. Parameters
|
cameraEnabledChanged(
)
Returns: Signal |
---|
Triggered when webcam face tracking is enabled or disabled. Deprecated: This signal is deprecated and has been removed. |
cameraMutedChanged(
)
Returns: Signal |
---|
Triggered when webcam face tracking is muted (temporarily disabled) or unmuted. Deprecated: This signal is deprecated and has been removed. |
enteredIgnoreRadiusChanged(
)
Returns: Signal |
---|
Triggered when another user enters the privacy shield. |
ignoreRadiusEnabledChanged(
enabled
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when the privacy shield is enabled or disabled. Parameters
|
isHMDChanged(
)
Returns: Signal |
---|
Triggered when the display mode changes between desktop and HMD. |
showAudioToolsChanged(
show
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when the visibility of the microphone mute button and audio level meter changes. Parameters
|
showBubbleToolsChanged(
show
)
Returns: Signal |
||||||
---|---|---|---|---|---|---|
Triggered when the visibility of the privacy shield button changes. Parameters
|