|
Drag[en]gine Script Module DragonScript 1.35
|
VR system. More...
Static Public Member Functions | |
Management | |
| static bool | runtimeUsable () |
| VR Runtime is usable. | |
| static void | requestFeatureEyeGazeTracking (VRFeatureSupportLevel level) |
| Set feature request level for eye gaze tracking. | |
| static void | requestFeatureFacialTracking (VRFeatureSupportLevel level) |
| Set feature request level for facial tracking. | |
| static void | requestFeatureBodyTracking (VRFeatureSupportLevel level) |
| Set feature request level for body tracking. | |
| static bool | supportsEyeGazeTracking () |
| Eye gaze tracking is supported. | |
| static bool | supportsFacialTracking () |
| Facial tracking is supported. | |
| static bool | supportsBodyTracking () |
| Body tracking is supported. | |
| static void | startRuntime () |
| Start VR. | |
| static void | stopRuntime () |
| Stop VR. | |
| static bool | isRuntimeRunning () |
| VR is running. | |
| static Camera | getCamera () |
| Camera to render on head mounted display or null. | |
| static void | setCamera (Camera camera) |
| Set camera to render on head mounted display. | |
| static bool | supportsPassthrough () |
| VR Runtime supports presenting user environment inside the rendered world. | |
| static bool | getEnablePassthrough () |
| Presenting user environment inside the rendered world is enabled. | |
| static void | setEnablePassthrough (bool enable) |
| Enable presenting user environment inside the rendered world. | |
| static float | getPassthroughTransparency () |
| Transparency of user environment presented inside the rendered world. | |
| static void | setPassthroughTransparency (float transparency) |
| Set transparency of user environment presented inside the rendered world. | |
| static void | centerPlayspace () |
| Center playspace with forward direction matching looking direction. | |
Input devices | |
| static int | getDeviceCount () |
| Number of input devices. | |
| static InputDevice | getDeviceAt (int index) |
| Information for input device at index. | |
| static int | indexOfDeviceWithID (String id) |
| Index of device with identifier or -1 if absent. | |
| static int | indexOfButtonWithID (int device, String id) |
| Index of button with identifier on device at index or -1 if absent. | |
| static int | indexOfAxisWithID (int device, String id) |
| Index of axis with identifier on device at index or -1 if absent. | |
| static int | indexOfFeedbackWithID (int device, String id) |
| Index of feedback with identifier on device at index or -1 if absent. | |
| static bool | getButtonPressed (int device, int button) |
| Button at index on device at index is pressed down. | |
| static bool | getButtonTouched (int device, int button) |
| Button at index on device at index is touched. | |
| static bool | getButtonNear (int device, int button) |
| User finger is near button at index on device at index. | |
| static float | getAxisValue (int device, int axis) |
| Value of axis at index on device at index. | |
| static float | getFeedbackValue (int device, int feedback) |
| Value of feedback at index on device at index. | |
| static void | setFeedbackValue (int device, int feedback, float value) |
| Set value of feedback at index on device at index. | |
Parameters | |
| static int | getParameterCount () |
| Number of parameters available. | |
| static ModuleParameter | getParameterInfo (int index) |
| Parameter information. | |
| static ModuleParameter | getParameterInfo (String name) |
| Named parameter information or null if not found. | |
| static String | getParameterValue (String name) |
| Parameter value. | |
| static void | setParameterValue (String name, String value) |
| Set named parameter value. | |
| static String | sendCommand (String command) |
| Send command. | |
VR system.
This is a native class. This is a pure static class. The class can not be instantiated
|
static |
Center playspace with forward direction matching looking direction.
Has no effect if runtime is not running.
Playspace is not automatically centered after starting the VR runtime. Call this function any time later to center the playspace, for example if the player adjusted seating position or if the VR runtime uses a broken playspace orientation.
References getPassthroughTransparency().
Referenced by getButtonPressed().
|
static |
|
static |
User finger is near button at index on device at index.
References getDeviceCount().
Referenced by sendCommand().
|
static |
Button at index on device at index is pressed down.
References centerPlayspace().
Referenced by getParameterInfo().
|
static |
Button at index on device at index is touched.
Referenced by getParameterValue().
|
static |
Camera to render on head mounted display or null.
Referenced by supportsPassthrough().
|
static |
Information for input device at index.
References setPassthroughTransparency().
Referenced by getAxisValue().
|
static |
Number of input devices.
Referenced by getButtonNear().
|
static |
Presenting user environment inside the rendered world is enabled.
Returns false if SupportsPassthrough() returns false.
References setCamera().
Referenced by getPassthroughTransparency().
|
static |
Value of feedback at index on device at index.
Referenced by sendCommand().
|
static |
|
static |
Parameter information.
| EOutOfBoundary | index less than 0 or greater than or equal to getParameterCount(). |
References indexOfFeedbackWithID().
Referenced by sendCommand().
|
static |
Named parameter information or null if not found.
References getButtonPressed().
|
static |
Parameter value.
| EInvalidParam | Parameter with name not found. |
References getButtonTouched().
Referenced by sendCommand().
|
static |
Transparency of user environment presented inside the rendered world.
Has no effect if SupportsPassthrough() returns false. A value of 0 hides the environment. A value of 1 shows the environment. Values in between blend over.
References getEnablePassthrough().
Referenced by centerPlayspace().
|
static |
Index of axis with identifier on device at index or -1 if absent.
Referenced by getParameterCount().
|
static |
Index of button with identifier on device at index or -1 if absent.
Referenced by setFeedbackValue().
|
static |
Index of device with identifier or -1 if absent.
Referenced by setFeedbackValue().
|
static |
Index of feedback with identifier on device at index or -1 if absent.
Referenced by getParameterInfo().
|
static |
VR is running.
VR systems typically are required to be activated before they can be used. Starting VR connects the engine to the VR system present on the host system and activates VR support on various modules. VR mode can be started and stopped at any time.
References stopRuntime().
Referenced by setCamera().
|
static |
Set feature request level for body tracking.
Body tracking provides the pose of body as input device bones. Estimating bode pose is an expensive operation running on the headset. The majority of games and applications do not require body tracking. To enable set the feature request level to VRFeatureSupportLevel#optional or VRFeatureSupportLevel#required.
The set feature request level takes effect only the next time startRuntime() is called. It has no effect while the VR runtime is running.
If the VR module does not support body tracking and VRFeatureSupportLevel#required is specified an exception is thrown.
References requestFeatureBodyTracking().
Referenced by requestFeatureBodyTracking().
|
static |
Set feature request level for eye gaze tracking.
Tracking eye gaze features is consider a high privacy operation by most VR environments. Enabling this feature usually requires the user to explicitely agree. Furthermore eye gaze tracking is not required for the majority of games and applications. For these reasons eye gaze tracking is disabled by default. To enable set the feature request level to VRFeatureSupportLevel#optional or VRFeatureSupportLevel#required.
The set feature request level takes effect only the next time StartRuntime() is called. It has no effect while the VR runtime is running.
If the VR module does not support eye gaze tracking and VRFeatureSupportLevel#required is specified an exception is thrown.
References requestFeatureEyeGazeTracking().
Referenced by requestFeatureEyeGazeTracking().
|
static |
Set feature request level for facial tracking.
Facial tracking includes eye tracking and mouth tracking. Tracking facial features is consider a high privacy operation by most VR environments. Enabling this feature usually requires the user to explicitely agree. Furthermore facial tracking typically is an expensive operation and can degrade performance. Last but not least facial tracking is not required for the majority of games and applications. For this reason facial tracking is disabled by default. To enable set the feature request level to VRFeatureSupportLevel#optional or VRFeatureSupportLevel#required.
The set feature request level takes effect only the next time StartRuntime() is called. It has no effect while the VR runtime is running.
If the VR module does not support facial tracking and VRFeatureSupportLevel#required is specified an exception is thrown.
References requestFeatureFacialTracking().
Referenced by requestFeatureFacialTracking().
|
static |
VR Runtime is usable.
Returns true if a call to startRuntime() is likely to succeed or not.
References runtimeUsable().
Referenced by runtimeUsable().
|
static |
Send command.
References getAxisValue(), getButtonNear(), getFeedbackValue(), getParameterCount(), getParameterInfo(), getParameterValue(), sendCommand(), setFeedbackValue(), and setParameterValue().
Referenced by sendCommand().
|
static |
Set camera to render on head mounted display.
If set to null fades back to safe scene as defined by VR Runtime.
References isRuntimeRunning().
Referenced by getEnablePassthrough().
|
static |
Enable presenting user environment inside the rendered world.
Has no effect if SupportsPassthrough() returns false.
References supportsPassthrough().
Referenced by setPassthroughTransparency().
|
static |
Set value of feedback at index on device at index.
References indexOfButtonWithID(), and indexOfDeviceWithID().
Referenced by sendCommand().
|
static |
Set named parameter value.
| EInvalidParam | Parameter with name not found. |
Referenced by sendCommand().
|
static |
Set transparency of user environment presented inside the rendered world.
Has no effect if SupportsPassthrough() returns false. A value of 0 hides the environment. A value of 1 shows the environment. Values in between blend over.
References setEnablePassthrough().
Referenced by getDeviceAt().
|
static |
Start VR.
VR systems typically are required to be activated before they can be used. Starting VR connects the engine to the VR system present on the host system and activates VR support on various modules. VR mode can be started and stopped at any time.
Referenced by stopRuntime().
|
static |
Stop VR.
VR systems typically are required to be activated before they can be used. Starting VR connects the engine to the VR system present on the host system and activates VR support on various modules. VR mode can be started and stopped at any time.
References startRuntime().
Referenced by isRuntimeRunning().
|
static |
Body tracking is supported.
Can be called after startRuntime() returned successfully. Returns true if body tracking has been requested and is supported by the VR runtime.
References supportsBodyTracking().
Referenced by supportsBodyTracking().
|
static |
Eye gaze tracking is supported.
Can be called after startRuntime() returned successfully. Returns true if eye gaze tracking has been requested and is supported by the VR runtime.
References supportsEyeGazeTracking().
Referenced by supportsEyeGazeTracking().
|
static |
Facial tracking is supported.
Can be called after startRuntime() returned successfully. Returns true if facial tracking has been requested and is supported by the VR runtime.
References supportsFacialTracking().
Referenced by supportsFacialTracking().
|
static |
VR Runtime supports presenting user environment inside the rendered world.
References getCamera().
Referenced by setEnablePassthrough().