unreal.VREditorInteractor
¶
- class unreal.VREditorInteractor(outer=None, name='None')¶
Bases:
unreal.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] Hand Mesh Component: Access to the current handmesh. Use ReplaceHandMeshComponent() to update the entire StaticMeshComponent.is_undo_redo_swipe_enabled
(bool): [Read-Write] Is Undo Redo Swipe Enabled: 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¶
[Read-Write] Hand Mesh Component: 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) None ¶
Replace the default VR controller mesh with a custom one.
- Parameters
new_mesh (StaticMesh) –
- 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