Navigation
API > API/Editor > API/Editor/Persona
Inheritance Hierarchy
- FEditorViewportClient
- TSharedFromThis
- FAnimationViewportClient
References
| Module | Persona |
| Header | /Engine/Source/Editor/Persona/Public/AnimationEditorViewportClient.h |
| Include | #include "AnimationEditorViewportClient.h" |
Syntax
class FAnimationViewportClient :
public FEditorViewportClient,
public TSharedFromThis< FAnimationViewportClient >
Variables
| Type | Name | Description | |
|---|---|---|---|
| UPersonaOptions * | ConfigOption | Persona config options | |
| FOnGetBoneSize | OnGetBoneSize | ||
| FOnBoneSizeSet | OnSetBoneSize | Allow client code to store/serialize bone size if desired |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAnimationViewportClient
(
const TSharedRef< class IPersonaPreviewScene >& InPreviewScene, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Check whether we can save this camera as default | ||
| void | Clear any default camera for mesh | ||
| void | DrawNodeDebugLines
(
TArray< FText >& Lines, |
Function to display debug lines generated from skeletal controls in animBP mode | |
| void | DrawSockets
(
const UDebugSkelMeshComponent* InPreviewMeshComponent, |
Draws Mesh Sockets in foreground - bUseSkeletonSocketColor = true for grey (skeleton), false for red (mesh) | |
| void | DrawUVsForMesh
(
FViewport* InViewport, |
Draw call to render UV overlay | |
| void | FocusViewportOnPreviewMesh
(
bool bUseCustomCamera |
Places the viewport camera at a good location to view the preview target | |
| void | FocusViewportOnSphere
(
FSphere& Sphere, |
Places the viewport camera at a good location to view the supplied sphere | |
| TSharedRef< class FAssetEditorToolkit > | Get the asset editor we are embedded in | ||
| EBoneDrawMode::Type | Get the Bone local axis mode | ||
| float | |||
| float | Function to get current brightness value | ||
| FName | Get the bone name to use when CameraFollowMode is EAnimationViewportCameraFollowMode::Bone | ||
| EAnimationViewportCameraFollowMode | Get the camera follow mode | ||
| FSphere | Returns the desired target of the camera | ||
| float | |||
| FText | GetDisplayInfo
(
bool bDisplayAllInfo |
Function to display warning and info text on the viewport when outside of animBP mode | |
| float | Returns the floor height offset | ||
| ELocalAxesMode::Type | Get the Bone local axis mode | ||
| EAnimationPlaybackSpeeds::Type | Get the playback speed mode | ||
| TSharedRef< class IPersonaPreviewScene > | Get the preview scene we are viewing | ||
| bool | Whether or not to lock the camera's rotation to a specified bone's orientation | ||
| int32 | |||
| int32 | Returns the UV Channel that will be drawn when Draw UV Overlay is turned on | ||
| int32 | Get the viewport index (0-3) for this client | ||
| void | Handle a change in the skeletal mesh mesh component being used for preview changing | ||
| void | Handle a change in the skeletal mesh phusics component being used for preview changing | ||
| void | HandleSkeletalMeshChanged
(
USkeletalMesh* OldSkeletalMesh, |
Handle the skeletal mesh mesh component being used for preview changing | |
| bool | Returns whether we have a default camera set for this mesh | ||
| void | Initialize () |
||
| bool | IsAudioMuted () |
Function to check whether audio is muted or not | |
| bool | Function to check whether floor is auto align or not | ||
| bool | IsBoneDrawModeSet
(
EBoneDrawMode::Type AxesMode |
Bone Draw mode checking function for the EBoneDrawType | |
| bool | Whether detailed mesh stats are being displayed or basic mesh stats | ||
| bool | IsLocalAxesModeSet
(
ELocalAxesMode::Type AxesMode |
Local axes mode checking function for the ELocalAxesType | |
| bool | Callback for checking the normals show flag. | ||
| bool | Callback for checking whether the UV drawing is switched on. | ||
| bool | Callback for checking the binormals show flag. | ||
| bool | Callback for checking the normals show flag. | ||
| bool | Callback for checking the tangents show flag. | ||
| bool | Whether or not mesh stats are being displayed | ||
| bool | Whether or not selected node stats are being displayed | ||
| bool | Check whether we are using audio attenuation | ||
| void | Jump to the meshes default camera | ||
| void | Called when viewport focuses on a selection | ||
| void | OnSetShowMeshStats
(
int32 ShowMode |
Function to set mesh stat drawing state | |
| void | Function to enable/disable floor auto align | ||
| void | Function to mute/unmute audio in the viewport | ||
| void | Set whether to use audio attenuation | ||
| void | RenderGizmo
(
const FTransform& Transform, |
Draws Gizmo for the Transform in foreground | |
| void | Save current camera as default for mesh | ||
| void | SetBackgroundColor
(
FLinearColor InColor |
Function to set background color | |
| void | SetBoneDrawMode
(
EBoneDrawMode::Type AxesMode |
Function to set Bone Draw mode for the EBoneDrawType | |
| void | SetBoneDrawSize
(
const float InBoneDrawSize |
Access Bone Draw size config option | |
| void | SetBrightnessValue
(
float Value |
Function to set brightness value | |
| void | SetCameraFollowMode
(
EAnimationViewportCameraFollowMode Mode, |
Set the camera follow mode | |
| void | SetCustomAnimationSpeed
(
const float InCustomAnimationSpeed |
Access CustomAnimationSpeed config option | |
| void | SetDrawUVOverlay
(
bool bInDrawUVs |
Callback for toggling UV drawing in the viewport | |
| void | SetFloorOffset
(
float NewValue |
Sets the floor height offset, saves it to config and invalidates the viewport so it shows up immediately | |
| void | SetLocalAxesMode
(
ELocalAxesMode::Type AxesMode |
Function to set Local axes mode for the ELocalAxesType | |
| void | Set the playback speed mode | ||
| void | SetUVChannelToDraw
(
int32 UVChannel |
Sets the UV Channel that will be drawn when Draw UV Overlay is turned on | |
| bool | Handle error checking for additive base pose | ||
| void | ShowAttributeNames
(
FCanvas* Canvas, |
Function to display transform attribute names | |
| void | ShowBoneNames
(
FCanvas* Canvas, |
Function to display bone names | |
| void | ShowBoneNames
(
FViewport* Viewport, |
Function to display bone names | |
| void | Callback for toggling the normals show flag. | ||
| void | Toggles whether to lock the camera's rotation to a specified bone's orientation | ||
| void | Callback for toggling the binormals show flag. | ||
| void | Callback for toggling the normals show flag. | ||
| void | Callback for toggling the tangents show flag. | ||
| void | Sets up the viewports camera (look-at etc) based on the current preview target |
Overridden from FEditorViewportClient
| Type | Name | Description | |
|---|---|---|---|
| FMatrix | CalcViewRotationMatrix
(
const FRotator& InViewRotation |
Computes a matrix to use for viewport location and rotation | |
| bool | Whether or not the widget mode can be cycled | ||
| void | DrawCanvas
(
FViewport& InViewport, |
Called to draw onto the viewports 2D canvas | |
| FMatrix | |||
| ECoordSystem | |||
| FVector | Virtual UE::Widget::EWidgetModeGetWidgetMode() const override; virtual void SetWidgetMode(UE::Widget::EWidgetMode InWidgetMode) override; virtual bool CanSetWidgetMode(UE::Widget::EWidgetMode NewMode) const override; | ||
| void | HandleToggleShowFlag
(
FEngineShowFlags::EShowFlag EngineShowFlagIndex |
Delegate handler fired when a show flag is toggled | |
| void | Rotate through viewport view options | ||
| void | SetupViewForRendering
(
FSceneViewFamily& ViewFamily, |
Called to do any additional set up of the view for rendering | |
| void | SetViewMode
(
EViewModeIndex InViewModeIndex |
Sets how the viewport is displayed (lit, wireframe, etc) for the current viewport type | |
| void | SetViewportType
(
ELevelViewportType InViewportType |
Set the viewport type of the client | |
| void | SetWidgetCoordSystemSpace
(
ECoordSystem NewCoordSystem |
Sets the coordinate system space to use | |
| void | Tick
(
float DeltaSeconds |
Ticks this viewport client | |
| void | TrackingStarted
(
const FInputEventState& InInputState, |
Virtual void ProcessClick(class FSceneView& View, class HHitProxy HitProxy, FKey Key, EInputEvent Event, uint32 HitX, uint32 HitY)](API\Editor\UnrealEd\FEditorViewportClient\ProcessClick) override; virtual bool [InputWidgetDelta( FViewport Viewport, EAxisList::Type CurrentAxis, FVector& Drag, FRotator& Rot, FVector& Scale ) override; | |
| void | Called when mouse movement tracking stops |
Overridden from FViewportClient
| Type | Name | Description | |
|---|---|---|---|
| bool | InputAxis
(
FViewport* Viewport, |
Check an axis movement received by the viewport. | |
| bool | InputKey
(
const FInputKeyEventArgs& EventArgs |
Check a key event received by the viewport. |
Overridden from FViewElementDrawer
| Type | Name | Description | |
|---|---|---|---|
| void | Draw
(
const FSceneView* View, |
FViewElementDrawer interface |
Enums
| Type | Name | Description | |
|---|---|---|---|
| GridParam |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| IPersonaEditorModeManager * | Use the UPersonaEditorModeManagerContext object stored in the editor mode tools' context store instead. | ||
| bool | This version of InputAxis is deprecated. Please use the version that takes DeviceId instead. | ||
| bool | This version of InputKey is deprecated. Please use the version that takes EventArgs instead. |