unreal.VREditorInteractor
¶
- class unreal.VREditorInteractor(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ViewportInteractor
VREditor default interactor
C++ Source:
Module: VREditor
File: VREditorInteractor.h
Editor Properties: (see get_editor_property/set_editor_property)
hand_mesh_component
(StaticMeshComponent): [Read-Write] Access to the current handmesh. Use ReplaceHandMeshComponent() to update the entire StaticMeshComponent.is_undo_redo_swipe_enabled
(bool): [Read-Write] Whether swiping left/right on touchpad/joystick triggers undo/redo
- get_controller_side() ControllerHand ¶
Get the side of the controller
- Return type:
- get_controller_type() ControllerType ¶
Returns what controller type this is for asymmetric control schemes
- Return type:
- get_last_trackpad_position() Vector2D ¶
Get the last position of the trackpad or analog stick
- Return type:
- get_motion_controller_component() MotionControllerComponent ¶
Get the motioncontroller component of this interactor
- Return type:
- get_slide_delta() float ¶
Returns the slide delta for pushing and pulling objects. Needs to be implemented by derived classes (e.g. touchpad for vive controller or scrollweel for mouse )
- Return type:
- get_teleport_actor() VREditorTeleporter ¶
Get Teleport Actor
- Return type:
- get_trackpad_position() Vector2D ¶
Get the current position of the trackpad or analog stick
- Return type:
- property hand_mesh_component: StaticMeshComponent¶
[Read-Write] Access to the current handmesh. Use ReplaceHandMeshComponent() to update the entire StaticMeshComponent.
- Type:
- init(vr_mode) None ¶
Initialize default values
- Parameters:
vr_mode (VREditorMode) –
- replace_hand_mesh_component(new_mesh, mesh_scale=[1.000000, 1.000000, 1.000000]) None ¶
Replace the default VR controller mesh with a custom one.
- Parameters:
new_mesh (StaticMesh) –
mesh_scale (Vector) –
- set_controller_hand_side(controller_hand_side) None ¶
Sets the EControllerHand for this motioncontroller
- Parameters:
controller_hand_side (Name) –
- set_controller_type(controller_type) None ¶
Set what controller type this is for asymmetric control schemes
- Parameters:
controller_type (ControllerType) –
- set_force_laser_color(color) None ¶
Next frame this will be used as color for the laser
- Parameters:
color (LinearColor) –
- set_force_show_laser(force_show) None ¶
Set if we want to force to show the laser
- Parameters:
force_show (bool) –
- try_override_controller_type(controller_type) bool ¶
Temporary set what controller type this is for asymmetric control schemes. You can’t override the controller type when there’s already an override. Remove the temporary controller type with EControllerType::Unknown
- Parameters:
controller_type (ControllerType) –
- Returns:
true if the controller type was changed
- Return type: