Characters are Pawns that have a mesh, collision, and built-in movement logic. 更多...
#include <Character.h>
类 ACharacter 继承关系图:Public 成员函数 | |
| ACharacter (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get()) | |
| Default UObject constructor. | |
| virtual void | ApplyDamageMomentum (float DamageTaken, FDamageEvent const &DamageEvent, APawn *PawnInstigator, AActor *DamageCauser) |
| Apply momentum caused by damage. | |
| virtual void | BeginPlay () override |
| Overridable native event for when play begins for this actor. | |
| virtual void | CacheInitialMeshOffset (FVector MeshRelativeLocation, FRotator MeshRelativeRotation) |
| Cache mesh offset from capsule. 更多... | |
| virtual bool | CanCrouch () const |
| bool | CanJump () const |
| Check if the character can jump in the current state. 更多... | |
| bool | CanUseRootMotionRepMove (const FSimulatedRootMotionReplicatedMove &RootMotionRepMove, const FAnimMontageInstance &ClientMontageInstance) const |
| True if buffered move is usable to teleport client back to. | |
| virtual void | CheckJumpInput (float DeltaTime) |
| Trigger jump if jump button has been pressed. | |
| virtual void | ClearCrossLevelReferences () override |
| Do anything needed to clear out cross level references; Called from ULevel::PreSave | |
| virtual void | ClearJumpInput (float DeltaTime) |
| Update jump input state after having checked input. | |
| void | ClientAckGoodMove (float TimeStamp) |
| If no client adjustment is needed after processing received ServerMove(), ack the good move so client can remove it from SavedMoves | |
| void | ClientAdjustPosition (float TimeStamp, FVector NewLoc, FVector NewVel, UPrimitiveComponent *NewBase, FName NewBaseBoneName, bool bHasBase, bool bBaseRelativePosition, uint8 ServerMovementMode) |
| Replicate position correction to client, associated with a timestamped servermove. 更多... | |
| void | ClientAdjustRootMotionPosition (float TimeStamp, float ServerMontageTrackPosition, FVector ServerLoc, FVector_NetQuantizeNormal ServerRotation, float ServerVelZ, UPrimitiveComponent *ServerBase, FName ServerBoneName, bool bHasBase, bool bBaseRelativePosition, uint8 ServerMovementMode) |
| Replicate position correction to client when using root motion for movement. 更多... | |
| void | ClientAdjustRootMotionSourcePosition (float TimeStamp, FRootMotionSourceGroup ServerRootMotion, bool bHasAnimRootMotion, float ServerMontageTrackPosition, FVector ServerLoc, FVector_NetQuantizeNormal ServerRotation, float ServerVelZ, UPrimitiveComponent *ServerBase, FName ServerBoneName, bool bHasBase, bool bBaseRelativePosition, uint8 ServerMovementMode) |
| Replicate root motion source correction to client when using root motion for movement. | |
| virtual void | Crouch (bool bClientSimulation=false) |
| Request the character to start crouching. 更多... | |
| virtual void | Falling () |
| Called when the character's movement enters falling | |
| virtual UActorComponent * | FindComponentByClass (const TSubclassOf< UActorComponent > ComponentClass) const override |
| Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass | |
| int32 | FindRootMotionRepMove (const FAnimMontageInstance &ClientMontageInstance) const |
| Find usable root motion replicated move from our buffer. 更多... | |
| float | GetAnimRootMotionTranslationScale () const |
| Returns current value of AnimRootMotionScale | |
| FORCEINLINE const FBasedMovementInfo & | GetBasedMovement () const |
| Accessor for BasedMovement | |
| virtual FQuat | GetBaseRotationOffset () const |
| Get the saved rotation offset of mesh. 更多... | |
| FRotator | GetBaseRotationOffsetRotator () const |
| Get the saved rotation offset of mesh. 更多... | |
| FVector | GetBaseTranslationOffset () const |
| Get the saved translation offset of mesh. 更多... | |
| FORCEINLINE class UCapsuleComponent * | GetCapsuleComponent () const |
| Returns CapsuleComponent subobject | |
| FORCEINLINE class UCharacterMovementComponent * | GetCharacterMovement () const |
| Returns CharacterMovement subobject | |
| class UAnimMontage * | GetCurrentMontage () const |
| Return current playing Montage | |
| virtual float | GetDefaultHalfHeight () const override |
| Returns The half-height of the default Pawn, scaled by the component scale. 更多... | |
| virtual float | GetJumpMaxHoldTime () const |
| Get the maximum jump time for the character. 更多... | |
| void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties | |
| FORCEINLINE class USkeletalMeshComponent * | GetMesh () const |
| Returns Mesh subobject | |
| virtual UPrimitiveComponent * | GetMovementBase () const override final |
| Return PrimitiveComponent we are based on (standing on, attached to, and moving on). | |
| virtual UPawnMovementComponent * | GetMovementComponent () const override |
| Return our PawnMovementComponent, if we have one. 更多... | |
| virtual FVector | GetNavAgentLocation () const override |
| Basically retrieved pawn's location on navmesh | |
| FORCEINLINE const FBasedMovementInfo & | GetReplicatedBasedMovement () const |
| Accessor for ReplicatedBasedMovement | |
| uint8 | GetReplicatedMovementMode () const |
| Returns ReplicatedMovementMode | |
| FORCEINLINE float | GetReplicatedServerLastTransformUpdateTimeStamp () const |
| Accessor for ReplicatedServerLastTransformUpdateTimeStamp. | |
| FAnimMontageInstance * | GetRootMotionAnimMontageInstance () const |
| Get FAnimMontageInstance playing RootMotion | |
| virtual void | GetSimpleCollisionCylinder (float &CollisionRadius, float &CollisionHalfHeight) const override |
| Get axis-aligned cylinder around this actor, used for simple collision checks (ie Pawns reaching a destination). 更多... | |
| bool | HasAnyRootMotion () const |
| True if we are playing root motion from any source right now (anim root motion, root motion source) | |
| virtual bool | IsJumpProvidingForce () const |
| True if jump is actively providing a force, such as when the jump key is held and the time it has been held is less than JumpMaxHoldTime. 更多... | |
| bool | IsPlayingNetworkedRootMotionMontage () const |
| True if we are playing Root Motion right now, through a Montage with RootMotionMode == ERootMotionMode::RootMotionFromMontagesOnly. 更多... | |
| bool | IsPlayingRootMotion () const |
| True if we are playing Anim root motion right now | |
| virtual void | Jump () |
| Make the character jump on the next update. 更多... | |
| void | K2_OnEndCrouch (float HalfHeightAdjust, float ScaledHalfHeightAdjust) |
| Event when Character stops crouching. 更多... | |
| void | K2_OnMovementModeChanged (EMovementMode PrevMovementMode, EMovementMode NewMovementMode, uint8 PrevCustomMode, uint8 NewCustomMode) |
| Called from CharacterMovementComponent to notify the character that the movement mode has changed. 更多... | |
| void | K2_OnStartCrouch (float HalfHeightAdjust, float ScaledHalfHeightAdjust) |
| Event when Character crouches. 更多... | |
| void | K2_UpdateCustomMovement (float DeltaTime) |
| Event for implementing custom character movement mode. 更多... | |
| virtual void | Landed (const FHitResult &Hit) |
| Called upon landing when falling, to perform actions based on the Hit result. 更多... | |
| virtual void | LaunchCharacter (FVector LaunchVelocity, bool bXYOverride, bool bZOverride) |
| Set a pending launch velocity on the Character. 更多... | |
| virtual void | MoveBlockedBy (const FHitResult &Impact) |
| Called when pawn's movement is blocked 更多... | |
| virtual void | NotifyActorBeginOverlap (AActor *OtherActor) |
| Event when this actor overlaps another actor, for example a player walking into a trigger. 更多... | |
| virtual void | NotifyActorEndOverlap (AActor *OtherActor) |
| Event when an actor no longer overlaps another actor, and they have separated. 更多... | |
| virtual void | NotifyJumpApex () |
| Called when character's jump reaches Apex. 更多... | |
| virtual void | OnEndCrouch (float HalfHeightAdjust, float ScaledHalfHeightAdjust) |
| Called when Character stops crouching. 更多... | |
| void | OnJumped () |
| Event fired when the character has just started jumping | |
| void | OnLanded (const FHitResult &Hit) |
| Called upon landing when falling, to perform actions based on the Hit result. 更多... | |
| void | OnLaunched (FVector LaunchVelocity, bool bXYOverride, bool bZOverride) |
| Let blueprint know that we were launched | |
| virtual void | OnMovementModeChanged (EMovementMode PrevMovementMode, uint8 PreviousCustomMode=0) |
| Called from CharacterMovementComponent to notify the character that the movement mode has changed. 更多... | |
| virtual void | OnRep_IsCrouched () |
| Handle Crouching replicated from server | |
| virtual void | OnRep_ReplicatedBasedMovement () |
| Rep notify for ReplicatedBasedMovement | |
| virtual void | OnRep_ReplicatedMovement () override |
| ReplicatedMovement struct replication event | |
| void | OnRep_RootMotion () |
| Handles replicated root motion properties on simulated proxies and position correction. | |
| virtual void | OnStartCrouch (float HalfHeightAdjust, float ScaledHalfHeightAdjust) |
| Called when Character crouches. 更多... | |
| virtual void | OnUpdateSimulatedPosition (const FVector &OldLocation, const FQuat &OldRotation) |
| Called on client after position update is received to respond to the new location and rotation. 更多... | |
| void | OnWalkingOffLedge (const FVector &PreviousFloorImpactNormal, const FVector &PreviousFloorContactNormal, const FVector &PreviousLocation, float TimeDelta) |
| Event fired when the Character is walking off a surface and is about to fall because CharacterMovement->CurrentFloor became unwalkable. 更多... | |
| virtual void | PawnClientRestart () override |
| Tell client that the Pawn is begin restarted. 更多... | |
| virtual float | PlayAnimMontage (class UAnimMontage *AnimMontage, float InPlayRate=1.f, FName StartSectionName=NAME_None) |
| Play Animation Montage on the character mesh. 更多... | |
| virtual void | PossessedBy (AController *NewController) override |
| Called when this Pawn is possessed. 更多... | |
| virtual void | PostInitializeComponents () override |
| Allow actors to initialize themselves on the C++ side after all of their components have been initialized, only called during gameplay | |
| virtual void | PostNetReceive () override |
| Always called immediately after properties are received from the remote. | |
| virtual void | PostNetReceiveLocationAndRotation () override |
| Update location and rotation from ReplicatedMovement. 更多... | |
| virtual void | PreNetReceive () override |
| Always called immediately before properties are received from the remote. | |
| virtual void | PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker) override |
| Called on the actor right before replication occurs. 更多... | |
| virtual void | PreReplicationForReplay (IRepChangedPropertyTracker &ChangedPropertyTracker) override |
| Called on the actor right before replication occurs. 更多... | |
| virtual void | RecalculateBaseEyeHeight () override |
| Set BaseEyeHeight based on current state. | |
| virtual void | ResetJumpState () |
| Marks character as not trying to jump | |
| virtual void | Restart () override |
| Called when the Pawn is being restarted (usually by being possessed by a Controller). | |
| bool | RestoreReplicatedMove (const FSimulatedRootMotionReplicatedMove &RootMotionRepMove) |
| Restore actor to an old buffered move. | |
| void | SaveRelativeBasedMovement (const FVector &NewRelativeLocation, const FRotator &NewRotation, bool bRelativeRotation) |
| Save a new relative location in BasedMovement and a new rotation with is either relative or absolute. | |
| void | ServerMove (float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc, uint8 CompressedMoveFlags, uint8 ClientRoll, uint32 View, UPrimitiveComponent *ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode) |
| Replicated function sent by client to server - contains client movement and view info. | |
| void | ServerMoveDual (float TimeStamp0, FVector_NetQuantize10 InAccel0, uint8 PendingFlags, uint32 View0, float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc, uint8 NewFlags, uint8 ClientRoll, uint32 View, UPrimitiveComponent *ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode) |
| Replicated function sent by client to server - contains client movement and view info for two moves. | |
| void | ServerMoveDualHybridRootMotion (float TimeStamp0, FVector_NetQuantize10 InAccel0, uint8 PendingFlags, uint32 View0, float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc, uint8 NewFlags, uint8 ClientRoll, uint32 View, UPrimitiveComponent *ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode) |
| Replicated function sent by client to server - contains client movement and view info for two moves. 更多... | |
| void | ServerMoveDualNoBase (float TimeStamp0, FVector_NetQuantize10 InAccel0, uint8 PendingFlags, uint32 View0, float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc, uint8 NewFlags, uint8 ClientRoll, uint32 View, uint8 ClientMovementMode) |
| Replicated function sent by client to server - contains client movement and view info for two moves. | |
| void | ServerMoveNoBase (float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc, uint8 CompressedMoveFlags, uint8 ClientRoll, uint32 View, uint8 ClientMovementMode) |
| Replicated function sent by client to server. 更多... | |
| void | SetAnimRootMotionTranslationScale (float InAnimRootMotionTranslationScale=1.f) |
| Sets scale to apply to root motion translation on this Character | |
| virtual void | SetBase (UPrimitiveComponent *NewBase, const FName BoneName=NAME_None, bool bNotifyActor=true) |
| Sets the component the Character is walking on, used by CharacterMovement walking movement to be able to follow dynamic objects. | |
| virtual void | SetReplicateMovement (bool bInReplicateMovement) override |
| Set whether this actor's movement replicates to network clients. | |
| virtual void | SetupPlayerInputComponent (class UInputComponent *PlayerInputComponent) override |
| Allows a Pawn to set up custom input bindings. 更多... | |
| virtual bool | ShouldNotifyLanded (const struct FHitResult &Hit) |
| Returns true if the Landed() event should be called. 更多... | |
| void | SimulatedRootMotionPositionFixup (float DeltaSeconds) |
| Position fix up for Simulated Proxies playing Root Motion | |
| virtual void | StopAnimMontage (class UAnimMontage *AnimMontage=nullptr) |
| Stop Animation Montage. 更多... | |
| virtual void | StopJumping () |
| Stop the character from jumping on the next update. 更多... | |
| virtual void | TornOff () override |
| Networking - called on client when actor is torn off (bTearOff==true), meaning it's no longer replicated to clients. 更多... | |
| virtual void | TurnOff () override |
| Freeze pawn - stop sounds, animations, physics, weapon firing | |
| virtual void | UnCrouch (bool bClientSimulation=false) |
| Request the character to stop crouching. 更多... | |
| virtual void | UnPossessed () override |
| Called when our Controller no longer possesses us. | |
| virtual void | UpdateNavigationRelevance () override |
| Update all components relevant for navigation generators to match bCanAffectNavigationGeneration flag | |
Public 成员函数 继承自 APawn | |
| virtual void | AddControllerPitchInput (float Val) |
| Add input (affecting Pitch) to the Controller's ControlRotation, if it is a local PlayerController. 更多... | |
| virtual void | AddControllerRollInput (float Val) |
| Add input (affecting Roll) to the Controller's ControlRotation, if it is a local PlayerController. 更多... | |
| virtual void | AddControllerYawInput (float Val) |
| Add input (affecting Yaw) to the Controller's ControlRotation, if it is a local PlayerController. 更多... | |
| virtual void | AddMovementInput (FVector WorldDirection, float ScaleValue=1.0f, bool bForce=false) |
| Add movement input along the given world direction vector (usually normalized) scaled by 'ScaleValue'. 更多... | |
| APawn (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get()) | |
| Default UObject constructor. | |
| virtual void | BecomeViewTarget (APlayerController *PC) override |
| Called when this actor becomes the given PlayerController's ViewTarget. 更多... | |
| virtual bool | CanBeBaseForCharacter (APawn *APawn) const override |
| Overridden to defer to the RootComponent's CanCharacterStepUpOn setting if it is explicitly Yes or No. 更多... | |
| virtual FVector | ConsumeMovementInputVector () |
| Returns the pending input vector and resets it to zero. 更多... | |
| virtual void | Destroyed () override |
| Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending | |
| virtual void | DetachFromControllerPendingDestroy () |
| Call this function to detach safely pawn from its controller, knowing that we will be destroyed soon. 更多... | |
| virtual void | DisableInput (APlayerController *PlayerController) override |
| Removes this actor from the stack of input being handled by a PlayerController. 更多... | |
| virtual void | EnableInput (APlayerController *PlayerController) override |
| Pushes this actor on to the stack of input being handled by a PlayerController. 更多... | |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
| Overridable function called whenever this actor is being removed from a level | |
| virtual void | FaceRotation (FRotator NewControlRotation, float DeltaTime=0.f) |
| Updates Pawn's rotation to the given rotation, assumed to be the Controller's ControlRotation. 更多... | |
| virtual void | GetActorEyesViewPoint (FVector &Location, FRotator &Rotation) const override |
| Returns the point of view of the actor. 更多... | |
| virtual FRotator | GetBaseAimRotation () const |
| Return the aim rotation for the Pawn. 更多... | |
| AController * | GetController () const |
| Returns controller for this actor. | |
| template<class T > | |
| T * | GetController () const |
| Returns controller for this actor cast to the template type. 更多... | |
| FRotator | GetControlRotation () const |
| Get the rotation of the Controller, often the 'view' rotation of this Pawn. | |
| virtual float | GetDefaultHalfHeight () const |
| Returns The half-height of the default Pawn, scaled by the component scale. 更多... | |
| FVector | GetGravityDirection () |
| Returns vector direction of gravity | |
| virtual FString | GetHumanReadableName () const override |
| Returns the human readable string representation of an object. | |
| FVector | GetLastMovementInputVector () const |
| Return the last input vector in world space that was processed by ConsumeMovementInputVector(), which is usually done by the Pawn or PawnMovementComponent. 更多... | |
| virtual void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties | |
| virtual UPrimitiveComponent * | GetMovementBase () const |
| Return PrimitiveComponent we are based on (standing on, attached to, and moving on). | |
| virtual UPawnMovementComponent * | GetMovementComponent () const |
| Return our PawnMovementComponent, if we have one. 更多... | |
| virtual FVector | GetNavAgentLocation () const override |
| Basically retrieved pawn's location on navmesh | |
| virtual class UNetConnection * | GetNetConnection () const override |
| Get the owning connection used for communicating between client/server 更多... | |
| virtual const AActor * | GetNetOwner () const override |
| Return the actor responsible for replication, if any. 更多... | |
| virtual UPlayer * | GetNetOwningPlayer () override |
| Return the owning UPlayer (if any) of this actor. 更多... | |
| virtual UPawnNoiseEmitterComponent * | GetPawnNoiseEmitterComponent () const |
| Return our PawnNoiseEmitterComponent, if any. 更多... | |
| virtual APhysicsVolume * | GetPawnPhysicsVolume () const |
| Return Physics Volume for this Pawn | |
| virtual FVector | GetPawnViewLocation () const |
| Returns Pawn's eye location | |
| FVector | GetPendingMovementInputVector () const |
| Return the pending input vector in world space. 更多... | |
| APlayerState * | GetPlayerState () const |
| If Pawn is possessed by a player, returns its Player State. 更多... | |
| template<class T > | |
| T * | GetPlayerState () const |
| Templated convenience version of GetPlayerState. | |
| template<class T > | |
| T * | GetPlayerStateChecked () const |
| Templated convenience version of GetPlayerState which checks the type is as presumed. | |
| virtual FVector | GetVelocity () const override |
| Returns velocity (in cm/s (Unreal Units/second) of the rootcomponent if it is either using physics or has an associated MovementComponent | |
| virtual FRotator | GetViewRotation () const |
| Get the view rotation of the Pawn (direction they are looking, normally Controller->ControlRotation). 更多... | |
| virtual bool | InFreeCam () const |
| Returns true if player is viewing this Pawn in FreeCam | |
| bool | InputEnabled () const |
| Whether this Pawn's input handling is enabled. 更多... | |
| void | Internal_AddMovementInput (FVector WorldAccel, bool bForce=false) |
| Internal function meant for use only within Pawn or by a PawnMovementComponent. 更多... | |
| FVector | Internal_ConsumeMovementInputVector () |
| Internal function meant for use only within Pawn or by a PawnMovementComponent. 更多... | |
| FVector | Internal_GetLastMovementInputVector () const |
| Internal function meant for use only within Pawn or by a PawnMovementComponent. 更多... | |
| FVector | Internal_GetPendingMovementInputVector () const |
| Internal function meant for use only within Pawn or by a PawnMovementComponent. 更多... | |
| virtual bool | IsBasedOnActor (const AActor *Other) const override |
| Iterates up the movement base chain to see whether or not this Actor is based on the given Actor, defaults to checking attachment 更多... | |
| virtual bool | IsBotControlled () const |
| Returns true if controlled by a bot. 更多... | |
| bool | IsControlled () const |
| See if this actor is currently being controlled | |
| virtual bool | IsLocallyControlled () const |
| Returns true if controlled by a local (not network) Controller. 更多... | |
| virtual bool | IsMoveInputIgnored () const |
| Helper to see if move input is ignored. 更多... | |
| virtual bool | IsNetRelevantFor (const AActor *RealViewer, const AActor *ViewTarget, const FVector &SrcLocation) const override |
| Checks to see if this actor is relevant for a specific network connection 更多... | |
| bool | IsPawnControlled () const |
| Check if this actor is currently being controlled at all (the actor has a valid Controller) | |
| virtual bool | IsPlayerControlled () const |
| Returns true if controlled by a human player (possessed by a PlayerController). 更多... | |
| FVector | K2_GetMovementInputVector () const |
| (Deprecated) Return the input vector in world space. | |
| void | LaunchPawn (FVector LaunchVelocity, bool bXYOverride, bool bZOverride) |
| (Deprecated) Launch Character with LaunchVelocity | |
| void | MoveIgnoreActorAdd (AActor *ActorToIgnore) |
| Add an Actor to ignore by Pawn's movement collision | |
| void | MoveIgnoreActorRemove (AActor *ActorToIgnore) |
| Remove an Actor to ignore by Pawn's movement collision | |
| virtual void | OnRep_Controller () |
| Called when Controller is replicated | |
| virtual void | OnRep_PlayerState () |
| PlayerState Replication Notification Callback | |
| virtual void | OutsideWorldBounds () override |
| Called when the Actor is outside the hard limit on world bounds | |
| virtual void | PawnClientRestart () |
| Tell client that the Pawn is begin restarted. 更多... | |
| void | PawnMakeNoise (float Loudness, FVector NoiseLocation, bool bUseNoiseMakerLocation=true, AActor *NoiseMaker=nullptr) |
| Inform AIControllers that you've made a noise they might hear (they are sent a HearNoise message if they have bHearNoises==true) The instigator of this sound is the pawn which is used to call MakeNoise. 更多... | |
| virtual void | PawnStartFire (uint8 FireModeNum=0) |
| Handle StartFire() passed from PlayerController | |
| virtual void | PossessedBy (AController *NewController) |
| Called when this Pawn is possessed. 更多... | |
| virtual void | PostInitializeComponents () override |
| Allow actors to initialize themselves on the C++ side after all of their components have been initialized, only called during gameplay | |
| virtual void | PostLoad () override |
| Do any object-specific cleanup required immediately after loading an object. 更多... | |
| virtual void | PostNetReceiveLocationAndRotation () override |
| Update location and rotation from ReplicatedMovement. 更多... | |
| virtual void | PostNetReceiveVelocity (const FVector &NewVelocity) override |
| Update velocity - typically from ReplicatedMovement, not called for simulated physics! | |
| virtual void | PostRegisterAllComponents () override |
| Called after all the components in the Components array are registered, called both in editor and during gameplay | |
| virtual void | PreInitializeComponents () override |
| Called right before components are initialized, only called during gameplay | |
| virtual void | PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker) override |
| Called on the actor right before replication occurs. 更多... | |
| virtual bool | ReachedDesiredRotation () |
| Return true if yaw is within AllowedYawError of desired yaw | |
| virtual void | RecalculateBaseEyeHeight () |
| Set BaseEyeHeight based on current state. | |
| void | ReceivePossessed (AController *NewController) |
| Event called when the Pawn is possessed by a Controller (normally only occurs on the server/standalone). | |
| void | ReceiveUnpossessed (AController *OldController) |
| Event called when the Pawn is no longer possessed by a Controller. | |
| virtual void | Reset () override |
| Reset actor to initial state - used when restarting level without reloading. | |
| virtual void | Restart () |
| Called when the Pawn is being restarted (usually by being possessed by a Controller). | |
| void | SetCanAffectNavigationGeneration (bool bNewValue, bool bForceUpdate=false) |
| Use SetCanAffectNavigationGeneration to change this value at runtime. 更多... | |
| virtual void | SetPlayerDefaults () |
| Make sure pawn properties are back to default. | |
| void | SetPlayerState (APlayerState *NewPlayerState) |
| Set the Pawn's Player State. 更多... | |
| void | SetRemoteViewPitch (float NewRemoteViewPitch) |
| Set Pawn ViewPitch, so we can see where remote clients are looking. 更多... | |
| virtual bool | ShouldTakeDamage (float Damage, FDamageEvent const &DamageEvent, AController *EventInstigator, AActor *DamageCauser) const |
| Return true if we are in a state to take damage (checked at the start of TakeDamage. 更多... | |
| virtual bool | ShouldTickIfViewportsOnly () const override |
| If true, actor is ticked even if TickType==LEVELTICK_ViewportsOnly | |
| virtual void | SpawnDefaultController () |
| Spawn default controller for this Pawn, and get possessed by it. | |
| virtual float | TakeDamage (float Damage, struct FDamageEvent const &DamageEvent, AController *EventInstigator, AActor *DamageCauser) override |
| Apply damage to this actor. 更多... | |
| virtual void | TeleportSucceeded (bool bIsATest) override |
| Called from TeleportTo() when teleport succeeds | |
| virtual void | TurnOff () |
| Freeze pawn - stop sounds, animations, physics, weapon firing | |
| virtual void | UnPossessed () |
| Called when our Controller no longer possesses us. | |
| void | UpdateNavAgent () |
| Updates MovementComponent's parameters used by navigation system | |
| virtual void | UpdateNavigationRelevance () |
| Update all components relevant for navigation generators to match bCanAffectNavigationGeneration flag | |
Public 成员函数 继承自 AActor | |
| AActor () | |
| Default constructor for AActor | |
| AActor (const FObjectInitializer &ObjectInitializer) | |
| Constructor for AActor that takes an ObjectInitializer for backward compatibility | |
| float | ActorGetDistanceToCollision (const FVector &Point, ECollisionChannel TraceChannel, FVector &ClosestPointOnCollision, UPrimitiveComponent **OutPrimitiveComponent=nullptr) const |
| returns Distance to closest Body Instance surface. 更多... | |
| bool | ActorHasTag (FName Tag) const |
| See if this actor's Tags array contains the supplied name tag | |
| bool | ActorLineTraceSingle (struct FHitResult &OutHit, const FVector &Start, const FVector &End, ECollisionChannel TraceChannel, const struct FCollisionQueryParams &Params) const |
| Trace a ray against the Components of this Actor and return the first blocking hit 更多... | |
| FORCEINLINE const FTransform & | ActorToWorld () const |
| Get the local-to-world transform of the RootComponent. 更多... | |
| UActorComponent * | AddComponent (FName TemplateName, bool bManualAttachment, const FTransform &RelativeTransform, const UObject *ComponentTemplateContext, bool bDeferredFinish=false) |
| Creates a new component and assigns ownership to the Actor this is called for. 更多... | |
| UActorComponent * | AddComponentByClass (TSubclassOf< UActorComponent > Class, bool bManualAttachment, const FTransform &RelativeTransform, bool bDeferredFinish) |
| Creates a new component and assigns ownership to the Actor this is called for. 更多... | |
| void | AddControllingMatineeActor (AMatineeActor &InMatineeActor) |
| Adds a controlling matinee actor for use during matinee playback 更多... | |
| void | AddInstanceComponent (UActorComponent *Component) |
| Adds a component to the instance components array | |
| void | AddOwnedComponent (UActorComponent *Component) |
| Puts a component in to the OwnedComponents array of the Actor. 更多... | |
| virtual void | AddTickPrerequisiteActor (AActor *PrerequisiteActor) |
| Make this actor tick after PrerequisiteActor. 更多... | |
| virtual void | AddTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent) |
| Make this actor tick after PrerequisiteComponent. 更多... | |
| FORCEINLINE bool | AllowReceiveTickEventOnDedicatedServer () const |
| Return the value of bAllowReceiveTickEventOnDedicatedServer, indicating whether the Blueprint ReceiveTick() event will occur on dedicated servers. | |
| virtual void | ApplyWorldOffset (const FVector &InOffset, bool bWorldShift) |
| Called by owning level to shift an actor location and all relevant data structures by specified delta 更多... | |
| void | AttachToActor (AActor *ParentActor, const FAttachmentTransformRules &AttachmentRules, FName SocketName=NAME_None) |
| Attaches the RootComponent of this Actor to the RootComponent of the supplied actor, optionally at a named socket. 更多... | |
| void | AttachToComponent (USceneComponent *Parent, const FAttachmentTransformRules &AttachmentRules, FName SocketName=NAME_None) |
| Attaches the RootComponent of this Actor to the supplied component, optionally at a named socket. 更多... | |
| virtual void | BecomeViewTarget (class APlayerController *PC) |
| Called when this actor becomes the given PlayerController's ViewTarget. 更多... | |
| virtual void | BeginDestroy () override |
| Called before destroying the object. 更多... | |
| virtual void | CalcCamera (float DeltaTime, struct FMinimalViewInfo &OutResult) |
| Calculate camera view point, when viewing this actor. 更多... | |
| virtual FBox | CalculateComponentsBoundingBoxInLocalSpace (bool bNonColliding=false, bool bIncludeFromChildActors=false) const |
| Calculates the actor space bounding box of all components in this Actor. 更多... | |
| void | CallPreReplication (UNetDriver *NetDriver) |
| Called by the networking system to call PreReplication on this actor and its components using the given NetDriver to find or create RepChangedPropertyTrackers. | |
| virtual bool | CallRemoteFunction (UFunction *Function, void *Parameters, FOutParmRec *OutParms, FFrame *Stack) override |
| Call the actor's function remotely 更多... | |
| virtual bool | CanBeBaseForCharacter (class APawn *Pawn) const |
| Return true if the given Pawn can be "based" on this actor (ie walk on it). 更多... | |
| bool | CanBeDamaged () const |
| Gets the literal value of bCanBeDamaged. 更多... | |
| virtual bool | CanBeInCluster () const override |
| Called during cluster construction if the object can be added to a cluster 更多... | |
| FORCEINLINE bool | CanEverTick () const |
| Accessor for the value of bCanEverTick | |
| void | CheckComponentInstanceName (const FName InName) |
| Checks for and resolve any name conflicts prior to instancing a new Blueprint Component. | |
| virtual bool | CheckDefaultSubobjectsInternal () const override |
| Checks default sub-object assumptions. 更多... | |
| virtual bool | CheckStillInWorld () |
| This will check to see if the Actor is still in the world. 更多... | |
| void | ClearComponentOverlaps () |
| Dispatch all EndOverlap for all of the Actor's PrimitiveComponents. 更多... | |
| virtual void | ClearCrossLevelReferences () |
| Do anything needed to clear out cross level references; Called from ULevel::PreSave | |
| void | ClearInstanceComponents (bool bDestroyComponents) |
| Clears the instance components array | |
| void | CopyRemoteRoleFrom (const AActor *CopyFromActor) |
| Copies RemoteRole from another Actor and adds this actor to the list of network actors if necessary. | |
| UActorComponent * | CreateComponentFromTemplate (UActorComponent *Template, const FName InName=NAME_None) |
| Util to create a component based on a template | |
| void | DebugShowComponentHierarchy (const TCHAR *Info, bool bShowPosition=true) |
| Debug helper to show the component hierarchy of this actor. 更多... | |
| void | DebugShowOneComponentHierarchy (USceneComponent *SceneComp, int32 &NestLevel, bool bShowPosition) |
| Debug helper for showing the component hierarchy of one component | |
| bool | Destroy (bool bNetForce=false, bool bShouldModifyLevel=true) |
| Destroy this actor. 更多... | |
| void | DestroyConstructedComponents () |
| Destroys the constructed components. | |
| virtual void | Destroyed () |
| Called when this actor is explicitly being destroyed during gameplay or in the editor, not called during level streaming or gameplay ending | |
| virtual bool | DestroyNetworkActorHandled () |
| Called by DestroyActor(), gives actors a chance to op out of actor destruction Used by network code to have the net connection timeout/cleanup first 更多... | |
| void | DetachAllSceneComponents (class USceneComponent *InParentComponent, const FDetachmentTransformRules &DetachmentRules) |
| Detaches all SceneComponents in this Actor from the supplied parent SceneComponent. 更多... | |
| void | DetachFromActor (const FDetachmentTransformRules &DetachmentRules) |
| Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to. 更多... | |
| void | DetachRootComponentFromParent (bool bMaintainWorldPosition=true) |
| DEPRECATED - Use DetachFromActor() instead | |
| void | DisableComponentsSimulatePhysics () |
| Stop all simulation from all components in this actor | |
| virtual void | DisableInput (class APlayerController *PlayerController) |
| Removes this actor from the stack of input being handled by a PlayerController. 更多... | |
| void | DispatchBeginPlay (bool bFromLevelStreaming=false) |
| Initiate a begin play call on this Actor, will handle calling in the correct order. | |
| void | DispatchBlockingHit (UPrimitiveComponent *MyComp, UPrimitiveComponent *OtherComp, bool bSelfMoved, FHitResult const &Hit) |
| Call ReceiveHit, as well as delegates on Actor and Component | |
| virtual void | DispatchPhysicsCollisionHit (const struct FRigidBodyCollisionInfo &MyInfo, const struct FRigidBodyCollisionInfo &OtherInfo, const FCollisionImpactData &RigidCollisionData) |
| Dispatches ReceiveHit virtual and OnComponentHit delegate | |
| virtual void | DisplayDebug (class UCanvas *Canvas, const class FDebugDisplayInfo &DebugDisplay, float &YL, float &YPos) |
| Draw important Actor variables on canvas. 更多... | |
| void | DrawDebugComponents (FColor const &BaseColor=FColor::White) const |
| Debug rendering to visualize the component tree for this actor. | |
| virtual void | EnableInput (class APlayerController *PlayerController) |
| Pushes this actor on to the stack of input being handled by a PlayerController. 更多... | |
| virtual void | EndViewTarget (class APlayerController *PC) |
| Called when this actor is no longer the given PlayerController's ViewTarget. 更多... | |
| void | ExchangeNetRoles (bool bRemoteOwner) |
| Swaps Role and RemoteRole if client | |
| bool | ExecuteConstruction (const FTransform &Transform, const struct FRotationConversionCache *TransformRotationCache, const class FComponentInstanceDataCache *InstanceDataCache, bool bIsDefaultTransform=false) |
| Run any construction script for this Actor. 更多... | |
| virtual void | FellOutOfWorld (const class UDamageType &dmgType) |
| Called when the actor falls out of the world 'safely' (below KillZ and such) | |
| template<class T > | |
| T * | FindComponentByClass () const |
| Templatized version of FindComponentByClass that handles casting for you | |
| virtual UActorComponent * | FindComponentByClass (const TSubclassOf< UActorComponent > ComponentClass) const |
| Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass | |
| FNetworkObjectInfo * | FindNetworkObjectInfo () |
| Find the FNetworkObjectInfo struct associated with this actor (for the main NetDriver). 更多... | |
| FNetworkObjectInfo * | FindOrAddNetworkObjectInfo () |
| Find the FNetworkObjectInfo struct associated with this actor (for the main NetDriver). 更多... | |
| void | FinishAddComponent (UActorComponent *Component, bool bManualAttachment, const FTransform &RelativeTransform) |
| Completes the creation of a new actor component. 更多... | |
| void | FinishAndRegisterComponent (UActorComponent *Component) |
| Helper function to register the specified component, and add it to the serialized components array 更多... | |
| void | FinishSpawning (const FTransform &Transform, bool bIsDefaultTransform=false, const FComponentInstanceDataCache *InstanceDataCache=nullptr) |
| Called to finish the spawning process, generally in the case of deferred spawning | |
| void | FlushNetDormancy () |
| Forces dormant actor to replicate but doesn't change NetDormancy state (i.e., they will go dormant again if left dormant) | |
| virtual void | ForceNetRelevant () |
| Forces this actor to be net relevant if it is not already by default | |
| virtual void | ForceNetUpdate () |
| Force actor to be updated to clients/demo net drivers | |
| void | ForcePropertyCompare () |
| Forces properties on this actor to do a compare for one frame (rather than share shadow state) | |
| void | ForEachAttachedActors (TFunctionRef< bool(class AActor *)> Functor) const |
| Call a functor for Actors which are attached directly to a component in this actor. 更多... | |
| template<class ComponentType , typename Func > | |
| void | ForEachComponent (bool bIncludeFromChildActors, Func InFunc) const |
| Calls the compile-time lambda on each component of the specified type 更多... | |
| template<typename Func > | |
| void | ForEachComponent (bool bIncludeFromChildActors, Func InFunc) const |
| Calls the compile-time lambda on each valid component 更多... | |
| virtual void | GatherCurrentMovement () |
| Fills ReplicatedMovement property | |
| void | GetActorBounds (bool bOnlyCollidingComponents, FVector &Origin, FVector &BoxExtent, bool bIncludeFromChildActors=false) const |
| Returns the bounding box of all components that make up this Actor (excluding ChildActorComponents). 更多... | |
| bool | GetActorEnableCollision () const |
| Get current state of collision for the whole actor | |
| virtual void | GetActorEyesViewPoint (FVector &OutLocation, FRotator &OutRotation) const |
| Returns the point of view of the actor. 更多... | |
| FVector | GetActorForwardVector () const |
| Get the forward (X) vector (length 1.0) from this Actor, in world space. 更多... | |
| FORCEINLINE FVector | GetActorLocation () const |
| Returns the location of the RootComponent of this Actor | |
| FORCEINLINE FQuat | GetActorQuat () const |
| Returns the quaternion of the RootComponent of this Actor | |
| FVector | GetActorRelativeScale3D () const |
| Return the actor's relative scale 3d | |
| FVector | GetActorRightVector () const |
| Get the right (Y) vector (length 1.0) from this Actor, in world space. 更多... | |
| FORCEINLINE FRotator | GetActorRotation () const |
| Returns the rotation of the RootComponent of this Actor | |
| FORCEINLINE FVector | GetActorScale () const |
| Returns the scale of the RootComponent of this Actor | |
| FVector | GetActorScale3D () const |
| Returns the Actor's world-space scale. | |
| float | GetActorTickInterval () const |
| Returns the tick interval of this actor's primary tick function | |
| float | GetActorTimeDilation () const |
| Get ActorTimeDilation - this can be used for input control or speed control for slomo. 更多... | |
| float | GetActorTimeDilation (const UWorld &ActorWorld) const |
| More efficient version that takes the Actor's current world. | |
| FORCEINLINE const FTransform & | GetActorTransform () const |
| Returns the transform of the RootComponent of this Actor | |
| FVector | GetActorUpVector () const |
| Get the up (Z) vector (length 1.0) from this Actor, in world space. 更多... | |
| void | GetAllChildActors (TArray< AActor * > &ChildActors, bool bIncludeDescendants=true) const |
| Returns a list of all actors spawned by our Child Actor Components, including children of children. 更多... | |
| void | GetAttachedActors (TArray< AActor * > &OutActors, bool bResetArray=true) const |
| Find all Actors which are attached directly to a component in this actor | |
| const struct FRepAttachment & | GetAttachmentReplication () const |
| Get read-only access to current AttachmentReplication. | |
| AActor * | GetAttachParentActor () const |
| Walk up the attachment chain from RootComponent until we encounter a different actor, and return it. 更多... | |
| FName | GetAttachParentSocketName () const |
| Walk up the attachment chain from RootComponent until we encounter a different actor, and return the socket name in the component. 更多... | |
| UActorComponent * | GetComponentByClass (TSubclassOf< UActorComponent > ComponentClass) const |
| Searches components array and returns first encountered component of the specified class | |
| const TSet< UActorComponent * > & | GetComponents () const |
| Get a direct reference to the Components set rather than a copy with the null pointers removed. 更多... | |
| template<class T , class AllocatorType > | |
| void | GetComponents (TArray< T *, AllocatorType > &OutComponents, bool bIncludeFromChildActors=false) const |
| Get all components derived from class 'T' and fill in the OutComponents array with the result. 更多... | |
| template<class AllocatorType > | |
| void | GetComponents (TArray< UActorComponent *, AllocatorType > &OutComponents, bool bIncludeFromChildActors=false) const |
| UActorComponent specialization of GetComponents() to avoid unnecessary casts. 更多... | |
| template<class AllocatorType > | |
| void | GetComponents (TSubclassOf< UActorComponent > ComponentClass, TArray< UActorComponent *, AllocatorType > &OutComponents, bool bIncludeFromChildActors=false) const |
| Get all components derived from specified ComponentClass and fill in the OutComponents array with the result. 更多... | |
| virtual FBox | GetComponentsBoundingBox (bool bNonColliding=false, bool bIncludeFromChildActors=false) const |
| Returns the world space bounding box of all components in this Actor. 更多... | |
| virtual void | GetComponentsBoundingCylinder (float &CollisionRadius, float &CollisionHalfHeight, bool bNonColliding=false, bool bIncludeFromChildActors=false) const |
| Get half-height/radius of a big axis-aligned cylinder around this actors registered colliding components, or all registered components if bNonColliding is false. 更多... | |
| TArray< UActorComponent * > | GetComponentsByInterface (TSubclassOf< UInterface > Interface) const |
| Gets all the components that implements the given interface. | |
| TArray< UActorComponent * > | GetComponentsByTag (TSubclassOf< UActorComponent > ComponentClass, FName Tag) const |
| Gets all the components that inherit from the given class with a given tag. | |
| virtual ECollisionResponse | GetComponentsCollisionResponseToChannel (ECollisionChannel Channel) const |
| Get Collision Response to the passed in Channel for all components It returns Max of state - i.e. 更多... | |
| virtual USceneComponent * | GetDefaultAttachComponent () const |
| Returns this actor's default attachment component for attaching children to 更多... | |
| float | GetDistanceTo (const AActor *OtherActor) const |
| Returns the distance from this Actor to OtherActor. | |
| float | GetDotProductTo (const AActor *OtherActor) const |
| Returns the dot product from this Actor to OtherActor. 更多... | |
| virtual int32 | GetFunctionCallspace (UFunction *Function, FFrame *Stack) override |
| Return the space this function should be called. 更多... | |
| class UGameInstance * | GetGameInstance () const |
| Gets the GameInstance that ultimately contains this actor. | |
| template<class T > | |
| T * | GetGameInstance () const |
| Gets the GameInstance that ultimately contains this actor cast to the template type. 更多... | |
| float | GetGameTimeSinceCreation () const |
| The number of seconds (in game time) since this Actor was created, relative to Get Game Time In Seconds. | |
| float | GetHorizontalDistanceTo (const AActor *OtherActor) const |
| Returns the distance from this Actor to OtherActor, ignoring Z. | |
| float | GetHorizontalDotProductTo (const AActor *OtherActor) const |
| Returns the dot product from this Actor to OtherActor, ignoring Z. 更多... | |
| virtual FString | GetHumanReadableName () const |
| Returns the human readable string representation of an object. | |
| float | GetInputAxisKeyValue (const FKey InputAxisKey) const |
| Gets the value of the input axis key if input is enabled for this actor. | |
| float | GetInputAxisValue (const FName InputAxisName) const |
| Gets the value of the input axis if input is enabled for this actor. | |
| FVector | GetInputVectorAxisValue (const FKey InputAxisKey) const |
| Gets the value of the input axis key if input is enabled for this actor. | |
| const TArray< UActorComponent * > & | GetInstanceComponents () const |
| Returns the instance components array | |
| APawn * | GetInstigator () const |
| Returns the instigator for this actor, or nullptr if there is none. | |
| template<class T > | |
| T * | GetInstigator () const |
| Get the instigator, cast as a specific class. 更多... | |
| AController * | GetInstigatorController () const |
| Returns the instigator's controller for this actor, or nullptr if there is none. | |
| template<class T > | |
| T * | GetInstigatorController () const |
| Returns the instigator's controller, cast as a specific class. 更多... | |
| FORCEINLINE bool | GetIsReplicated () const |
| Returns whether replication is enabled or not. | |
| virtual float | GetLastRenderTime () const |
| Returns the most recent time any of this actor's components were rendered | |
| ULevel * | GetLevel () const |
| Return the ULevel that this Actor is part of. | |
| virtual float | GetLifeSpan () const |
| Get the remaining lifespan of this actor. 更多... | |
| void | GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override |
| Returns the properties used for network replication, this needs to be overridden by all actor classes with native replicated properties | |
| ENetRole | GetLocalRole () const |
| Returns how much control the local machine has over this actor. | |
| virtual class UNetConnection * | GetNetConnection () const |
| Get the owning connection used for communicating between client/server 更多... | |
| virtual bool | GetNetDormancy (const FVector &ViewPos, const FVector &ViewDir, class AActor *Viewer, AActor *ViewTarget, UActorChannel *InChannel, float Time, bool bLowBandwidth) |
| Returns true if the actor should be dormant for a specific net connection. 更多... | |
| class UNetDriver * | GetNetDriver () const |
| Returns the net driver that this actor is bound to, may be null | |
| FName | GetNetDriverName () const |
| Returns name of the net driver associated with this actor (all RPCs will go out via this connection) | |
| ENetMode | GetNetMode () const |
| Get the network mode (dedicated server, client, standalone, etc) for this actor. 更多... | |
| virtual const AActor * | GetNetOwner () const |
| Return the actor responsible for replication, if any. 更多... | |
| virtual class UPlayer * | GetNetOwningPlayer () |
| Return the owning UPlayer (if any) of this actor. 更多... | |
| virtual float | GetNetPriority (const FVector &ViewPos, const FVector &ViewDir, class AActor *Viewer, AActor *ViewTarget, UActorChannel *InChannel, float Time, bool bLowBandwidth) |
| Function used to prioritize actors when deciding which to replicate 更多... | |
| void | GetOverlappingActors (TArray< AActor * > &OverlappingActors, TSubclassOf< AActor > ClassFilter=nullptr) const |
| Returns list of actors this actor is overlapping (any component overlapping any component). 更多... | |
| void | GetOverlappingActors (TSet< AActor * > &OverlappingActors, TSubclassOf< AActor > ClassFilter=nullptr) const |
| Returns set of actors this actor is overlapping (any component overlapping any component). 更多... | |
| void | GetOverlappingComponents (TArray< UPrimitiveComponent * > &OverlappingComponents) const |
| Returns list of components this actor is overlapping. | |
| void | GetOverlappingComponents (TSet< UPrimitiveComponent * > &OverlappingComponents) const |
| Returns set of components this actor is overlapping. | |
| AActor * | GetOwner () const |
| Get the owner of this Actor, used primarily for network replication. | |
| template<class T > | |
| T * | GetOwner () const |
| Templated version of GetOwner(), will return nullptr if cast fails | |
| AActor * | GetParentActor () const |
| If this Actor was created by a Child Actor Component returns the Actor that owns that Child Actor Component | |
| UChildActorComponent * | GetParentComponent () const |
| If this Actor was created by a Child Actor Component returns that Child Actor Component | |
| FVector | GetPlacementExtent () const |
| Get the extent used when placing this actor in the editor, used for 'pulling back' hit. | |
| ENetRole | GetRemoteRole () const |
| Returns how much control the remote machine has over this actor. | |
| virtual float | GetReplayPriority (const FVector &ViewPos, const FVector &ViewDir, class AActor *Viewer, AActor *ViewTarget, UActorChannel *const InChannel, float Time) |
| Similar to GetNetPriority, but will only be used for prioritizing actors while recording a replay. 更多... | |
| const TArray< UActorComponent * > & | GetReplicatedComponents () const |
| Returns a constant reference to the replicated components set | |
| const FRepMovement & | GetReplicatedMovement () const |
| Gets the literal value of ReplicatedMovement. 更多... | |
| FRepMovement & | GetReplicatedMovement_Mutable () |
| Gets a reference to ReplicatedMovement with the expectation that it will be modified. 更多... | |
| FORCEINLINE USceneComponent * | GetRootComponent () const |
| Returns this actor's root component. | |
| virtual void | GetSimpleCollisionCylinder (float &CollisionRadius, float &CollisionHalfHeight) const |
| Get axis-aligned cylinder around this actor, used for simple collision checks (ie Pawns reaching a destination). 更多... | |
| FVector | GetSimpleCollisionCylinderExtent () const |
| Returns collision extents vector for this Actor, based on GetSimpleCollisionCylinder(). | |
| float | GetSimpleCollisionHalfHeight () const |
| Returns the half height of the collision cylinder from GetSimpleCollisionCylinder(). | |
| float | GetSimpleCollisionRadius () const |
| Returns the radius of the collision cylinder from GetSimpleCollisionCylinder(). | |
| float | GetSquaredDistanceTo (const AActor *OtherActor) const |
| Returns the squared distance from this Actor to OtherActor. | |
| virtual void | GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList) override |
| Returns a list of sub-objects that have stable names for networking | |
| virtual FVector | GetTargetLocation (AActor *RequestedBy=nullptr) const |
| Returns the optimal location to fire weapons at this actor 更多... | |
| bool | GetTearOff () const |
| If true, this actor is no longer replicated to new clients, and is "torn off" (becomes a ROLE_Authority) on clients to which it was being replicated. | |
| bool | GetTickableWhenPaused () |
| Gets whether this actor can tick when paused. | |
| const FTransform & | GetTransform () const |
| Get the actor-to-world transform. 更多... | |
| EActorUpdateOverlapsMethod | GetUpdateOverlapsMethodDuringLevelStreaming () const |
| Get the method used to UpdateOverlaps() when loaded via level streaming. 更多... | |
| virtual FVector | GetVelocity () const |
| Returns velocity (in cm/s (Unreal Units/second) of the rootcomponent if it is either using physics or has an associated MovementComponent | |
| float | GetVerticalDistanceTo (const AActor *OtherActor) const |
| Returns the distance from this Actor to OtherActor, ignoring XY. | |
| virtual UWorld * | GetWorld () const override |
| Getter for the cached world pointer, will return null if the actor is not actually spawned in a level | |
| class AWorldSettings * | GetWorldSettings () const |
| Returns the WorldSettings for the World the actor is in If you'd like to know what UWorld this placed actor (not dynamic spawned actor) belong to, use GetTypedOuter<UWorld>() | |
| class FTimerManager & | GetWorldTimerManager () const |
| Get the timer instance from the actors world | |
| virtual bool | HasActiveCameraComponent () const |
| Returns true if the actor contains an active camera component | |
| virtual bool | HasActivePawnControlCameraComponent () const |
| Returns true if the actor contains an active locked to HMD camera component | |
| bool | HasActorBegunPlay () const |
| Returns whether an actor has had BeginPlay called on it (and not subsequently had EndPlay called) | |
| bool | HasAuthority () const |
| Returns whether this actor has network authority | |
| FORCEINLINE bool | HasDeferredComponentRegistration () const |
| Returns true if Actor has deferred the RegisterAllComponents() call at spawn time (e.g. 更多... | |
| virtual bool | HasLocalNetOwner () const |
| Does this actor have a locally controlled owner responsible for replication? (APlayerController typically) 更多... | |
| virtual bool | HasNetOwner () const |
| Does this actor have an owner responsible for replication? (APlayerController typically) 更多... | |
| bool | HasValidRootComponent () |
| Returns true if Actor has a registered root component | |
| bool | IncrementalRegisterComponents (int32 NumComponentsToRegister, FRegisterComponentContext *Context=nullptr) |
| Incrementally registers components associated with this actor, used during level streaming 更多... | |
| void | InitializeComponents () |
| Iterate over components array and call InitializeComponent, which happens once per actor | |
| void | InvalidateLightingCache () |
| Invalidate lighting cache with default options. | |
| virtual void | InvalidateLightingCacheDetailed (bool bTranslationOnly) |
| Invalidates anything produced by the last lighting build. | |
| bool | IsActorBeginningPlay () const |
| Returns whether an actor is in the process of beginning play | |
| bool | IsActorBeginningPlayFromLevelStreaming () const |
| Returns whether an actor is beginning play in DispatchBeginPlay() during level streaming (which includes initial level load). | |
| bool | IsActorBeingDestroyed () const |
| Returns true if this actor is currently being destroyed, some gameplay events may be unsafe | |
| bool | IsActorInitialized () const |
| Returns whether an actor has been initialized for gameplay | |
| bool | IsActorTickEnabled () const |
| Returns whether this actor has tick enabled or not | |
| virtual bool | IsAsset () const override |
| Returns true if this object is considered an asset. | |
| virtual bool | IsAttachedTo (const AActor *Other) const |
| Iterates up the attachment chain to see whether or not this Actor is attached to the given Actor 更多... | |
| virtual bool | IsBasedOnActor (const AActor *Other) const |
| Iterates up the movement base chain to see whether or not this Actor is based on the given Actor, defaults to checking attachment 更多... | |
| bool | IsChildActor () const |
| Returns whether this Actor was spawned by a child actor component | |
| virtual bool | IsComponentRelevantForNavigation (UActorComponent *Component) const |
| Check if owned component should be relevant for navigation Allows implementing master switch to disable e.g. 更多... | |
| virtual bool | IsEditorOnly () const override |
| Called during saving to determine if the object is forced to be editor only or not 更多... | |
| bool | IsHidden () const |
| Gets the literal value of bHidden. 更多... | |
| bool | IsInLevel (const class ULevel *TestLevel) const |
| Returns true if this actor is contained by TestLevel. | |
| bool | IsInPersistentLevel (bool bIncludeLevelStreamingPersistent=false) const |
| Returns whether this Actor is in the persistent level, i.e. 更多... | |
| virtual bool | IsLevelBoundsRelevant () const |
| Indicates whether this actor should participate in level bounds calculations | |
| bool | IsMatineeControlled () const |
| Returns whether a MatineeActor is currently controlling this Actor | |
| virtual bool | IsNameStableForNetworking () const override |
| IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network | |
| bool | IsNetMode (ENetMode Mode) const |
| Test whether net mode is the given mode. 更多... | |
| virtual bool | IsNetRelevantFor (const AActor *RealViewer, const AActor *ViewTarget, const FVector &SrcLocation) const |
| Checks to see if this actor is relevant for a specific network connection 更多... | |
| bool | IsNetStartupActor () const |
| Returns true if this is a replicated actor that was placed in the map | |
| bool | IsOverlappingActor (const AActor *Other) const |
| Check whether any component of this Actor is overlapping any component of another Actor. 更多... | |
| bool | IsOwnedBy (const AActor *TestOwner) const |
| See if this actor is owned by TestOwner. | |
| bool | IsPackageExternal () const |
| Get the actor packaging mode. 更多... | |
| bool | IsPendingKillPending () const |
| Returns true if this actor has begun the destruction process. 更多... | |
| virtual bool | IsReadyForFinishDestroy () override |
| Called to check if the object is ready for FinishDestroy. 更多... | |
| virtual bool | IsRelevancyOwnerFor (const AActor *ReplicatedActor, const AActor *ActorOwner, const AActor *ConnectionActor) const |
| Check if this actor is the owner when doing relevancy checks for actors marked bOnlyRelevantToOwner 更多... | |
| virtual bool | IsReplayRelevantFor (const AActor *RealViewer, const AActor *ViewTarget, const FVector &SrcLocation, const float CullDistanceSquared) const |
| Checks to see if this actor is relevant for a recorded replay 更多... | |
| bool | IsReplicatingMovement () const |
| Gets the literal value of bReplicateMovement. 更多... | |
| virtual bool | IsReplicationPausedForConnection (const FNetViewer &ConnectionOwnerNetViewer) |
| Gives the actor a chance to pause replication to a player represented by the passed in actor - only called on server | |
| virtual bool | IsRootComponentCollisionRegistered () const |
| Returns true if the root component is registered and has collision enabled. 更多... | |
| bool | IsRootComponentMovable () const |
| See if the root component has Mobility of EComponentMobility::Movable | |
| bool | IsRootComponentStatic () const |
| See if the root component has ModifyFrequency of MF_Static | |
| bool | IsRootComponentStationary () const |
| See if the root component has Mobility of EComponentMobility::Stationary | |
| FORCEINLINE bool | IsRunningUserConstructionScript () const |
| Returns if this actor is currently running the User Construction Script | |
| virtual bool | IsSupportedForNetworking () const override |
| IsSupportedForNetworking means an object can be referenced over the network | |
| void | K2_AddActorLocalOffset (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the location of this component in its local reference frame. 更多... | |
| void | K2_AddActorLocalRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the rotation of this component in its local reference frame 更多... | |
| void | K2_AddActorLocalTransform (const FTransform &NewTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the transform of this component in its local reference frame 更多... | |
| void | K2_AddActorWorldOffset (FVector DeltaLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the location of this actor in world space. 更多... | |
| void | K2_AddActorWorldRotation (FRotator DeltaRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the rotation of this actor in world space. 更多... | |
| void | K2_AddActorWorldTransform (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the transform of this actor in world space. 更多... | |
| void | K2_AddActorWorldTransformKeepScale (const FTransform &DeltaTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Adds a delta to the transform of this actor in world space. 更多... | |
| void | K2_AttachRootComponentTo (USceneComponent *InParent, FName InSocketName=NAME_None, EAttachLocation::Type AttachLocationType=EAttachLocation::KeepRelativeOffset, bool bWeldSimulatedBodies=true) |
| DEPRECATED - Use AttachToComponent() instead | |
| void | K2_AttachRootComponentToActor (AActor *InParentActor, FName InSocketName=NAME_None, EAttachLocation::Type AttachLocationType=EAttachLocation::KeepRelativeOffset, bool bWeldSimulatedBodies=true) |
| DEPRECATED - Use AttachToActor() instead | |
| void | K2_AttachToActor (AActor *ParentActor, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies) |
| Attaches the RootComponent of this Actor to the supplied actor, optionally at a named socket. 更多... | |
| void | K2_AttachToComponent (USceneComponent *Parent, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies) |
| Attaches the RootComponent of this Actor to the supplied component, optionally at a named socket. 更多... | |
| virtual void | K2_DestroyActor () |
| Destroy the actor | |
| void | K2_DetachFromActor (EDetachmentRule LocationRule=EDetachmentRule::KeepRelative, EDetachmentRule RotationRule=EDetachmentRule::KeepRelative, EDetachmentRule ScaleRule=EDetachmentRule::KeepRelative) |
| Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to. 更多... | |
| FVector | K2_GetActorLocation () const |
| Returns the location of the RootComponent of this Actor | |
| FRotator | K2_GetActorRotation () const |
| Returns rotation of the RootComponent of this Actor. | |
| TArray< UActorComponent * > | K2_GetComponentsByClass (TSubclassOf< UActorComponent > ComponentClass) const |
| Gets all the components that inherit from the given class. 更多... | |
| USceneComponent * | K2_GetRootComponent () const |
| Returns the RootComponent of this Actor | |
| void | K2_OnBecomeViewTarget (class APlayerController *PC) |
| Event called when this Actor becomes the view target for the given PlayerController. | |
| void | K2_OnEndViewTarget (class APlayerController *PC) |
| Event called when this Actor is no longer the view target for the given PlayerController. | |
| void | K2_OnReset () |
| Event called when this Actor is reset to its initial state - used when restarting level without reloading. | |
| bool | K2_SetActorLocation (FVector NewLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Move the Actor to the specified location. 更多... | |
| bool | K2_SetActorLocationAndRotation (FVector NewLocation, FRotator NewRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Move the actor instantly to the specified location and rotation. 更多... | |
| void | K2_SetActorRelativeLocation (FVector NewRelativeLocation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Set the actor's RootComponent to the specified relative location. 更多... | |
| void | K2_SetActorRelativeRotation (FRotator NewRelativeRotation, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Set the actor's RootComponent to the specified relative rotation 更多... | |
| void | K2_SetActorRelativeTransform (const FTransform &NewRelativeTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Set the actor's RootComponent to the specified relative transform 更多... | |
| bool | K2_SetActorRotation (FRotator NewRotation, bool bTeleportPhysics) |
| Set the Actor's rotation instantly to the specified rotation. 更多... | |
| bool | K2_SetActorTransform (const FTransform &NewTransform, bool bSweep, FHitResult &SweepHitResult, bool bTeleport) |
| Set the Actors transform to the specified one. 更多... | |
| bool | K2_TeleportTo (FVector DestLocation, FRotator DestRotation) |
| Teleport this actor to a new location. 更多... | |
| virtual void | LifeSpanExpired () |
| Called when the lifespan of an actor expires (if he has one). | |
| void | MakeNoise (float Loudness=1.f, APawn *NoiseInstigator=nullptr, FVector NoiseLocation=FVector::ZeroVector, float MaxRange=0.f, FName Tag=NAME_None) |
| Trigger a noise caused by a given Pawn, at a given location. 更多... | |
| virtual void | MarkComponentsAsPendingKill () |
| Called to mark all components as pending kill when the actor is being destroyed | |
| void | MarkComponentsRenderStateDirty () |
| Flags all component's render state as dirty | |
| virtual void | NotifyActorBeginCursorOver () |
| Event when this actor has the mouse moved over it with the clickable interface. | |
| virtual void | NotifyActorBeginOverlap (AActor *OtherActor) |
| Event when this actor overlaps another actor, for example a player walking into a trigger. 更多... | |
| virtual void | NotifyActorEndCursorOver () |
| Event when this actor has the mouse moved off of it with the clickable interface. | |
| virtual void | NotifyActorEndOverlap (AActor *OtherActor) |
| Event when an actor no longer overlaps another actor, and they have separated. 更多... | |
| virtual void | NotifyActorOnClicked (FKey ButtonPressed=EKeys::LeftMouseButton) |
| Event when this actor is clicked by the mouse when using the clickable interface. | |
| virtual void | NotifyActorOnInputTouchBegin (const ETouchIndex::Type FingerIndex) |
| Event when this actor is touched when click events are enabled. | |
| virtual void | NotifyActorOnInputTouchEnd (const ETouchIndex::Type FingerIndex) |
| Event when this actor is under the finger when untouched when click events are enabled. | |
| virtual void | NotifyActorOnInputTouchEnter (const ETouchIndex::Type FingerIndex) |
| Event when this actor has a finger moved over it with the clickable interface. | |
| virtual void | NotifyActorOnInputTouchLeave (const ETouchIndex::Type FingerIndex) |
| Event when this actor has a finger moved off of it with the clickable interface. | |
| virtual void | NotifyActorOnReleased (FKey ButtonReleased=EKeys::LeftMouseButton) |
| Event when this actor is under the mouse when left mouse button is released while using the clickable interface. | |
| virtual void | NotifyHit (class UPrimitiveComponent *MyComp, AActor *Other, class UPrimitiveComponent *OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult &Hit) |
| Event when this actor bumps into a blocking object, or blocks another actor that bumps into it. 更多... | |
| virtual void | OnActorChannelOpen (class FInBunch &InBunch, class UNetConnection *Connection) |
| Allows for a specific response from the actor when the actor channel is opened (client side) 更多... | |
| virtual void | OnConstruction (const FTransform &Transform) |
| Called when an instance of this class is placed (in editor) or spawned. 更多... | |
| virtual void | OnNetCleanup (class UNetConnection *Connection) |
| Handles cleaning up the associated Actor when killing the connection 更多... | |
| virtual void | OnRep_AttachmentReplication () |
| Called on client when updated AttachmentReplication value is received for this actor. | |
| virtual void | OnRep_Instigator () |
| Called on clients when Instigator is replicated. | |
| virtual void | OnRep_ReplicatedMovement () |
| ReplicatedMovement struct replication event | |
| virtual void | OnRep_ReplicateMovement () |
| Called on client when updated bReplicateMovement value is received for this actor. | |
| virtual void | OnReplicationPausedChanged (bool bIsReplicationPaused) |
| Called on the client when the replication paused value is changed | |
| virtual void | OnSerializeNewActor (class FOutBunch &OutBunch) |
| SerializeNewActor has just been called on the actor before network replication (server side) 更多... | |
| virtual void | OnSubobjectCreatedFromReplication (UObject *NewSubobject) |
| Called on the actor when a new subobject is dynamically created via replication | |
| virtual void | OnSubobjectDestroyFromReplication (UObject *Subobject) |
| Called on the actor when a subobject is dynamically destroyed via replication | |
| virtual void | OutsideWorldBounds () |
| Called when the Actor is outside the hard limit on world bounds | |
| void | PostActorConstruction () |
| Called after the actor has run its construction. 更多... | |
| virtual void | PostActorCreated () |
| Called when an actor is done spawning into the world (from UWorld::SpawnActor), both in the editor and during gameplay For actors with a root component, the location and rotation will have already been set. 更多... | |
| virtual void | PostInitializeComponents () |
| Allow actors to initialize themselves on the C++ side after all of their components have been initialized, only called during gameplay | |
| virtual void | PostInitProperties () override |
| Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多... | |
| virtual void | PostLoad () override |
| Do any object-specific cleanup required immediately after loading an object. 更多... | |
| virtual void | PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph) override |
| Instances components for objects being loaded from disk, if necessary. 更多... | |
| virtual void | PostNetInit () |
| Always called immediately after spawning and reading in replicated properties | |
| virtual void | PostNetReceive () override |
| Always called immediately after properties are received from the remote. | |
| virtual void | PostNetReceiveLocationAndRotation () |
| Update location and rotation from ReplicatedMovement. 更多... | |
| virtual void | PostNetReceivePhysicState () |
| Update and smooth simulated physic state, replaces PostNetReceiveLocation() and PostNetReceiveVelocity() | |
| virtual void | PostNetReceiveRole () |
| Always called immediately after a new Role is received from the remote. | |
| virtual void | PostNetReceiveVelocity (const FVector &NewVelocity) |
| Update velocity - typically from ReplicatedMovement, not called for simulated physics! | |
| virtual void | PostRegisterAllComponents () |
| Called after all the components in the Components array are registered, called both in editor and during gameplay | |
| virtual void | PostRename (UObject *OldOuter, const FName OldName) override |
| Called at the end of Rename(), but only if the rename was actually carried out | |
| virtual void | PostRenderFor (class APlayerController *PC, class UCanvas *Canvas, FVector CameraPosition, FVector CameraDir) |
| Hook to allow actors to render HUD overlays for themselves. 更多... | |
| virtual void | PostSaveRoot (bool bCleanupIsRequired) override |
| Called from within SavePackage on the passed in base/root object. 更多... | |
| void | PostSpawnInitialize (FTransform const &SpawnTransform, AActor *InOwner, APawn *InInstigator, bool bRemoteOwned, bool bNoFail, bool bDeferConstruction) |
| Called after the actor is spawned in the world. 更多... | |
| virtual void | PostUnregisterAllComponents () |
| Called after all currently registered components are cleared | |
| virtual void | PreInitializeComponents () |
| Called right before components are initialized, only called during gameplay | |
| virtual void | PreNetReceive () override |
| Always called immediately before properties are received from the remote. | |
| virtual void | PreRegisterAllComponents () |
| Called before all the components in the Components array are registered, called both in editor and during gameplay | |
| virtual void | PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker) |
| Called on the actor right before replication occurs. 更多... | |
| virtual void | PreReplicationForReplay (IRepChangedPropertyTracker &ChangedPropertyTracker) |
| Called on the actor right before replication occurs. 更多... | |
| virtual bool | PreSaveRoot (const TCHAR *InFilename) override |
| Called from within SavePackage on the passed in base/root object. 更多... | |
| virtual void | PrestreamTextures (float Seconds, bool bEnableStreaming, int32 CinematicTextureGroups=0) |
| Calls PrestreamTextures() for all the actor's meshcomponents. 更多... | |
| virtual void | ProcessEvent (UFunction *Function, void *Parameters) override |
| Called by VM to execute a UFunction with a filled in UStruct of parameters | |
| void | ReceiveActorBeginCursorOver () |
| Event when this actor has the mouse moved over it with the clickable interface. | |
| void | ReceiveActorBeginOverlap (AActor *OtherActor) |
| Event when this actor overlaps another actor, for example a player walking into a trigger. 更多... | |
| void | ReceiveActorEndCursorOver () |
| Event when this actor has the mouse moved off of it with the clickable interface. | |
| void | ReceiveActorEndOverlap (AActor *OtherActor) |
| Event when an actor no longer overlaps another actor, and they have separated. 更多... | |
| void | ReceiveActorOnClicked (FKey ButtonPressed=EKeys::LeftMouseButton) |
| Event when this actor is clicked by the mouse when using the clickable interface. | |
| void | ReceiveActorOnInputTouchBegin (const ETouchIndex::Type FingerIndex) |
| Event when this actor is touched when click events are enabled. | |
| void | ReceiveActorOnInputTouchEnd (const ETouchIndex::Type FingerIndex) |
| Event when this actor is under the finger when untouched when click events are enabled. | |
| void | ReceiveActorOnInputTouchEnter (const ETouchIndex::Type FingerIndex) |
| Event when this actor has a finger moved over it with the clickable interface. | |
| void | ReceiveActorOnInputTouchLeave (const ETouchIndex::Type FingerIndex) |
| Event when this actor has a finger moved off of it with the clickable interface. | |
| void | ReceiveActorOnReleased (FKey ButtonReleased=EKeys::LeftMouseButton) |
| Event when this actor is under the mouse when left mouse button is released while using the clickable interface. | |
| void | ReceiveAnyDamage (float Damage, const class UDamageType *DamageType, class AController *InstigatedBy, AActor *DamageCauser) |
| Event when this actor takes ANY damage | |
| void | ReceiveDestroyed () |
| Called when the actor has been explicitly destroyed. | |
| void | ReceiveHit (class UPrimitiveComponent *MyComp, AActor *Other, class UPrimitiveComponent *OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult &Hit) |
| Event when this actor bumps into a blocking object, or blocks another actor that bumps into it. 更多... | |
| void | ReceivePointDamage (float Damage, const class UDamageType *DamageType, FVector HitLocation, FVector HitNormal, class UPrimitiveComponent *HitComponent, FName BoneName, FVector ShotFromDirection, class AController *InstigatedBy, AActor *DamageCauser, const FHitResult &HitInfo) |
| Event when this actor takes POINT damage | |
| void | ReceiveRadialDamage (float DamageReceived, const class UDamageType *DamageType, FVector Origin, const struct FHitResult &HitInfo, class AController *InstigatedBy, AActor *DamageCauser) |
| Event when this actor takes RADIAL damage | |
| void | ReceiveTick (float DeltaSeconds) |
| Event called every frame, if ticking is enabled | |
| void | RegisterAllActorTickFunctions (bool bRegister, bool bDoComponents) |
| When called, will call the virtual call chain to register all of the tick functions for both the actor and optionally all components Do not override this function or make it virtual 更多... | |
| virtual void | RegisterAllComponents () |
| Ensure that all the components in the Components array are registered | |
| void | RemoveControllingMatineeActor (AMatineeActor &InMatineeActor) |
| Removes a controlling matinee actor 更多... | |
| void | RemoveInstanceComponent (UActorComponent *Component) |
| Removes a component from the instance components array | |
| void | RemoveOwnedComponent (UActorComponent *Component) |
| Removes a component from the OwnedComponents array of the Actor. 更多... | |
| virtual void | RemoveTickPrerequisiteActor (AActor *PrerequisiteActor) |
| Remove tick dependency on PrerequisiteActor. | |
| virtual void | RemoveTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent) |
| Remove tick dependency on PrerequisiteComponent. | |
| virtual bool | Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None) override |
| Rename this object to a unique name, or change its outer. 更多... | |
| virtual bool | ReplicateSubobjects (class UActorChannel *Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags) |
| Method that allows an actor to replicate subobjects on its actor channel | |
| virtual void | ReregisterAllComponents () |
| Will reregister all components on this actor. 更多... | |
| virtual void | RerunConstructionScripts () |
| Rerun construction scripts, destroying all autogenerated components; will attempt to preserve the root component location. | |
| virtual void | Reset () |
| Reset actor to initial state - used when restarting level without reloading. | |
| void | ResetOwnedComponents () |
| Force the Actor to clear and rebuild its OwnedComponents array by evaluating all children (recursively) and locating components In general this should not need to be called directly, but can sometimes be necessary as part of undo/redo code paths. | |
| void | ResetPropertiesForConstruction () |
| Reset private properties to defaults, and all FRandomStream structs in this Actor, so they will start their sequence of random numbers again. | |
| virtual void | RewindForReplay () |
| Called on the actor before checkpoint data is applied during a replay. 更多... | |
| void | RouteEndPlay (const EEndPlayReason::Type EndPlayReason) |
| Non-virtual function to evaluate which portions of the EndPlay process should be dispatched for each actor | |
| virtual void | Serialize (FArchive &Ar) override |
| Handles reading, writing, and reference collecting using FArchive. 更多... | |
| void | SetActorEnableCollision (bool bNewActorEnableCollision) |
| Allows enabling/disabling collision for the whole actor | |
| virtual void | SetActorHiddenInGame (bool bNewHidden) |
| Sets the actor to be hidden in the game 更多... | |
| bool | SetActorLocation (const FVector &NewLocation, bool bSweep=false, FHitResult *OutSweepHitResult=nullptr, ETeleportType Teleport=ETeleportType::None) |
| Move the actor instantly to the specified location. 更多... | |
| bool | SetActorLocationAndRotation (FVector NewLocation, FRotator NewRotation, bool bSweep=false, FHitResult *OutSweepHitResult=nullptr, ETeleportType Teleport=ETeleportType::None) |
| Move the actor instantly to the specified location and rotation. 更多... | |
| void | SetActorRelativeScale3D (FVector NewRelativeScale) |
| Set the actor's RootComponent to the specified relative scale 3d 更多... | |
| bool | SetActorRotation (FRotator NewRotation, ETeleportType Teleport=ETeleportType::None) |
| Set the Actor's rotation instantly to the specified rotation. 更多... | |
| void | SetActorScale3D (FVector NewScale3D) |
| Set the Actor's world-space scale. | |
| void | SetActorTickEnabled (bool bEnabled) |
| Set this actor's tick functions to be enabled or disabled. 更多... | |
| void | SetActorTickInterval (float TickInterval) |
| Sets the tick interval of this actor's primary tick function. 更多... | |
| void | SetAutonomousProxy (const bool bInAutonomousProxy, const bool bAllowForcePropertyCompare=true) |
| Sets whether or not this Actor is an autonomous proxy, which is an actor on a network client that is controlled by a user on that client. | |
| void | SetCanBeDamaged (bool bInCanBeDamaged) |
| Sets the value of bCanBeDamaged without causing other side effects to this instance. | |
| void | SetHidden (const bool bInHidden) |
| Sets the value of bHidden without causing other side effects to this instance. 更多... | |
| void | SetInstigator (APawn *InInstigator) |
| Sets the value of Instigator without causing other side effects to this instance. | |
| virtual void | SetLifeSpan (float InLifespan) |
| Set the lifespan of this actor. 更多... | |
| void | SetLODParent (class UPrimitiveComponent *InLODParent, float InParentDrawDistance) |
| Set LOD Parent component for all of our components, normally associated with an ALODActor. 更多... | |
| void | SetNetDormancy (ENetDormancy NewDormancy) |
| Puts actor in dormant networking state | |
| void | SetNetDriverName (FName NewNetDriverName) |
| Set the name of the net driver associated with this actor. 更多... | |
| void | SetNetUpdateTime (float NewUpdateTime) |
| Updates NetUpdateTime to the new value for future net relevancy checks | |
| virtual void | SetOwner (AActor *NewOwner) |
| Set the owner of this Actor, used primarily for network replication. 更多... | |
| void | SetReplicatedMovement (const FRepMovement &InReplicatedMovement) |
| Sets the value of ReplicatedMovement without causing other side effects to this instance. | |
| virtual void | SetReplicateMovement (bool bInReplicateMovement) |
| Set whether this actor's movement replicates to network clients. 更多... | |
| void | SetReplicates (bool bInReplicates) |
| Set whether this actor replicates to network clients. 更多... | |
| void | SetReplicatingMovement (bool bInReplicateMovement) |
| Sets the value of bReplicateMovement without causing other side effects to this instance. | |
| void | SetRole (ENetRole InRole) |
| Sets the value of Role without causing other side effects to this instance. | |
| bool | SetRootComponent (USceneComponent *NewRootComponent) |
| Sets root component to be the specified component. 更多... | |
| void | SetTickableWhenPaused (bool bTickableWhenPaused) |
| Sets whether this actor can tick when paused. | |
| void | SetTickGroup (ETickingGroup NewTickGroup) |
| Sets the ticking group for this actor. 更多... | |
| virtual bool | ShouldTickIfViewportsOnly () const |
| If true, actor is ticked even if TickType==LEVELTICK_ViewportsOnly | |
| void | SwapRoles () |
| Calls this to swap the Role and RemoteRole. 更多... | |
| virtual float | TakeDamage (float DamageAmount, struct FDamageEvent const &DamageEvent, class AController *EventInstigator, AActor *DamageCauser) |
| Apply damage to this actor. 更多... | |
| virtual void | TearOff () |
| Networking - Server - TearOff this actor to stop replication to clients. 更多... | |
| virtual void | TeleportSucceeded (bool bIsATest) |
| Called from TeleportTo() when teleport succeeds | |
| virtual bool | TeleportTo (const FVector &DestLocation, const FRotator &DestRotation, bool bIsATest=false, bool bNoCheck=false) |
| Used for adding actors to levels or teleporting them to a new location. 更多... | |
| virtual void | Tick (float DeltaSeconds) |
| Function called every frame on this Actor. 更多... | |
| virtual void | TickActor (float DeltaTime, enum ELevelTick TickType, FActorTickFunction &ThisTickFunction) |
| Dispatches the once-per frame Tick() function for this actor 更多... | |
| virtual void | TornOff () |
| Networking - called on client when actor is torn off (bTearOff==true), meaning it's no longer replicated to clients. 更多... | |
| void | UninitializeComponents () |
| Iterate over components array and call UninitializeComponent, called when the actor is ending play | |
| virtual void | UnregisterAllComponents (bool bForReregister=false) |
| Unregister all currently registered components 更多... | |
| void | UpdateAllReplicatedComponents () |
| Completely synchronizes the replicated components array so that it contains exactly the number of replicated components currently owned | |
| void | UpdateComponentTransforms () |
| Update all components transforms | |
| void | UpdateOverlaps (bool bDoNotifies=true) |
| Queries world and updates overlap detection state for this actor. 更多... | |
| void | UpdateReplicatedComponent (UActorComponent *Component) |
| Called when the replicated state of a component changes to update the Actor's cached ReplicatedComponents array | |
| void | UserConstructionScript () |
| Construction script, the place to spawn components and do other setup. 更多... | |
| virtual bool | UseShortConnectTimeout () const |
| Used by the net connection to determine if a net owning actor should switch to using the shortened timeout value 更多... | |
| bool | WasRecentlyRendered (float Tolerance=0.2) const |
| Returns true if this actor has been rendered "recently", with a tolerance in seconds to define what "recent" means. 更多... | |
Public 成员函数 继承自 UObject | |
| void | AbortInsideMemberFunction () const |
| Abort with a member function call at the top of the callstack, helping to ensure that most platforms will stuff this object's memory into the resulting minidump. | |
| virtual bool | AreNativePropertiesIdenticalTo (UObject *Other) const |
| Returns whether native properties are identical to the one of the passed in component. 更多... | |
| virtual void | BeginDestroy () |
| Called before destroying the object. 更多... | |
| virtual void | BuildSubobjectMapping (UObject *OtherObject, TMap< UObject *, UObject * > &ObjectMapping) const |
| Given OtherObject (which will be the same type as 'this'), recursively find any matching sub-objects from 'this' that also exist within OtherObject, and add the mappings to ObjectMapping. 更多... | |
| void | CallAddReferencedObjects (FReferenceCollector &Collector) |
| Helper function to call AddReferencedObjects for this object's class. 更多... | |
| void | CallFunction (FFrame &Stack, RESULT_DECL, UFunction *Function) |
| Internal VM method for executing a function | |
| bool | CallFunctionByNameWithArguments (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor, bool bForceCallWithNonExec=false) |
| Handle calling a function by name when executed from the console or a command line | |
| virtual bool | CallRemoteFunction (UFunction *Function, void *Parms, struct FOutParmRec *OutParms, FFrame *Stack) |
| Call the actor's function remotely 更多... | |
| bool | CheckDefaultSubobjects (bool bForceCheck=false) const |
| Checks default sub-object assumptions. 更多... | |
| void | CollectDefaultSubobjects (TArray< UObject * > &OutDefaultSubobjects, bool bIncludeNestedSubobjects=false) const |
| Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer 更多... | |
| bool | ConditionalBeginDestroy () |
| Called before destroying the object. 更多... | |
| bool | ConditionalFinishDestroy () |
| Called when an object is actually destroyed, memory should never be accessed again | |
| void | ConditionalPostLoad () |
| PostLoad if needed. | |
| void | ConditionalPostLoadSubobjects (struct FObjectInstancingGraph *OuterInstanceGraph=NULL) |
| Instances subobjects and components for objects being loaded from disk, if necessary. 更多... | |
| DECLARE_FUNCTION (execBreakpoint) | |
| Breakpoint; only observed in the editor; executing it at any other time is a NOP | |
| DECLARE_FUNCTION (execInstrumentation) | |
| Instrumentation event for profiling; only observed in the builds with blueprint instrumentation | |
| DECLARE_FUNCTION (execPopExecutionFlow) | |
| Pops a code offset from the execution flow stack and starts execution there. 更多... | |
| DECLARE_FUNCTION (execPopExecutionFlowIfNot) | |
| Pops a code offset from the execution flow stack and starts execution there, if a condition is not true. 更多... | |
| DECLARE_FUNCTION (execPushExecutionFlow) | |
| Push a code offset onto the execution flow stack for future execution. 更多... | |
| DECLARE_FUNCTION (execReturnNothing) | |
| failsafe for functions that return a value - returns the zero value for a property and logs that control reached the end of a non-void function | |
| DECLARE_FUNCTION (execTracepoint) | |
| Tracepoint; only observed in the editor; executing it at any other time is a NOP | |
| DECLARE_FUNCTION (ProcessInternal) | |
| Internal function call processing. 更多... | |
| void | DestroyNonNativeProperties () |
| Destroy properties that won't be destroyed by the native destructor | |
| void | ExecuteUbergraph (int32 EntryPoint) |
| Execute the ubergraph from a specific entry point | |
| virtual void | ExportCustomProperties (FOutputDevice &Out, uint32 Indent) |
| Exports the property values for the specified object as text to the output device. 更多... | |
| UFunction * | FindFunction (FName InName) const |
| Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName() | |
| UFunction * | FindFunctionChecked (FName InName) const |
| Version of FindFunction() that will assert if the function was not found | |
| virtual void | FinishDestroy () |
| Called to finish destroying the object. 更多... | |
| UObject * | GetArchetype () const |
| Return the template this object is based on. 更多... | |
| void | GetArchetypeInstances (TArray< UObject * > &Instances) |
| Builds a list of objects which have this object in their archetype chain. 更多... | |
| virtual void | GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const |
| Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects 更多... | |
| virtual const TCHAR * | GetConfigOverridePlatform () const |
| Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them) | |
| FString | GetDefaultConfigFilename () const |
| Get the default config filename for the specified UObject | |
| virtual FString | GetDesc () |
| Return a one line description of an object for viewing in the thumbnail view of the generic browser | |
| FString | GetDetailedInfo () const |
| This will return detail info about this specific object. 更多... | |
| virtual FName | GetExporterName (void) |
| Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension | |
| virtual int32 | GetFunctionCallspace (UFunction *Function, FFrame *Stack) |
| Return the space this function should be called. 更多... | |
| FString | GetGlobalUserConfigFilename () const |
| Get the global user override config filename for the specified UObject | |
| virtual void | GetLifetimeReplicatedProps (TArray< class FLifetimeProperty > &OutLifetimeProps) const |
| Returns properties that are replicated for the lifetime of the actor channel | |
| virtual bool | GetNativePropertyValues (TMap< FString, FString > &out_PropertyValues, uint32 ExportFlags=0) const |
| Callback for retrieving a textual representation of natively serialized properties. 更多... | |
| virtual int32 | GetNetPushIdDynamic () const |
| Should only ever be used by internal systems. | |
| virtual void | GetPreloadDependencies (TArray< UObject * > &OutDeps) |
| Called during cooking. 更多... | |
| virtual void | GetPrestreamPackages (TArray< UObject * > &OutPrestream) |
| Called during cooking. 更多... | |
| virtual FPrimaryAssetId | GetPrimaryAssetId () const |
| Returns an Type:Name pair representing the PrimaryAssetId for this object. 更多... | |
| FString | GetProjectUserConfigFilename () const |
| Get the project user override config filename for the specified UObject | |
| SIZE_T | GetResourceSizeBytes (EResourceSizeMode::Type Mode) |
| Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the simple version which just returns the total number of bytes used by this object. 更多... | |
| virtual void | GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize) |
| Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多... | |
| virtual FRestoreForUObjectOverwrite * | GetRestoreForUObjectOverwrite () |
| Save information for StaticAllocateObject in the case of overwriting an existing object. 更多... | |
| virtual UScriptStruct * | GetSparseClassDataStruct () const |
| Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class. | |
| virtual void | GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList) |
| Returns a list of sub-objects that have stable names for networking | |
| template<class T > | |
| FORCEINLINE bool | Implements () const |
| Returns true if this object implements the interface T, false otherwise. | |
| template<class T > | |
| bool | Implements () const |
| Returns true if this object implements the interface T, false otherwise. | |
| virtual void | ImportCustomProperties (const TCHAR *SourceText, FFeedbackContext *Warn) |
| Exports the property values for the specified object as text to the output device. 更多... | |
| void | InstanceSubobjectTemplates (struct FObjectInstancingGraph *InstanceGraph=NULL) |
| Wrapper for calling UClass::InstanceSubobjectTemplates() for this object. | |
| virtual bool | IsAsset () const |
| Returns true if this object is considered an asset. | |
| bool | IsBasedOnArchetype (const UObject *const SomeObject) const |
| Determine if this object has SomeObject in its archetype chain. | |
| virtual bool | IsDestructionThreadSafe () const |
| Called during garbage collection to determine if an object can have its destructor called on a worker thread. 更多... | |
| virtual bool | IsEditorOnly () const |
| Called during saving to determine if the object is forced to be editor only or not 更多... | |
| virtual bool | IsFullNameStableForNetworking () const |
| IsFullNameStableForNetworking means an object can be referred to its full path name over the network | |
| bool | IsInBlueprint () const |
| Returns whether this object is contained in or part of a blueprint object | |
| virtual bool | IsLocalizedResource () const |
| Returns true if this object is considered a localized resource. | |
| virtual bool | IsNameStableForNetworking () const |
| IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network | |
| virtual bool | IsPostLoadThreadSafe () const |
| Called during async load to determine if PostLoad can be called on the loading thread. 更多... | |
| virtual bool | IsReadyForAsyncPostLoad () const |
| Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). 更多... | |
| virtual bool | IsReadyForFinishDestroy () |
| Called to check if the object is ready for FinishDestroy. 更多... | |
| virtual bool | IsSafeForRootSet () const |
| Returns true if this object is safe to add to the root set. | |
| bool | IsSelected () const |
| Test the selection state of a UObject 更多... | |
| virtual bool | IsSupportedForNetworking () const |
| IsSupportedForNetworking means an object can be referenced over the network | |
| void | LoadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL) |
| Imports property values from an .ini file. 更多... | |
| virtual void | MarkAsEditorOnlySubobject () |
| Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds | |
| FORCEINLINE bool | Modify (bool bAlwaysMarkDirty=true) |
| Note that the object will be modified. 更多... | |
| virtual bool | NeedsLoadForClient () const |
| Called during saving to determine the load flags to save with the object. 更多... | |
| virtual bool | NeedsLoadForEditorGame () const |
| Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多... | |
| virtual bool | NeedsLoadForServer () const |
| Called during saving to determine the load flags to save with the object. 更多... | |
| virtual bool | NeedsLoadForTargetPlatform (const class ITargetPlatform *TargetPlatform) const |
| Called during saving to determine the load flags to save with the object. 更多... | |
| void | OutputReferencers (FOutputDevice &Ar, FReferencerInformationList *Referencers=NULL) |
| Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. 更多... | |
| virtual void | OverridePerObjectConfigSection (FString &SectionName) |
| Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. 更多... | |
| void | ParseParms (const TCHAR *Parms) |
| Import an object from a file. | |
| virtual void | PostCDOContruct () |
| Called after the C++ constructor has run on the CDO for a class. 更多... | |
| virtual void | PostDuplicate (bool bDuplicateForPIE) |
| Called after duplication & serialization and before PostLoad. 更多... | |
| virtual void | PostEditImport () |
| Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization | |
| virtual void | PostInitProperties () |
| Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多... | |
| virtual void | PostInterpChange (FProperty *PropertyThatChanged) |
| This is called when property is modified by InterpPropertyTracks 更多... | |
| virtual void | PostLoad () |
| Do any object-specific cleanup required immediately after loading an object. 更多... | |
| virtual void | PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph) |
| Instances components for objects being loaded from disk, if necessary. 更多... | |
| virtual void | PostNetReceive () |
| Called right after receiving a bunch | |
| virtual void | PostReloadConfig (class FProperty *PropertyThatWasLoaded) |
| Called from ReloadConfig after the object has reloaded its configuration data. | |
| virtual void | PostRename (UObject *OldOuter, const FName OldName) |
| Called at the end of Rename(), but only if the rename was actually carried out | |
| virtual void | PostRepNotifies () |
| Called right after calling all OnRep notifies (called even when there are no notifies) | |
| virtual void | PostSaveRoot (bool bCleanupIsRequired) |
| Called from within SavePackage on the passed in base/root object. 更多... | |
| virtual void | PreDestroyFromReplication () |
| Called right before being marked for destruction due to network replication | |
| virtual void | PreDuplicate (FObjectDuplicationParameters &DupParams) |
| Called before duplication. 更多... | |
| virtual void | PreNetReceive () |
| Called right before receiving a bunch | |
| virtual void | PreSave (const class ITargetPlatform *TargetPlatform) |
| Presave function. 更多... | |
| virtual bool | PreSaveRoot (const TCHAR *Filename) |
| Called from within SavePackage on the passed in base/root object. 更多... | |
| virtual bool | ProcessConsoleExec (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor) |
| This function handles a console exec sent to the object; it is virtual so 'nexus' objects like a player controller can reroute the command to several different objects. | |
| virtual void | ProcessEvent (UFunction *Function, void *Parms) |
| Called by VM to execute a UFunction with a filled in UStruct of parameters | |
| virtual UClass * | RegenerateClass (UClass *ClassToRegenerate, UObject *PreviousCDO) |
| Called on the target when a class is loaded with ClassGeneratedBy is loaded. 更多... | |
| void | ReinitializeProperties (UObject *SourceObject=NULL, struct FObjectInstancingGraph *InstanceGraph=NULL) |
| Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. 更多... | |
| void | ReloadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL) |
| Wrapper method for LoadConfig that is used when reloading the config data for objects at runtime which have already loaded their config data at least once. 更多... | |
| virtual bool | Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None) |
| Rename this object to a unique name, or change its outer. 更多... | |
| void | RetrieveReferencers (TArray< FReferencerInformation > *OutInternalReferencers, TArray< FReferencerInformation > *OutExternalReferencers) |
| Called by OutputReferencers() to get the internal list of referencers to write | |
| void | SaveConfig (uint64 Flags=CPF_Config, const TCHAR *Filename=NULL, FConfigCacheIni *Config=GConfig, bool bAllowCopyToDefaultObject=true) |
| Save configuration out to ini files 更多... | |
| virtual void | Serialize (FArchive &Ar) |
| Handles reading, writing, and reference collecting using FArchive. 更多... | |
| void | SerializeScriptProperties (FArchive &Ar) const |
| Serializes the script property data located at Data. 更多... | |
| void | SerializeScriptProperties (FStructuredArchive::FSlot Slot) const |
| Serializes the script property data located at Data. 更多... | |
| void | SetLinker (FLinkerLoad *LinkerLoad, int32 LinkerIndex, bool bShouldDetachExisting=true) |
| Changes the linker and linker index to the passed in one. 更多... | |
| virtual void | ShutdownAfterError () |
| After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources. | |
| void | SkipFunction (FFrame &Stack, RESULT_DECL, UFunction *Function) |
| advances Stack's code past the parameters to the given Function and if the function has a return value, copies the zero value for that property to the memory for the return value 更多... | |
| virtual void | TagSubobjects (EObjectFlags NewFlags) |
| Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多... | |
| void | UpdateDefaultConfigFile (const FString &SpecificFileLocation="") |
| Saves just the section(s) for this class into the default ini file for the class (with just the changes from base) | |
| void | UpdateGlobalUserConfigFile () |
| Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base) | |
| void | UpdateProjectUserConfigFile () |
| Saves just the section(s) for this class into the project user ini file for the class (with just the changes from base) | |
| void | UpdateSinglePropertyInConfigFile (const FProperty *InProperty, const FString &InConfigIniName) |
| Saves just the property into the global user ini file for the class (with just the changes from base) | |
Public 成员函数 继承自 UObjectBaseUtility | |
| void | AddToCluster (UObjectBaseUtility *ClusterRootOrObjectFromCluster, bool bAddAsMutableObject=false) |
| Adds this objects to a GC cluster that already exists 更多... | |
| FORCEINLINE void | AddToRoot () |
| Add an object to the root set. 更多... | |
| FORCEINLINE void | AppendName (FString &ResultString) const |
| Optimized version of GetName that appends to an existing string | |
| FORCEINLINE bool | AtomicallyClearInternalFlags (EInternalObjectFlags FlagsToClear) const |
| Atomically clears passed in internal flags. 更多... | |
| virtual bool | CanBeClusterRoot () const |
| Called after load to determine if the object can be a cluster root 更多... | |
| virtual bool | CanBeInCluster () const |
| Called during cluster construction if the object can be added to a cluster 更多... | |
| FORCEINLINE void | ClearFlags (EObjectFlags NewFlags) |
| Clears subset of flags for a specific object | |
| FORCEINLINE void | ClearInternalFlags (EInternalObjectFlags FlagsToClear) const |
| Clears passed in internal flags. 更多... | |
| FORCEINLINE void | ClearPendingKill () |
| Unmarks this object as PendingKill. | |
| virtual void | CreateCluster () |
| Called after PostLoad to create UObject cluster | |
| void | DetachExternalPackage () |
| Utility function to temporarily detach the object external package, if any GetPackage will report the outer's package once detached | |
| const UClass * | FindNearestCommonBaseClass (const UClass *TestClass) const |
| Finds the most-derived class which is a parent of both TestClass and this object's class. 更多... | |
| FORCEINLINE EObjectMark | GetAllMarks () const |
| Returns all of the object marks on a specific object 更多... | |
| FString | GetFullGroupName (bool bStartWithOuter) const |
| Walks up the chain of packages until it reaches the top level, which it ignores. 更多... | |
| void | GetFullName (const UObject *StopOuter, FString &ResultString, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const |
| Version of GetFullName() that eliminates unnecessary copies. | |
| FString | GetFullName (const UObject *StopOuter=NULL, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const |
| Returns the fully qualified pathname for this object as well as the name of the class, in the format: 'ClassName Outermost[.Outer].Name'. 更多... | |
| void * | GetInterfaceAddress (UClass *InterfaceClass) |
| Returns a pointer to this object safely converted to a pointer of the specified interface class. 更多... | |
| FORCEINLINE EInternalObjectFlags | GetInternalFlags () const |
| Gets internal flags. 更多... | |
| class FLinkerLoad * | GetLinker () const |
| Returns the linker for this object. 更多... | |
| int32 | GetLinkerCustomVersion (FGuid CustomVersionKey) const |
| Returns the custom version of the linker for this object corresponding to the given custom version key. 更多... | |
| int32 | GetLinkerIndex () const |
| Returns this object's LinkerIndex. 更多... | |
| int32 | GetLinkerLicenseeUE4Version () const |
| Returns the licensee version of the linker for this object. 更多... | |
| int32 | GetLinkerUE4Version () const |
| Returns the UE4 version of the linker for this object. 更多... | |
| FORCEINLINE EObjectFlags | GetMaskedFlags (EObjectFlags Mask=RF_AllFlags) const |
| Returns object flags that are both in the mask and set on the object. 更多... | |
| FORCEINLINE FString | GetName () const |
| Returns the name of this object (with no path information) 更多... | |
| FORCEINLINE void | GetName (FString &ResultString) const |
| Optimized version of GetName that overwrites an existing string | |
| void * | GetNativeInterfaceAddress (UClass *InterfaceClass) |
| Returns a pointer to the I* native interface object that this object implements. 更多... | |
| const void * | GetNativeInterfaceAddress (UClass *InterfaceClass) const |
| Returns a pointer to the const I* native interface object that this object implements. 更多... | |
| UPackage * | GetOutermost () const |
| Legacy function, has the same behavior as GetPackage use GetPackage instead. 更多... | |
| UObject * | GetOutermostObject () const |
| Walks up the list of outers until it finds the top-level one that isn't a package. 更多... | |
| UPackage * | GetPackage () const |
| Walks up the list of outers until it finds a package directly associated with the object. 更多... | |
| void | GetPathName (const UObject *StopOuter, FString &ResultString) const |
| Versions of GetPathName() that eliminates unnecessary copies and allocations. | |
| FString | GetPathName (const UObject *StopOuter=NULL) const |
| Returns the fully qualified pathname for this object, in the format: 'Outermost[.Outer].Name' 更多... | |
| FORCEINLINE TStatId | GetStatID (bool bForDeferredUse=false) const |
| Returns the stat ID of the object, used for profiling. 更多... | |
| template<typename T > | |
| T * | GetTypedOuter () const |
| Traverses the outer chain searching for the next object of a certain type. 更多... | |
| UObject * | GetTypedOuter (UClass *Target) const |
| Traverses the outer chain searching for the next object of a certain type. 更多... | |
| FORCEINLINE bool | HasAllFlags (EObjectFlags FlagsToCheck) const |
| Used to safely check whether all of the passed in flags are set. 更多... | |
| FORCEINLINE bool | HasAllMarks (EObjectMark Marks) const |
| Tests an object for having ALL of a set of marks 更多... | |
| FORCEINLINE bool | HasAnyFlags (EObjectFlags FlagsToCheck) const |
| Used to safely check whether any of the passed in flags are set. 更多... | |
| FORCEINLINE bool | HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const |
| Used to safely check whether any of the passed in internal flags are set. 更多... | |
| FORCEINLINE bool | HasAnyMarks (EObjectMark Marks) const |
| Tests an object for having ANY of a set of marks 更多... | |
| template<class T > | |
| bool | IsA () const |
| Returns true if this object is of the template type. | |
| template<typename OtherClassType > | |
| FORCEINLINE bool | IsA (OtherClassType SomeBase) const |
| Returns true if this object is of the specified type. | |
| bool | IsDefaultSubobject () const |
| Returns whether this component was instanced from a component/subobject template, or if it is a component/subobject template. 更多... | |
| bool | IsIn (const UObject *SomeOuter) const |
Return the dispatch to IsInOuter or IsInPackage depending on SomeOuter's class. 更多... | |
| bool | IsIn (const UPackage *SomePackage) const |
| Overload to determine if an object is in the specified package which can now be different than its outer chain. 更多... | |
| bool | IsInA (const UClass *SomeBaseClass) const |
| Find out if this object is inside (has an outer) that is of the specified class 更多... | |
| bool | IsInOuter (const UObject *SomeOuter) const |
| Returns true if the object is contained in the specified outer. | |
| bool | IsInPackage (const UPackage *SomePackage) const |
| Returns true if the object is contained in the specified package. | |
| FORCEINLINE bool | IsNative () const |
| Checks if the object is native. | |
| FORCEINLINE bool | IsPendingKill () const |
| Checks the PendingKill flag to see if it is dead but memory still valid | |
| FORCEINLINE bool | IsPendingKillOrUnreachable () const |
| Checks if the object is pending kill or unreachable. | |
| FORCEINLINE bool | IsRooted () const |
| Returns true if this object is explicitly rooted 更多... | |
| bool | IsTemplate (EObjectFlags TemplateTypes=RF_ArchetypeObject|RF_ClassDefaultObject) const |
| Determines whether this object is a template object 更多... | |
| FORCEINLINE bool | IsUnreachable () const |
| Checks if the object is unreachable. | |
| FORCEINLINE void | Mark (EObjectMark Marks) const |
| Adds marks to an object 更多... | |
| bool | MarkPackageDirty () const |
| Finds the outermost package and marks it dirty. 更多... | |
| FORCEINLINE void | MarkPendingKill () |
| Marks this object as RF_PendingKill. | |
| virtual void | OnClusterMarkedAsPendingKill () |
| Called during Garbage Collection to perform additional cleanup when the cluster is about to be destroyed due to PendingKill flag being set on it. | |
| FORCEINLINE bool | operator< (const UObjectBaseUtility &Other) const |
| Overloaded < operator. 更多... | |
| void | ReattachExternalPackage () |
| Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call | |
| FORCEINLINE void | RemoveFromRoot () |
| Remove an object from the root set. | |
| bool | RootPackageHasAnyFlags (uint32 CheckFlagMask) const |
| Checks whether this object's top-most package has any of the specified flags 更多... | |
| FORCEINLINE void | SetFlags (EObjectFlags NewFlags) |
| Modifies object flags for a specific object | |
| FORCEINLINE void | SetInternalFlags (EInternalObjectFlags FlagsToSet) const |
| Clears passed in internal flags. 更多... | |
| FORCEINLINE bool | ThisThreadAtomicallyClearedRFUnreachable () |
| Atomically clear the unreachable flag 更多... | |
| FORCEINLINE void | UnMark (EObjectMark Marks) const |
| Removes marks from and object 更多... | |
Public 成员函数 继承自 UObjectBase | |
| FORCENOINLINE void | AtomicallyClearFlags (EObjectFlags FlagsToClear) |
| Atomically clears the specified flags. 更多... | |
| FORCENOINLINE void | AtomicallySetFlags (EObjectFlags FlagsToAdd) |
| Atomically adds the specified flags. 更多... | |
| FORCEINLINE UClass * | GetClass () const |
| Returns the UClass that defines the fields of this object | |
| UPackage * | GetExternalPackage () const |
| Returns the external UPackage associated with this object, if any | |
| UPackage * | GetExternalPackageInternal () const |
| Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting. | |
| FORCEINLINE EObjectFlags | GetFlags () const |
| Retrieve the object flags directly 更多... | |
| FORCEINLINE FName | GetFName () const |
| Returns the logical name of this object | |
| FORCEINLINE UObject * | GetOuter () const |
| Returns the UObject this object resides in | |
| FORCEINLINE uint32 | GetUniqueID () const |
| Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多... | |
| bool | IsValidLowLevel () const |
| Checks to see if the object appears to be valid 更多... | |
| bool | IsValidLowLevelFast (bool bRecursive=true) const |
| Faster version of IsValidLowLevel. 更多... | |
| void | SetExternalPackage (UPackage *InPackage) |
| Associate an external package directly to this object. | |
| UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName) | |
| Constructor used by StaticAllocateObject 更多... | |
| virtual | ~UObjectBase () |
| Final destructor, removes the object from the object array, and indirectly, from any annotations | |
Public 属性 | |
| uint32 | bClientResimulateRootMotion:1 |
| If server disagrees with root motion track position, client has to resimulate root motion from last AckedMove. | |
| uint32 | bClientResimulateRootMotionSources:1 |
| If server disagrees with root motion state, client has to resimulate root motion from last AckedMove. | |
| uint32 | bClientUpdating:1 |
| When true, applying updates to network client (replaying saved moves for a locally controlled character) | |
| uint32 | bClientWasFalling:1 |
| True if Pawn was initially falling when started to replay network moves. | |
| uint32 | bIsCrouched:1 |
| Set by character movement to specify that this Character is currently crouched. | |
| uint32 | bPressedJump:1 |
| When true, player wants to jump | |
| uint32 | bProxyIsJumpForceApplied: 1 |
| Set to indicate that this Character is currently under the force of a jump (if JumpMaxHoldTime is non-zero). 更多... | |
| uint32 | bServerMoveIgnoreRootMotion:1 |
| Disable root motion on the server. 更多... | |
| uint32 | bSimGravityDisabled:1 |
| Disable simulated gravity (set when character encroaches geometry on client, to keep him from falling through floors) | |
| uint32 | bWasJumping: 1 |
| Tracks whether or not the character was already jumping last frame. | |
| FRootMotionMovementParams | ClientRootMotionParams |
| For LocallyControlled Autonomous clients. 更多... | |
| float | CrouchedEyeHeight |
| Default crouched eye height | |
| int32 | JumpCurrentCount |
| Tracks the current number of jumps performed. 更多... | |
| int32 | JumpCurrentCountPreJump |
| Represents the current number of jumps performed before CheckJumpInput modifies JumpCurrentCount. 更多... | |
| float | JumpForceTimeRemaining |
| Amount of jump force time remaining, if JumpMaxHoldTime > 0. | |
| float | JumpKeyHoldTime |
| Jump key Held Time. 更多... | |
| int32 | JumpMaxCount |
| The max number of jumps the character can perform. 更多... | |
| float | JumpMaxHoldTime |
| The max time the jump key can be held. 更多... | |
| FLandedSignature | LandedDelegate |
| Called upon landing when falling, to perform actions based on the Hit result. 更多... | |
| FMovementModeChangedSignature | MovementModeChangedDelegate |
| Multicast delegate for MovementMode changing. | |
| uint32 | NumActorOverlapEventsCounter |
| Incremented every time there is an Actor overlap event (start or stop) on this actor. | |
| FCharacterMovementUpdatedSignature | OnCharacterMovementUpdated |
| Event triggered at the end of a CharacterMovementComponent movement update. 更多... | |
| FCharacterReachedApexSignature | OnReachedJumpApex |
| Broadcast when Character's jump reaches its apex. 更多... | |
| float | ProxyJumpForceStartedTime |
| Track last time a jump force started for a proxy. | |
| struct FRepRootMotionMontage | RepRootMotion |
| Replicated Root Motion montage | |
| TArray< FSimulatedRootMotionReplicatedMove > | RootMotionRepMoves |
| Array of previously received root motion moves from the server. | |
| FRootMotionSourceGroup | SavedRootMotion |
| For LocallyControlled Autonomous clients. 更多... | |
Public 属性 继承自 APawn | |
| TSubclassOf< AController > | AIControllerClass |
| Default class to use when pawn is controlled by AI. | |
| float | AllowedYawError |
| Max difference between pawn's Rotation.Yaw and GetDesiredRotation().Yaw for pawn to be considered as having reached its desired rotation | |
| EAutoPossessAI | AutoPossessAI |
| Determines when the Pawn creates and is possessed by an AI Controller (on level start, when spawned, etc). 更多... | |
| TEnumAsByte< EAutoReceiveInput::Type > | AutoPossessPlayer |
| Determines which PlayerController, if any, should automatically possess the pawn when the level starts or when the pawn is spawned. 更多... | |
| float | BaseEyeHeight |
| Base eye height above collision center. | |
| uint32 | bCanAffectNavigationGeneration: 1 |
| If set to false (default) given pawn instance will never affect navigation generation. 更多... | |
| float | BlendedReplayViewPitch |
| Playback of replays writes blended pitch to this, rather than the RemoteViewPitch. 更多... | |
| uint32 | bUseControllerRotationPitch:1 |
| If true, this Pawn's pitch will be updated to match the Controller's ControlRotation pitch, if controlled by a PlayerController. | |
| uint32 | bUseControllerRotationRoll:1 |
| If true, this Pawn's roll will be updated to match the Controller's ControlRotation roll, if controlled by a PlayerController. | |
| uint32 | bUseControllerRotationYaw:1 |
| If true, this Pawn's yaw will be updated to match the Controller's ControlRotation yaw, if controlled by a PlayerController. | |
| AController * | Controller |
| Controller currently possessing this Actor | |
| AController * | LastHitBy |
| Controller of the last Actor that caused us damage. | |
| uint8 | RemoteViewPitch |
| Replicated so we can see where remote clients are looking. | |
Public 属性 继承自 AActor | |
| TEnumAsByte< EAutoReceiveInput::Type > | AutoReceiveInput |
| Automatically registers this actor to receive input from a player. | |
| uint8 | bActorIsBeingConstructed: 1 |
| Set while actor is being constructed. 更多... | |
| uint8 | bActorSeamlessTraveled:1 |
| Indicates the actor was pulled through a seamless travel. 更多... | |
| uint8 | bAllowTickBeforeBeginPlay:1 |
| Whether we allow this Actor to tick before it receives the BeginPlay event. 更多... | |
| uint8 | bAlwaysRelevant:1 |
| Always relevant for network (overrides bOnlyRelevantToOwner). | |
| uint8 | bBlockInput:1 |
| If true, all input on the stack below this actor will not be considered | |
| uint8 | bCollideWhenPlacing:1 |
| This actor collides with the world when placing in the editor, even if RootComponent collision is disabled. 更多... | |
| uint8 | bEnableAutoLODGeneration:1 |
| If true, and if World setting has bEnableHierarchicalLOD equal to true, then it will generate LODActor from groups of clustered Actor | |
| uint8 | bExchangedRoles:1 |
| Whether we have already exchanged Role/RemoteRole on the client, as when removing then re-adding a streaming level. 更多... | |
| uint8 | bFindCameraComponentWhenViewTarget:1 |
| If true, this actor should search for an owned camera component to view through when used as a view target. | |
| uint8 | bGenerateOverlapEventsDuringLevelStreaming:1 |
| If true, this actor will generate overlap Begin/End events when spawned as part of level streaming, which includes initial level load. 更多... | |
| uint8 | bIgnoresOriginShifting:1 |
| Whether this actor should not be affected by world origin shifting. | |
| uint8 | bIsEditorOnlyActor:1 |
| Whether this actor is editor-only. 更多... | |
| TArray< UActorComponent * > | BlueprintCreatedComponents |
| Array of ActorComponents that are created by blueprints and serialized per-instance. | |
| uint8 | bNetLoadOnClient:1 |
| This actor will be loaded on network clients during map load | |
| uint8 | bNetStartup:1 |
| If true, this actor was loaded directly from the map, and for networking purposes can be addressed by its full path name | |
| uint8 | bNetTemporary:1 |
| If true, when the actor is spawned it will be sent to the client but receive no further replication updates from the server afterwards. | |
| uint8 | bNetUseOwnerRelevancy:1 |
| If actor has valid Owner, call Owner's IsNetRelevantFor and GetNetPriority | |
| uint8 | bOnlyRelevantToOwner:1 |
| If true, this actor is only relevant to its owner. 更多... | |
| uint8 | bRelevantForLevelBounds:1 |
| If true, this actor's component's bounds will be included in the level's bounding box unless the Actor's class has overridden IsLevelBoundsRelevant | |
| uint8 | bRelevantForNetworkReplays:1 |
| If true, this actor will be replicated to network replays (default is true) | |
| uint8 | bReplayRewindable:1 |
| If true, this actor will only be destroyed during scrubbing if the replay is set to a time before the actor existed. 更多... | |
| TArray< AActor * > | Children |
| Array of all Actors whose Owner is this actor, these are not necessarily spawned by UChildActorComponent | |
| float | CreationTime |
| The time this actor was created, relative to World->GetTimeSeconds(). 更多... | |
| float | CustomTimeDilation |
| Allow each actor to run at a different time speed. 更多... | |
| FRenderCommandFence | DetachFence |
| A fence to track when the primitive is detached from the scene in the rendering thread. | |
| float | InitialLifeSpan |
| How long this Actor lives before dying, 0=forever. 更多... | |
| class UInputComponent * | InputComponent |
| Component that handles input for this actor, if input is enabled. | |
| int32 | InputPriority |
| The priority of this input component when pushed in to the stack. | |
| TArray< FName > | Layers |
| Layers the actor belongs to. 更多... | |
| float | MinNetUpdateFrequency |
| Used to determine what rate to throttle down to when replicated properties are changing infrequently | |
| float | NetCullDistanceSquared |
| Square of the max distance from the client's viewpoint that this actor is relevant and will be replicated. | |
| TEnumAsByte< enum ENetDormancy > | NetDormancy |
| Dormancy setting for actor to take itself off of the replication list without being destroyed on clients. | |
| float | NetPriority |
| Priority for this actor when checking for replication in a low bandwidth or saturated situation, higher priority means it is more likely to replicate | |
| int32 | NetTag |
| Internal - used by UNetDriver | |
| float | NetUpdateFrequency |
| How often (per second) this actor will be considered for replication, used to determine NetUpdateTime | |
| FActorBeginOverlapSignature | OnActorBeginOverlap |
| Called when another actor begins to overlap this actor, for example a player walking into a trigger. 更多... | |
| FActorEndOverlapSignature | OnActorEndOverlap |
| Called when another actor stops overlapping this actor. 更多... | |
| FActorHitSignature | OnActorHit |
| Called when this Actor hits (or is hit by) something solid. 更多... | |
| FActorBeginCursorOverSignature | OnBeginCursorOver |
| Called when the mouse cursor is moved over this actor if mouse over events are enabled in the player controller. | |
| FActorOnClickedSignature | OnClicked |
| Called when the left mouse button is clicked while the mouse is over this actor and click events are enabled in the player controller. | |
| FActorDestroyedSignature | OnDestroyed |
| Event triggered when the actor has been explicitly destroyed. | |
| FActorEndCursorOverSignature | OnEndCursorOver |
| Called when the mouse cursor is moved off this actor if mouse over events are enabled in the player controller. | |
| FActorEndPlaySignature | OnEndPlay |
| Event triggered when the actor is being deleted or removed from a level. | |
| FActorOnInputTouchBeginSignature | OnInputTouchBegin |
| Called when a touch input is received over this actor when touch events are enabled in the player controller. | |
| FActorOnInputTouchEndSignature | OnInputTouchEnd |
| Called when a touch input is received over this component when touch events are enabled in the player controller. | |
| FActorBeginTouchOverSignature | OnInputTouchEnter |
| Called when a finger is moved over this actor when touch over events are enabled in the player controller. | |
| FActorEndTouchOverSignature | OnInputTouchLeave |
| Called when a finger is moved off this actor when touch over events are enabled in the player controller. | |
| FActorOnReleasedSignature | OnReleased |
| Called when the left mouse button is released while the mouse is over this actor and click events are enabled in the player controller. | |
| FTakeAnyDamageSignature | OnTakeAnyDamage |
| Called when the actor is damaged in any way. | |
| FTakePointDamageSignature | OnTakePointDamage |
| Called when the actor is damaged by point damage. | |
| FTakeRadialDamageSignature | OnTakeRadialDamage |
| Called when the actor is damaged by radial damage. | |
| struct FActorTickFunction | PrimaryActorTick |
| Primary Actor tick function, which calls TickActor(). 更多... | |
| ESpawnActorCollisionHandlingMethod | SpawnCollisionHandlingMethod |
| Controls how to handle spawning this actor in a situation where it's colliding with something else. 更多... | |
| TArray< FName > | Tags |
| Array of tags that can be used for grouping and categorizing. | |
静态 Public 属性 | |
| static FName | CapsuleComponentName |
| Name of the CapsuleComponent. | |
| static FName | CharacterMovementComponentName |
| Name of the CharacterMovement component. 更多... | |
| static FName | MeshComponentName |
| Name of the MeshComponent. 更多... | |
静态 Public 属性 继承自 AActor | |
| static FOnProcessEvent | ProcessEventDelegate |
| Delegate for globally hooking ProccessEvent calls - used by a non-public testing plugin | |
Protected 成员函数 | |
| virtual void | BaseChange () |
| Event called after actor's base changes (if SetBase was requested to notify us with bNotifyPawn). | |
| bool | CanJumpInternal () const |
| Customizable event to check if the character can jump in the current state. 更多... | |
Protected 成员函数 继承自 APawn | |
| virtual UInputComponent * | CreatePlayerInputComponent () |
| Creates an InputComponent that can be used for custom input bindings. 更多... | |
| virtual void | DestroyPlayerInputComponent () |
| Destroys the player input component and removes any references to it. | |
| virtual AController * | GetDamageInstigator (AController *InstigatedBy, const UDamageType &DamageType) const |
| Get the controller instigating the damage. 更多... | |
| virtual void | SetupPlayerInputComponent (UInputComponent *PlayerInputComponent) |
| Allows a Pawn to set up custom input bindings. 更多... | |
Protected 成员函数 继承自 AActor | |
| virtual void | BeginPlay () |
| Overridable native event for when play begins for this actor. | |
| bool | CheckActorComponents () const |
| Checks components for validity, implemented in AActor | |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) |
| Overridable function called whenever this actor is being removed from a level | |
| bool | IsWithinNetRelevancyDistance (const FVector &SrcLocation) const |
| Determines whether or not the distance between the given SrcLocation and the Actor's location is within the net relevancy distance. 更多... | |
| virtual void | OnRep_Owner () |
| Called when owner changes, does nothing by default but can be overridden | |
| void | PostCreateBlueprintComponent (UActorComponent *NewActorComp) |
| Called after instancing a new Blueprint Component from either a template or cooked data. | |
| void | ProcessUserConstructionScript () |
| Runs UserConstructionScript, delays component registration until it's complete. | |
| void | ReceiveBeginPlay () |
| Event when play begins for this actor. | |
| void | ReceiveEndPlay (EEndPlayReason::Type EndPlayReason) |
| Event to notify blueprints this actor is being deleted or removed from a level. | |
| virtual void | RegisterActorTickFunctions (bool bRegister) |
| Virtual call chain to register all tick functions for the actor class hierarchy 更多... | |
| void | SetRemoteRoleForBackwardsCompat (const ENetRole InRemoteRole) |
| This function should only be used in the constructor of classes that need to set the RemoteRole for backwards compatibility purposes | |
| void | SyncReplicatedPhysicsSimulation () |
| Sync IsSimulatingPhysics() with ReplicatedMovement.bRepPhysics | |
Protected 成员函数 继承自 UObject | |
| bool | CanCheckDefaultSubObjects (bool bForceCheck, bool &bResult) const |
| Checks it's ok to perform subobjects check at this time. | |
| virtual bool | CheckDefaultSubobjectsInternal () const |
| Checks default sub-object assumptions. 更多... | |
| virtual FString | GetDetailedInfoInternal () const |
| This function actually does the work for the GetDetailedInfo() and is virtual. 更多... | |
Protected 成员函数 继承自 UObjectBase | |
| virtual void | DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *Name) |
| Convert a boot-strap registered class into a real one, add to uobject array, etc 更多... | |
| void | LowLevelRename (FName NewName, UObject *NewOuter=NULL) |
| Just change the FName and Outer and rehash into name hash tables. 更多... | |
| void | Register (const TCHAR *PackageName, const TCHAR *Name) |
| Enqueue the registration for this object. | |
| virtual void | RegisterDependencies () |
| Force any base classes to be registered first | |
| FORCEINLINE void | SetFlagsTo (EObjectFlags NewFlags) |
| Set the object flags directly 更多... | |
| UObjectBase (EObjectFlags InFlags) | |
| Constructor used for bootstrapping 更多... | |
Protected 属性 | |
| float | AnimRootMotionTranslationScale |
| Scale to apply to root motion translation on this Character | |
| struct FBasedMovementInfo | BasedMovement |
| Info about our current movement base (object we are standing on). | |
| FQuat | BaseRotationOffset |
| Saved rotation offset of mesh. | |
| FVector | BaseTranslationOffset |
| Saved translation offset of mesh. | |
| bool | bInBaseReplication |
| Flag that we are receiving replication of the based movement. | |
| struct FBasedMovementInfo | ReplicatedBasedMovement |
| Replicated version of relative movement. 更多... | |
| uint8 | ReplicatedMovementMode |
| CharacterMovement MovementMode (and custom mode) replicated for simulated proxies. 更多... | |
| float | ReplicatedServerLastTransformUpdateTimeStamp |
| CharacterMovement ServerLastTransformUpdateTimeStamp value, replicated to simulated proxies. | |
Protected 属性 继承自 APawn | |
| FVector | ControlInputVector |
| Accumulated control input vector, stored in world space. 更多... | |
| FVector | LastControlInputVector |
| The last control input vector that was processed by ConsumeMovementInputVector(). 更多... | |
Protected 属性 继承自 AActor | |
| uint8 | bAllowReceiveTickEventOnDedicatedServer:1 |
| If false, the Blueprint ReceiveTick() event will be disabled on dedicated servers. 更多... | |
| uint8 | bCanBeInCluster:1 |
| If true, this actor can be put inside of a GC Cluster to improve Garbage Collection performance | |
| uint8 | bNetCheckedInitialPhysicsState: 1 |
| Flag indicating we have checked initial simulating physics state to sync networked proxies to the server. | |
| uint8 | bReplicates:1 |
| If true, this actor will replicate to remote machines 更多... | |
| TArray< class AMatineeActor * > | ControllingMatineeActors |
| The matinee actors that control this actor. | |
| FName | NetDriverName |
| Used to specify the net driver to replicate on (NAME_None || NAME_GameNetDriver is the default net driver) | |
| TArray< UActorComponent * > | ReplicatedComponents |
| Set of replicated components, stored as an array to save space as this is generally not very large | |
| USceneComponent * | RootComponent |
| The component that defines the transform (location, rotation, scale) of this Actor in the world, all other components must be attached to this one somehow | |
| FTimerHandle | TimerHandle_LifeSpanExpired |
| Handle for efficient management of LifeSpanExpired timer | |
| EActorUpdateOverlapsMethod | UpdateOverlapsMethodDuringLevelStreaming |
| Condition for calling UpdateOverlaps() to initialize overlap state when loaded in during level streaming. 更多... | |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 APawn | |
| static AActor * | GetMovementBaseActor (const APawn *Pawn) |
| Gets the owning actor of the Movement Base Component on which the pawn is standing. | |
静态 Public 成员函数 继承自 AActor | |
| static const FName | GetCanBeDamagedPropertyName () |
| Gets the property name for bCanBeDamaged. 更多... | |
| static FString | GetDebugName (const AActor *Actor) |
| Retrieves actor's name used for logging, or string "NULL" if Actor is null | |
| static const FName | GetHiddenPropertyName () |
| Gets the property name for bHidden. 更多... | |
| static const FName | GetInstigatorPropertyName () |
| Gets the property name for Instigator. 更多... | |
| static const FName | GetReplicateMovementPropertyName () |
| Gets the property name for bReplicateMovement. 更多... | |
| static const FName | GetRolePropertyName () |
| Gets the property name for Role. 更多... | |
| static void | MakeNoiseImpl (AActor *NoiseMaker, float Loudness, APawn *NoiseInstigator, const FVector &NoiseLocation, float MaxRange, FName Tag) |
| Default Implementation of MakeNoise | |
| static void | SetMakeNoiseDelegate (const FMakeNoiseDelegate &NewDelegate) |
| Modifies the global delegate used for handling MakeNoise | |
静态 Public 成员函数 继承自 UObject | |
| static void | AddReferencedObjects (UObject *InThis, FReferenceCollector &Collector) |
| Callback used to allow object register its direct object references that are not already covered by the token stream. 更多... | |
| static bool | CanCreateInCurrentContext (UObject *Template) |
| Determines if you can create an object from the supplied template in the current context (editor, client only, dedicated server, game/listen) This calls NeedsLoadForClient & NeedsLoadForServer | |
| static UObject * | GetArchetypeFromRequiredInfo (const UClass *Class, const UObject *Outer, FName Name, EObjectFlags ObjectFlags) |
| Return the template that an object with this class, outer and name would be 更多... | |
| static const FName & | SourceFileTagName () |
| Get the common tag name used for all asset source file import paths | |
| static void | UpdateClassesExcludedFromDedicatedClient (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames) |
| Update the list of classes that we should exclude from dedicated client builds | |
| static void | UpdateClassesExcludedFromDedicatedServer (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames) |
| Update the list of classes that we should exclude from dedicated server builds | |
静态 Public 成员函数 继承自 UObjectBase | |
| static void | EmitBaseReferences (UClass *RootClass) |
| Emit GC tokens for UObjectBase, this might be UObject::StaticClass or Default__Class | |
| static FString | RemoveClassPrefix (const TCHAR *ClassName) |
| Removes the class prefix from the given string | |
静态 Protected 成员函数 继承自 UObjectBaseUtility | |
| static void | CreateClusterFromObject (UObjectBaseUtility *ClusterRootObject, UObjectBaseUtility *ReferencingObject) |
| Helper function to create a cluster from UObject | |
Characters are Pawns that have a mesh, collision, and built-in movement logic.
They are responsible for all physical interaction between the player or AI and the world, and also implement basic networking and input models. They are designed for a vertically-oriented player representation that can walk, jump, fly, and swim through the world using CharacterMovementComponent.
|
virtual |
Cache mesh offset from capsule.
This is used as the target for network smoothing interpolation, when the mesh is offset with lagged smoothing. This is automatically called during initialization; call this at runtime if you intend to change the default mesh offset from the capsule.
|
virtual |
| bool ACharacter::CanJump | ( | ) | const |
Check if the character can jump in the current state.
The default implementation may be overridden or extended by implementing the custom CanJump event in Blueprints.
@Return Whether the character can jump in the current state.
|
protected |
Customizable event to check if the character can jump in the current state.
Default implementation returns true if the character is on the ground and not crouching, has a valid CharacterMovementComponent and CanEverJump() returns true. Default implementation also allows for 'hold to jump higher' functionality: As well as returning true when on the ground, it also returns true when GetMaxJumpTime is more than zero and IsJumping returns true.
@Return Whether the character can jump in the current state.
| void ACharacter::ClientAdjustPosition | ( | float | TimeStamp, |
| FVector | NewLoc, | ||
| FVector | NewVel, | ||
| UPrimitiveComponent * | NewBase, | ||
| FName | NewBaseBoneName, | ||
| bool | bHasBase, | ||
| bool | bBaseRelativePosition, | ||
| uint8 | ServerMovementMode | ||
| ) |
Replicate position correction to client, associated with a timestamped servermove.
Client will replay subsequent moves after applying adjustment.
| void ACharacter::ClientAdjustRootMotionPosition | ( | float | TimeStamp, |
| float | ServerMontageTrackPosition, | ||
| FVector | ServerLoc, | ||
| FVector_NetQuantizeNormal | ServerRotation, | ||
| float | ServerVelZ, | ||
| UPrimitiveComponent * | ServerBase, | ||
| FName | ServerBoneName, | ||
| bool | bHasBase, | ||
| bool | bBaseRelativePosition, | ||
| uint8 | ServerMovementMode | ||
| ) |
Replicate position correction to client when using root motion for movement.
(animation root motion specific)
|
virtual |
Request the character to start crouching.
The request is processed on the next update of the CharacterMovementComponent.
| int32 ACharacter::FindRootMotionRepMove | ( | const FAnimMontageInstance & | ClientMontageInstance | ) | const |
Find usable root motion replicated move from our buffer.
Goes through the buffer back in time, to find the first move that clears 'CanUseRootMotionRepMove' below. Returns index of that move or INDEX_NONE otherwise.
|
inlinevirtual |
Get the saved rotation offset of mesh.
This is how much extra rotation is applied from the capsule rotation.
|
inline |
Get the saved rotation offset of mesh.
This is how much extra rotation is applied from the capsule rotation.
|
inline |
Get the saved translation offset of mesh.
This is how much extra offset is applied from the center of the capsule.
|
overridevirtual |
Returns The half-height of the default Pawn, scaled by the component scale.
By default returns the half-height of the RootComponent, regardless of whether it is registered or collidable.
重载 APawn .
|
virtual |
Get the maximum jump time for the character.
Note that if StopJumping() is not called before the max jump hold time is reached, then the character will carry on receiving vertical velocity. Therefore it is usually best to call StopJumping() when jump input has ceased (such as a button up event).
|
overridevirtual |
Return our PawnMovementComponent, if we have one.
By default, returns the first PawnMovementComponent found. Native classes that create their own movement component should override this method for more efficiency.
重载 APawn .
|
overridevirtual |
Get axis-aligned cylinder around this actor, used for simple collision checks (ie Pawns reaching a destination).
If IsRootComponentCollisionRegistered() returns true, just returns its bounding cylinder, otherwise falls back to GetComponentsBoundingCylinder.
重载 AActor .
|
virtual |
True if jump is actively providing a force, such as when the jump key is held and the time it has been held is less than JumpMaxHoldTime.
| bool ACharacter::IsPlayingNetworkedRootMotionMontage | ( | ) | const |
True if we are playing Root Motion right now, through a Montage with RootMotionMode == ERootMotionMode::RootMotionFromMontagesOnly.
This means code path for networked root motion is enabled.
|
virtual |
Make the character jump on the next update.
If you want your character to jump according to the time that the jump key is held, then you can set JumpKeyHoldTime to some non-zero value. Make sure in this case to call StopJumping() when you want the jump's z-velocity to stop being applied (such as on a button up event), otherwise the character will carry on receiving the velocity until JumpKeyHoldTime is reached.
| void ACharacter::K2_OnEndCrouch | ( | float | HalfHeightAdjust, |
| float | ScaledHalfHeightAdjust | ||
| ) |
Event when Character stops crouching.
| HalfHeightAdjust | difference between default collision half-height, and actual crouched capsule half-height. |
| ScaledHalfHeightAdjust | difference after component scale is taken in to account. |
| void ACharacter::K2_OnMovementModeChanged | ( | EMovementMode | PrevMovementMode, |
| EMovementMode | NewMovementMode, | ||
| uint8 | PrevCustomMode, | ||
| uint8 | NewCustomMode | ||
| ) |
Called from CharacterMovementComponent to notify the character that the movement mode has changed.
| PrevMovementMode | Movement mode before the change |
| NewMovementMode | New movement mode |
| PrevCustomMode | Custom mode before the change (applicable if PrevMovementMode is Custom) |
| NewCustomMode | New custom mode (applicable if NewMovementMode is Custom) |
| void ACharacter::K2_OnStartCrouch | ( | float | HalfHeightAdjust, |
| float | ScaledHalfHeightAdjust | ||
| ) |
Event when Character crouches.
| HalfHeightAdjust | difference between default collision half-height, and actual crouched capsule half-height. |
| ScaledHalfHeightAdjust | difference after component scale is taken in to account. |
| void ACharacter::K2_UpdateCustomMovement | ( | float | DeltaTime | ) |
Event for implementing custom character movement mode.
Called by CharacterMovement if MovementMode is set to Custom.
|
virtual |
Called upon landing when falling, to perform actions based on the Hit result.
Triggers the OnLanded event. Note that movement mode is still "Falling" during this event. Current Velocity value is the velocity at the time of landing. Consider OnMovementModeChanged() as well, as that can be used once the movement mode changes to the new mode (most likely Walking).
| Hit | Result describing the landing that resulted in a valid landing spot. |
|
virtual |
Set a pending launch velocity on the Character.
This velocity will be processed on the next CharacterMovementComponent tick, and will set it to the "falling" state. Triggers the OnLaunched event. @PARAM LaunchVelocity is the velocity to impart to the Character @PARAM bXYOverride if true replace the XY part of the Character's velocity instead of adding to it. @PARAM bZOverride if true replace the Z component of the Character's velocity instead of adding to it.
|
inlinevirtual |
Called when pawn's movement is blocked
| Impact | describes the blocking hit. |
|
virtual |
Event when this actor overlaps another actor, for example a player walking into a trigger.
For events when objects have a blocking collision, for example a player hitting a wall, see 'Hit' events.
重载 AActor .
|
virtual |
Event when an actor no longer overlaps another actor, and they have separated.
重载 AActor .
|
virtual |
Called when character's jump reaches Apex.
Needs CharacterMovement->bNotifyApex = true
|
virtual |
Called when Character stops crouching.
Called on non-owned Characters through bIsCrouched replication.
| HalfHeightAdjust | difference between default collision half-height, and actual crouched capsule half-height. |
| ScaledHalfHeightAdjust | difference after component scale is taken in to account. |
| void ACharacter::OnLanded | ( | const FHitResult & | Hit | ) |
Called upon landing when falling, to perform actions based on the Hit result.
Note that movement mode is still "Falling" during this event. Current Velocity value is the velocity at the time of landing. Consider OnMovementModeChanged() as well, as that can be used once the movement mode changes to the new mode (most likely Walking).
| Hit | Result describing the landing that resulted in a valid landing spot. |
|
virtual |
Called from CharacterMovementComponent to notify the character that the movement mode has changed.
| PrevMovementMode | Movement mode before the change |
| PrevCustomMode | Custom mode before the change (applicable if PrevMovementMode is Custom) |
|
virtual |
Called when Character crouches.
Called on non-owned Characters through bIsCrouched replication.
| HalfHeightAdjust | difference between default collision half-height, and actual crouched capsule half-height. |
| ScaledHalfHeightAdjust | difference after component scale is taken in to account. |
|
virtual |
Called on client after position update is received to respond to the new location and rotation.
Actual change in location is expected to occur in CharacterMovement->SmoothCorrection(), after which this occurs. Default behavior is to check for penetration in a blocking object if bClientCheckEncroachmentOnNetUpdate is enabled, and set bSimGravityDisabled=true if so.
| void ACharacter::OnWalkingOffLedge | ( | const FVector & | PreviousFloorImpactNormal, |
| const FVector & | PreviousFloorContactNormal, | ||
| const FVector & | PreviousLocation, | ||
| float | TimeDelta | ||
| ) |
Event fired when the Character is walking off a surface and is about to fall because CharacterMovement->CurrentFloor became unwalkable.
If CharacterMovement->MovementMode does not change during this event then the character will automatically start falling afterwards.
| PreviousFloorImpactNormal | Normal of the previous walkable floor. |
| PreviousFloorContactNormal | Normal of the contact with the previous walkable floor. |
| PreviousLocation | Previous character location before movement off the ledge. |
| TimeTick | Time delta of movement update resulting in moving off the ledge. |
|
overridevirtual |
|
virtual |
Play Animation Montage on the character mesh.
Returns the length of the animation montage in seconds, or 0.f if failed to play.
|
overridevirtual |
Called when this Pawn is possessed.
Only called on the server (or in standalone).
| NewController | The controller possessing this pawn |
重载 APawn .
|
overridevirtual |
|
overridevirtual |
Called on the actor right before replication occurs.
Only called on Server, and for autonomous proxies if recording a Client Replay.
重载 APawn .
|
overridevirtual |
Called on the actor right before replication occurs.
Called for everyone when recording a Client Replay, including Simulated Proxies.
重载 AActor .
| void ACharacter::ServerMoveDualHybridRootMotion | ( | float | TimeStamp0, |
| FVector_NetQuantize10 | InAccel0, | ||
| uint8 | PendingFlags, | ||
| uint32 | View0, | ||
| float | TimeStamp, | ||
| FVector_NetQuantize10 | InAccel, | ||
| FVector_NetQuantize100 | ClientLoc, | ||
| uint8 | NewFlags, | ||
| uint8 | ClientRoll, | ||
| uint32 | View, | ||
| UPrimitiveComponent * | ClientMovementBase, | ||
| FName | ClientBaseBoneName, | ||
| uint8 | ClientMovementMode | ||
| ) |
Replicated function sent by client to server - contains client movement and view info for two moves.
First move is non root motion, second is root motion.
| void ACharacter::ServerMoveNoBase | ( | float | TimeStamp, |
| FVector_NetQuantize10 | InAccel, | ||
| FVector_NetQuantize100 | ClientLoc, | ||
| uint8 | CompressedMoveFlags, | ||
| uint8 | ClientRoll, | ||
| uint32 | View, | ||
| uint8 | ClientMovementMode | ||
| ) |
Replicated function sent by client to server.
Saves bandwidth over ServerMove() by implying that ClientMovementBase and ClientBaseBoneName are null. Passes through to CharacterMovement->ServerMove_Implementation() with null base params.
|
overridevirtual |
Allows a Pawn to set up custom input bindings.
Called upon possession by a PlayerController, using the InputComponent created by CreatePlayerInputComponent().
重载 APawn .
|
virtual |
Returns true if the Landed() event should be called.
Used by CharacterMovement to prevent notifications while playing back network moves.
|
virtual |
Stop Animation Montage.
If nullptr, it will stop what's currently active. The Blend Out Time is taken from the montage asset that is being stopped.
|
virtual |
Stop the character from jumping on the next update.
Call this from an input event (such as a button 'up' event) to cease applying jump Z-velocity. If this is not called, then jump z-velocity will be applied until JumpMaxHoldTime is reached.
|
overridevirtual |
Networking - called on client when actor is torn off (bTearOff==true), meaning it's no longer replicated to clients.
重载 AActor .
|
virtual |
Request the character to stop crouching.
The request is processed on the next update of the CharacterMovementComponent.
| uint32 ACharacter::bProxyIsJumpForceApplied |
Set to indicate that this Character is currently under the force of a jump (if JumpMaxHoldTime is non-zero).
IsJumpProvidingForce() handles this as well.
| uint32 ACharacter::bServerMoveIgnoreRootMotion |
Disable root motion on the server.
When receiving a DualServerMove, where the first move is not root motion and the second is.
|
static |
Name of the CharacterMovement component.
Use this name if you want to use a different class (with ObjectInitializer.SetDefaultSubobjectClass).
| FRootMotionMovementParams ACharacter::ClientRootMotionParams |
For LocallyControlled Autonomous clients.
Saved root motion data to be used by SavedMoves.
| int32 ACharacter::JumpCurrentCount |
Tracks the current number of jumps performed.
This is incremented in CheckJumpInput, used in CanJump_Implementation, and reset in OnMovementModeChanged. When providing overrides for these methods, it's recommended to either manually increment / reset this value, or call the Super:: method.
| int32 ACharacter::JumpCurrentCountPreJump |
Represents the current number of jumps performed before CheckJumpInput modifies JumpCurrentCount.
This is set in CheckJumpInput and is used in SetMoveFor and PrepMoveFor instead of JumpCurrentCount since CheckJumpInput can modify JumpCurrentCount. When providing overrides for these methods, it's recommended to either manually set this value, or call the Super:: method.
| float ACharacter::JumpKeyHoldTime |
Jump key Held Time.
This is the time that the player has held the jump key, in seconds.
| int32 ACharacter::JumpMaxCount |
The max number of jumps the character can perform.
Note that if JumpMaxHoldTime is non zero and StopJumping is not called, the player may be able to perform and unlimited number of jumps. Therefore it is usually best to call StopJumping() when jump input has ceased (such as a button up event).
| float ACharacter::JumpMaxHoldTime |
The max time the jump key can be held.
Note that if StopJumping() is not called before the max jump hold time is reached, then the character will carry on receiving vertical velocity. Therefore it is usually best to call StopJumping() when jump input has ceased (such as a button up event).
| FLandedSignature ACharacter::LandedDelegate |
Called upon landing when falling, to perform actions based on the Hit result.
Note that movement mode is still "Falling" during this event. Current Velocity value is the velocity at the time of landing. Consider OnMovementModeChanged() as well, as that can be used once the movement mode changes to the new mode (most likely Walking).
| Hit | Result describing the landing that resulted in a valid landing spot. |
|
static |
Name of the MeshComponent.
Use this name if you want to prevent creation of the component (with ObjectInitializer.DoNotCreateDefaultSubobject).
| FCharacterMovementUpdatedSignature ACharacter::OnCharacterMovementUpdated |
Event triggered at the end of a CharacterMovementComponent movement update.
This is the preferred event to use rather than the Tick event when performing custom updates to CharacterMovement properties based on the current state. This is mainly due to the nature of network updates, where client corrections in position from the server can cause multiple iterations of a movement update, which allows this event to update as well, while a Tick event would not.
| DeltaSeconds | Delta time in seconds for this update |
| InitialLocation | Location at the start of the update. May be different than the current location if movement occurred. |
| InitialVelocity | Velocity at the start of the update. May be different than the current velocity. |
| FCharacterReachedApexSignature ACharacter::OnReachedJumpApex |
Broadcast when Character's jump reaches its apex.
Needs CharacterMovement->bNotifyApex = true
|
protected |
Replicated version of relative movement.
Read-only on simulated proxies!
|
protected |
CharacterMovement MovementMode (and custom mode) replicated for simulated proxies.
Use CharacterMovementComponent::UnpackNetworkMovementMode() to translate it.
| FRootMotionSourceGroup ACharacter::SavedRootMotion |
For LocallyControlled Autonomous clients.
During a PerformMovement() after root motion is prepared, we save it off into this and then record it into our SavedMoves. During SavedMove playback we use it as our "Previous Move" SavedRootMotion which includes last received root motion from the Server