unreal.GoogleVRHMDFunctionLibrary
¶
- class unreal.GoogleVRHMDFunctionLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibrary
GoogleVRHMD Extensions Function Library
C++ Source:
Plugin: GoogleVRHMD
Module: GoogleVRHMD
File: GoogleVRHMDFunctionLibrary.h
- classmethod clear_daydream_loading_splash_screen_texture() → None¶
Clear the loading splash texture it is current using. This will make the loading screen to black if the loading splash screen is still enabled. Note that this function only works for daydream app.
- classmethod get_daydream_loading_splash_screen_distance() → float¶
Get the distance in meter the daydream splash screen will be rendered at
- Returns
- Return type
- classmethod get_daydream_loading_splash_screen_scale() → float¶
Get the render scale of the dayderam splash screen
- Returns
- Return type
- classmethod get_daydream_loading_splash_screen_view_angle() → float¶
Get the view angle of the dayderam splash screen
- Returns
- Return type
- classmethod get_distortion_correction_enabled() → bool¶
Check if distortion correction is enabled
- Returns
- Return type
- classmethod get_floor_height() → float or None¶
Tries to get the floor height if available
- classmethod get_gvrhmd_render_target_size() → IntPoint¶
Get the RenderTarget size GoogleVRHMD is using for rendering the scene.
- Returns
The render target size that is used when rendering the scene.
- Return type
- classmethod get_intent_data() → str¶
Returns the string representation of the data URI on which this activity’s intent is operating. See Intent.getDataString() in the Android documentation.
- Returns
- Return type
- classmethod get_neck_model_scale() → float¶
A scaling factor for the neck model offset, clamped from 0 to 1. This should be 1 for most scenarios, while 0 will effectively disable neck model application. This value can be animated to smoothly interpolate between alternative (client-defined) neck models.
- Returns
the current neck model scale.
- Return type
- classmethod get_recenter_transform() → (recenter_orientation=Quat, recenter_position=Vector) or None¶
Tries to get the Recenter Transform if available
- Returns
recenter_orientation (Quat): where the Recenter Orientation read will get stored
recenter_position (Vector): where the Recenter Position read will get stored returns true is the read was successful, false otherwise
- Return type
tuple or None
- classmethod get_safety_cylinder_inner_radius() → float or None¶
Tries to get the Safety Cylinder Inner Radius if available
- classmethod get_safety_cylinder_outer_radius() → float or None¶
Tries to get the Safety Cylinder Outer Radius if available
- classmethod get_safety_region() → SafetyRegionType or None¶
Tries to get the Safety Region Type if available
- Returns
region_type (SafetyRegionType): where the Safety Region Type read will get stored returns true is the read was successful, false otherwise
- Return type
- classmethod is_google_vr_stereo_rendering_enabled() → bool¶
Is Google VRStereo Rendering Enabled
- Returns
- Return type
- classmethod is_in_daydream_mode() → bool¶
Is the application running in Daydream mode.
- Returns
- Return type
- classmethod set_daydream_loading_splash_screen_distance(new_distance) → None¶
Set the distance in meter the daydream splash screen will be rendered at
- Parameters
new_distance (float) –
- classmethod set_daydream_loading_splash_screen_enable(enable) → None¶
Set whether to enable the loading splash screen in daydream app.
- Parameters
enable (bool) –
- classmethod set_daydream_loading_splash_screen_scale(new_size) → None¶
Set the render scale of the dayderam splash screen
- Parameters
new_size (float) –
- classmethod set_daydream_loading_splash_screen_texture(texture, uv_offset=[0.0, 0.0], uv_size=[1.0, 1.0]) → None¶
Set the loading splash screen texture the daydream app wil be using. Note that this function only works for daydream app.
- Parameters
texture (Texture2D) – A texture asset to be used for rendering the splash screen.
uv_offset (Vector2D) – A 2D vector for offset the splash screen texture. Default value is (0.0, 0.0)
uv_size (Vector2D) – A 2D vector specifies which part of the splash texture will be rendered on the screen. Default value is (1.0, 1.0)
- classmethod set_daydream_loading_splash_screen_view_angle(new_view_angle) → None¶
Set the view angle of the dayderam splash screen
- Parameters
new_view_angle (float) –
- classmethod set_default_viewer_profile(viewer_profile_url) → bool¶
Change the default viewer profile
- classmethod set_distortion_correction_enabled(enable) → None¶
Enable/disable distortion correction
- Parameters
enable (bool) –
- classmethod set_distortion_mesh_size(mesh_size) → None¶
Change the size of Distortion mesh
- Parameters
mesh_size (DistortionMeshSizeEnum) –
- classmethod set_gvrhmd_render_target_scale(scale_factor) → IntPoint or None¶
Set the RenderTarget size with a scale factor. The scale factor will be multiplied by the maximal effective render target size based on the window size and the viewer.
- classmethod set_gvrhmd_render_target_size(desired_width, desired_height) → IntPoint or None¶
Set the RenderTargetSize with the desired resolution.
- classmethod set_neck_model_scale(scale_factor) → None¶
A scaling factor for the neck model offset, clamped from 0 to 1. This should be 1 for most scenarios, while 0 will effectively disable neck model application. This value can be animated to smoothly interpolate between alternative (client-defined) neck models.
- Parameters
scale_factor (float) – The new neck model scale.
- classmethod set_recenter_controller_only(is_recenter_controller_only) → None¶
Sets whether or not the Recenter event only recenters the Controller.
- Parameters
is_recenter_controller_only (bool) –