Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
A viewport interaction to Rotate the camera using keyboard inputs. Only works while the camera is being controlled using the mouse
| Name | UViewportCameraRotateInteraction |
| Type | class |
| Header File | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/ViewportInteractions/ViewportCameraRotateInteraction.h |
| Include Path | #include "ViewportInteractions/ViewportCameraRotateInteraction.h" |
Syntax
UCLASS (MinimalAPI, Transient)
class UViewportCameraRotateInteraction :
public UViewportInteraction ,
public IKeyInputBehaviorTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UViewportInteraction → UViewportCameraRotateInteraction
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UViewportCameraRotateInteraction() |
ViewportInteractions/ViewportCameraRotateInteraction.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| KeyInputBehaviorWeak | TWeakObjectPtr< UKeyInputBehavior > | ViewportInteractions/ViewportCameraRotateInteraction.h | ||
| RotatePitchImpulse | float | ViewportInteractions/ViewportCameraRotateInteraction.h | ||
| RotateYawImpulse | float | ViewportInteractions/ViewportCameraRotateInteraction.h |
Functions
Public
Overridden from UViewportInteraction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Tick
(
float InDeltaTime |
ViewportInteractions/ViewportCameraRotateInteraction.h |
Overridden from IKeyInputBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnKeyPressed
(
const FKey& InKeyID |
ViewportInteractions/ViewportCameraRotateInteraction.h | ||
virtual void OnKeyReleased
(
const FKey& InKeyID |
ViewportInteractions/ViewportCameraRotateInteraction.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| ViewportInteractions/ViewportCameraRotateInteraction.h | |||
void UpdateKeyState
(
const FKey& InKeyID, |
ViewportInteractions/ViewportCameraRotateInteraction.h |
Overridden from UViewportInteraction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TArray< TSharedPtr< FUICommandInfo > > GetCommands () |
Return a list of commands used by a key-based UInputBehavior. | ViewportInteractions/ViewportCameraRotateInteraction.h | |
virtual void OnCommandChordChanged() |
Define what should happen to UInputBehavior(s) when an "observed" command chord changes | ViewportInteractions/ViewportCameraRotateInteraction.h |