Module vrWebEngineObj
[frames] | no frames]

Module vrWebEngineObj

Functions
bool
hasWebEngineFocus()
Deprecated.
bool
isWebEngineInteractionEnabled()
Deprecated.
 
sendToWebEngine(name, event, data)
Deprecated.
 
setWebEngineInteractionEnabled(enabled)
Deprecated.
Function Details

hasWebEngineFocus()

 

Deprecated. Use vrWebEngineService.anyWebEngineHasFocus() instead.

Return true if a web engine has the focus.

Returns: bool
has focus

isWebEngineInteractionEnabled()

 

Deprecated. Use vrWebEngineService.isInteractionEnabled() instead.

Return true if interaction with web engines is enabled.

Returns: bool
interaction enabled

sendToWebEngine(name, event, data)

 

Deprecated. Use vrdWebEngine.sendEvent() instead.

Sends a custom event to a web engine.

Note: there was a necessary change in how the 'data' parameter is handled internally in VRED 2021.3. 'data' is now no longer quoted. If you rely on this, please set the content of data in quotes when calling this function. For more details, please see the 'Custom Javascript events in Webengines' example in the API V2 documentation.

Parameters:
  • name (string) - The name of the web engine.
  • event (string) - The name of the user event.
  • data (string) - The string data.

setWebEngineInteractionEnabled(enabled)

 

Deprecated. Use vrWebEngineService.setInteractionEnabled() instead.

Enables or disables the interaction with all web engines in the scene.

Parameters:
  • enabled (bool) - Enabled/disabled.