unreal.VREditorMode

class unreal.VREditorMode(outer: Object | None = None, name: Name | str = 'None')

Bases: VREditorModeBase

VR Editor Mode. Extends editor viewports with functionality for VR controls and object manipulation

C++ Source:

  • Module: VREditor

  • File: VREditorMode.h

Editor Properties: (see get_editor_property/set_editor_property)

  • interactor_class (Class): [Read-Write] The controller to use when UnrealEd is in VR mode. Use VREditorInteractor get default editor behavior, or select a custom controller for special behavior

  • teleporter_class (Class): [Read-Write] The teleporter to use when UnrealEd is in VR mode. Use VREditorTeleporter to get default editor behavior, or select a custom teleporter

get_world_scale_factor() float

Gets the world scale factor, which can be multiplied by a scale vector to convert to room space

Return type:

float

property interactor_class: Class

[Read-Write] The controller to use when UnrealEd is in VR mode. Use VREditorInteractor get default editor behavior, or select a custom controller for special behavior

Type:

(Class)

is_in_game_view() bool

Returns whether game view is currently active.

Return type:

bool

set_game_view(game_view) None

Display the scene more closely to how it would appear at runtime (as opposed to edit time).

Parameters:

game_view (bool) –

property teleporter_class: Class

[Read-Write] The teleporter to use when UnrealEd is in VR mode. Use VREditorTeleporter to get default editor behavior, or select a custom teleporter

Type:

(Class)