unreal.OculusMRFunctionLibrary

class unreal.OculusMRFunctionLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Oculus MRFunction Library

C++ Source:

  • Plugin: OculusVR

  • Module: OculusMR

  • File: OculusMRFunctionLibrary.h

classmethod get_mrc_scaling_factor()float

Get the scaling factor for the MRC configuration. Returns 0 if not available.

Returns

Return type

float

classmethod get_oculus_mr_settings()OculusMR_Settings

Get the OculusMR settings object

Returns

Return type

OculusMR_Settings

classmethod get_tracking_reference_component()SceneComponent

Get the component that the OculusMR camera is tracking. When this is null, the camera will track the player pawn.

Returns

Return type

SceneComponent

classmethod is_mrc_active()bool

Check if MRC is enabled and actively capturing

Returns

Return type

bool

classmethod is_mrc_enabled()bool

Check if MRC is enabled

Returns

Return type

bool

classmethod set_mrc_scaling_factor(scaling_factor=1.0)bool

Set the scaling factor for the MRC configuration. This should be a positive value set to the same scaling as the VR player pawn so that the game capture and camera video are aligned.

Parameters

scaling_factor (float) –

Returns

Return type

bool

classmethod set_tracking_reference_component(component)bool

Set the component for the OculusMR camera to track. If this is set to null, the camera will track the player pawn.

Parameters

component (SceneComponent) –

Returns

Return type

bool