Navigation
API > API/Plugins > API/Plugins/ContextualAnimation
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- UPrimitiveComponent
- UContextualAnimSceneActorComponent
References
| Module | ContextualAnimation |
| Header | /Engine/Plugins/Experimental/Animation/ContextualAnimation/Source/ContextualAnimation/Public/ContextualAnimSceneActorComponent.h |
| Include | #include "ContextualAnimSceneActorComponent.h" |
Syntax
UCLASS (Meta=(BlueprintSpawnableComponent))
class UContextualAnimSceneActorComponent :
public UPrimitiveComponent ,
public IIKGoalCreatorInterface
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableDebug | ||
| FContextualAnimSceneBindings | Bindings | Bindings for the interaction we are currently playing. | |
| FCharacterProperties | CharacterPropertiesBackup | ||
| TArray< FContextualAnimIKTarget > | IKTargets | List of IKTarget for this frame | |
| FContextualAnimSceneActorCompDelegate | OnJoinedSceneDelegate | Event that happens when the actor owner of this component joins an scene | |
| FContextualAnimSceneActorCompDelegate | OnLeftSceneDelegate | Event that happens when the actor owner of this component leave an scene | |
| FContextualAnimPlayMontageNotifyBeginDelegate | OnPlayMontageNotifyBeginDelegate | ||
| TWeakObjectPtr< UAnimInstance > | OwnerAnimInstance | Cache of the owner's AnimInstance for easy access. Only valid while an interaction is active | |
| FContextualAnimRepBindingsData | RepBindings | Replicated copy of the bindings so we can start the action on simulated proxies This gets replicated only from the initiator of the action and then set on all the other members of the interaction | |
| FContextualAnimRepLateJoinData | RepLateJoinData | ||
| FContextualAnimRepTransitionData | RepTransitionData | ||
| FContextualAnimRepTransitionData | RepTransitionSingleActorData | ||
| TObjectPtr< class UContextualAnimSceneAsset > | SceneAsset | ||
| TArray< FName > | WarpTargetNamesCache | Motion warping doesn't remove warp targets when a warping window ends, so we keep track of the warp targets added during the interaction and remove them at the end of it to prevent issues caused by dangling warp targets after an interaction. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UContextualAnimSceneActorComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddIKGoals_Implementation
(
TMap< FName, FIKRigGoal >& OutGoals |
||
| void | AddOrUpdateWarpTargets
(
int32 SectionIdx, |
||
| void | AddReferencedObjects
(
UObject* InThis, |
||
| bool | CanLeaveScene
(
const FContextualAnimSceneBinding& Binding |
||
| void | |||
| const FContextualAnimSceneBindings & | GetBindings () |
||
| const FContextualAnimIKTarget & | GetIKTargetByGoalName
(
FName GoalName |
||
| const TArray< FContextualAnimIKTarget > & | GetIKTargets () |
||
| void | HandleTransitionEveryone
(
int32 NewSectionIdx, |
||
| void | HandleTransitionSelf
(
int32 NewSectionIdx, |
||
| bool | |||
| bool | |||
| void | JoinScene
(
const FContextualAnimSceneBindings& InBindings, |
@TODO: These two functions are going to replace OnJoinedScene and OnLeftScene main different is that these new functions are taking care of animation playback too | |
| bool | LateJoinContextualAnimScene
(
AActor* Actor, |
||
| bool | LateJoinContextualAnimScene
(
AActor* Actor, |
||
| void | LateJoinScene
(
const FContextualAnimSceneBindings& InBindings, |
||
| void | LeaveScene () |
||
| void | OnJoinedScene
(
const FContextualAnimSceneBindings& InBindings |
Called when the actor owner of this component joins an scene | |
| void | OnJoinScene
(
const FContextualAnimSceneBinding& Binding |
||
| void | OnLateJoinScene
(
const FContextualAnimSceneBinding& Binding, |
||
| void | OnLeaveScene
(
const FContextualAnimSceneBinding& Binding |
||
| void | OnLeftScene () |
Called from the scene instance when the actor owner of this component leave an scene | |
| void | OnMontageBlendingOut
(
UAnimMontage* Montage, |
||
| void | OnPlayMontageNotifyBegin
(
FName NotifyName, |
||
| void | OnPreLeaveScene
(
const FContextualAnimSceneBinding& Binding |
Called just before the scene leaving happens (which calls OnLeaveScene) | |
| void | |||
| void | |||
| void | |||
| void | |||
| void | OnTickPose
(
USkinnedMeshComponent* SkinnedMeshComponent, |
Event called right before owner's mesh ticks the pose when we are in a scene instance and IK Targets are required. | |
| void | OnTransitionScene
(
const FContextualAnimSceneBinding& Binding, |
||
| void | OnTransitionSingleActor
(
const FContextualAnimSceneBinding& Binding, |
||
| void | OtherActorLeftScene
(
AActor& Actor |
||
| void | PlayAnimation_Internal
(
UAnimSequenceBase* Animation, |
||
| void | RestoreCollisionState
(
const FContextualAnimSceneBinding& Binding |
||
| void | RestoreMovementState
(
const FContextualAnimSceneBinding& Binding |
||
| void | |||
| void | ServerStartContextualAnimScene
(
const FContextualAnimSceneBindings& InBindings |
||
| void | SetCollisionState
(
const FContextualAnimSceneBinding& Binding |
||
| void | SetIgnoreCollisionWithActor
(
AActor& Actor, |
||
| void | SetIgnoreCollisionWithOtherActors
(
bool bValue |
||
| void | SetMovementState
(
const FContextualAnimSceneBinding& Binding, |
||
| bool | StartContextualAnimScene
(
const FContextualAnimSceneBindings& InBindings |
||
| bool | StartContextualAnimScene
(
const FContextualAnimSceneBindings& InBindings, |
||
| bool | TransitionContextualAnimScene
(
FName SectionName |
||
| bool | TransitionContextualAnimScene
(
FName SectionName, |
||
| bool | TransitionContextualAnimScene
(
FName SectionName, |
||
| bool | TransitionContextualAnimSceneToSpecificSet
(
FName SectionName, |
||
| bool | TransitionSingleActor
(
int32 SectionIdx, |
||
| bool | TransitionSingleActor
(
int32 SectionIdx, |
||
| bool | TransitionSingleActor
(
int32 SectionIdx, |
||
| void |
Overridden from UPrimitiveComponent
| Type | Name | Description | |
|---|---|---|---|
| FPrimitiveSceneProxy * | Creates a proxy to represent the primitive to the scene manager in the rendering thread. |
Overridden from USceneComponent
| Type | Name | Description | |
|---|---|---|---|
| FBoxSphereBounds | CalcBounds
(
const FTransform& LocalToWorld |
Calculate the bounds of the component. Default behavior is a bounding box/sphere of zero size. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Ends gameplay for this component. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
Returns properties that are replicated for the lifetime of the actor channel |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCharacterProperties |