Navigation
API > API/Editor > API/Editor/AnimGraph
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UAnimInstance
- UAnimSingleNodeInstance
- UAnimPreviewInstance
- UIKRetargetAnimInstance
- UIKRigAnimInstance
References
| Module | AnimGraph |
| Header | /Engine/Source/Editor/AnimGraph/Public/AnimPreviewInstance.h |
| Include | #include "AnimPreviewInstance.h" |
Syntax
class UAnimPreviewInstance : public UAnimSingleNodeInstance
Remarks
This Instance only contains one AnimationAsset, and produce poses Used by Preview in AnimGraph, Playing single animation in Kismet2 and etc
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | MontagePreviewStartSectionIdx | ||
| TEnumAsByte< enum EMontagePreviewType > | MontagePreviewType | Shared parameters for previewing blendspace or animsequence |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAnimPreviewInstance
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddImpulseAtLocation
(
FVector Impulse, |
Preview physics interaction | |
| FDelegateHandle | AddKeyCompleteDelegate
(
FSimpleMulticastDelegate::FDelegate InOnSetKeyCompleteDelegate |
Add the delegate to be called when a key is set. | |
| void | EnableControllers
(
bool bEnable |
Enable Controllers This is used by when editing, when controller has to be disabled | |
| FAnimNode_ModifyBone * | FindModifiedBone
(
const FName& InBoneName, |
Finds an already modified bone | |
| UAnimSequence * | |||
| const TArray< FAnimNode_ModifyBone > & | Returns all currently active bone controllers on this instance's proxy | ||
| USkeletalMeshComponent * | Gets the external debug skeletal mesh component we are debugging | ||
| bool | |||
| bool | |||
| FAnimNode_ModifyBone & | ModifyBone
(
const FName& InBoneName, |
Modifies a single bone. | |
| float | |||
| int32 | MontagePreview_FindFirstSectionAsInMontage
(
int32 AnySectionIdx |
||
| int32 | MontagePreview_FindLastSection
(
int32 StartSectionIdx |
||
| void | |||
| void | MontagePreview_JumpToPosition
(
float NewPosition |
||
| void | |||
| void | Montage preview functions | ||
| void | MontagePreview_PreviewAllSections
(
bool bPlay |
||
| void | MontagePreview_PreviewNormal
(
int32 FromSectionIdx, |
||
| void | |||
| void | |||
| void | |||
| void | MontagePreview_SetLoopAllSections
(
bool bIsLooping |
||
| void | MontagePreview_SetLoopAllSetupSections
(
bool bIsLooping |
||
| void | MontagePreview_SetLooping
(
bool bIsLooping |
||
| void | MontagePreview_SetLoopNormal
(
bool bIsLooping, |
||
| void | MontagePreview_SetPlaying
(
bool bIsPlaying |
||
| void | MontagePreview_SetReverse
(
bool bInReverse |
||
| void | |||
| void | |||
| void | Refresh Curve Bone Controllers based on TransformCurves from Animation data | ||
| void | RemoveBoneModification
(
const FName& InBoneName, |
Removes an existing bone modification | |
| void | RemoveKeyCompleteDelegate
(
FDelegateHandle InDelegateHandle |
Add the delegate to be called when a key is set. | |
| void | ResetModifiedBone
(
bool bCurveController |
Reset all bone modified | |
| void | SetDebugSkeletalMeshComponent
(
USkeletalMeshComponent* InSkeletalMeshComponent |
Sets an external debug skeletal mesh component to use to debug | |
| void | SetForceRetargetBasePose
(
bool ForceRetargetBasePose |
||
| void | SetKey () |
Convert current modified bone transforms (BoneControllers) to transform curves (CurveControllers) it does based on CurrentTime. | |
| void | SetSkeletalControlAlpha
(
float SkeletalControlAlpha |
Set SkeletalControl Alpha |
Overridden from UAnimSingleNodeInstance
| Type | Name | Description | |
|---|---|---|---|
| void | RestartMontage
(
UAnimMontage* Montage, |
Custom evaluate pose | |
| void | SetAnimationAsset
(
UAnimationAsset* NewAsset, |
Set New Asset - calls InitializeAnimation, for now we need MeshComponent |
Overridden from UAnimInstance
| Type | Name | Description | |
|---|---|---|---|
| bool | Can this animation instance run Update or Evaluation work in parallel. | ||
| FAnimInstanceProxy * | Override point for derived classes to create their own proxy objects (allows custom allocation) | ||
| void | Montage_Advance
(
float DeltaSeconds |
Advance montages | |
| void | The below functions are the native overrides for each phase Native initialization override point |