Header <GameFramework/Actor.h>
#include "GameFramework/Actor.h"Includes 17
<Stats/Stats.h> |
<UObject/ObjectMacros.h> |
<UObject/UObjectBaseUtility.h> |
<UObject/Object.h> |
<InputCoreTypes.h> |
<Templates/Requires.h> |
<Templates/SubclassOf.h> |
<Engine/EngineTypes.h> |
<Engine/EngineBaseTypes.h> |
<PropertyPairsMap.h> |
<Components/ChildActorComponent.h> |
<RenderCommandFence.h> |
<Net/Core/Misc/NetSubObjectRegistry.h> |
<Engine/ReplicatedState.h> |
<atomic> |
<Folder.h> |
<WorldPartition/WorldPartitionActorDescType.h> |
Contents
AActor | Actor is the base class for an Object that can be placed or spawned in a level. Actors may contain a collection of ActorComponents, which can be used to control how actors move, how they are rendered, etc. The other… (uclass class : UObject) |
Functions | 20 free functions (namespace scope) |
class AActor
class AActor : public UObjectUCLASSBlueprintTypeBlueprintableMigratingAssetconfig=EngineMinimalAPIActor is the base class for an Object that can be placed or spawned in a level. Actors may contain a collection of ActorComponents, which can be used to control how actors move, how they are rendered, etc. The other…
Constructors 1
| AActor | AActor();AActor(const FObjectInitializer& ObjectInitializer);Default constructor for AActor |
Member functions 450
| GetLifetimeReplicatedProps | 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 |
| GetReplicatedCustomConditionState | virtual void GetReplicatedCustomConditionState(FCustomPropertyConditionState& OutActiveState) const override;Called when this actor begins replicating to initialize the state of custom property conditions |
| OnRep_ReplicateMovement | virtual void OnRep_ReplicateMovement();UFUNCTIONCalled on client when updated bReplicateMovement value is received for this actor. |
| SetCallPreReplication | void SetCallPreReplication(bool bCall);Set whether or not we should make calls to PreReplication. |
| SetCallPreReplicationForReplay | void SetCallPreReplicationForReplay(bool bCall);Set whether or not we should make calls to PreReplicationForReplay. |
| GetTearOff | 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. |
| TearOff | virtual void TearOff();UFUNCTIONBlueprintCallableCategory=NetworkingNetworking - Server - TearOff this actor to stop replication to clients. Will set bTearOff to true. |
| HasNetOwner | virtual bool HasNetOwner() const;Does this actor have an owner responsible for replication? (APlayerController typically) |
| HasLocalNetOwner | virtual bool HasLocalNetOwner() const;Does this actor have a locally controlled owner responsible for replication? (APlayerController typically) |
| GetAutoDestroyWhenFinished | bool GetAutoDestroyWhenFinished() const; |
| SetAutoDestroyWhenFinished | void SetAutoDestroyWhenFinished(bool bVal);UFUNCTION |
| SetRemoteRoleForBackwardsCompat | void SetRemoteRoleForBackwardsCompat(const ENetRole InRemoteRole);protectedThis function should only be used in the constructor of classes that need to set the RemoteRole for backwards compatibility purposes |
| OnRep_Owner | virtual void OnRep_Owner();protectedUFUNCTIONCalled when owner changes, does nothing by default but can be overridden |
| GetUpdateOverlapsMethodDuringLevelStreaming | EActorUpdateOverlapsMethod GetUpdateOverlapsMethodDuringLevelStreaming() const;Get the method used to UpdateOverlaps() when loaded via level streaming. Resolves the 'UseConfigDefault' option to the class default specified in config. |
| SetReplicates | void SetReplicates(bool bInReplicates);UFUNCTIONBlueprintCallableBlueprintAuthorityOnlyCategory=NetworkingSet whether this actor replicates to network clients. When this actor is spawned on the server it will be sent to clients as well. Properties flagged for replication will update on clients if they change on the… |
| SetReplicateMovement | virtual void SetReplicateMovement(bool bInReplicateMovement);UFUNCTIONBlueprintCallableCategory=NetworkingSet whether this actor's movement replicates to network clients. |
| SetAutonomousProxy | 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. |
| CopyRemoteRoleFrom | void CopyRemoteRoleFrom(const AActor* CopyFromActor);Copies RemoteRole from another Actor and adds this actor to the list of network actors if necessary. |
| GetLocalRole | ENetRole GetLocalRole() const;UFUNCTIONBlueprintCallableCategory=NetworkingReturns how much control the local machine has over this actor. |
| GetRemoteRole | ENetRole GetRemoteRole() const;UFUNCTIONBlueprintCallableCategory=NetworkingReturns how much control the remote machine has over this actor. |
| SetNetAddressable | void SetNetAddressable();Allows this actor to be net-addressable by full path name, even if the actor was spawned after map load. |
| GetAttachmentReplication | const struct FRepAttachment& GetAttachmentReplication() const;Get read-only access to current AttachmentReplication. |
| OnRep_AttachmentReplication | virtual void OnRep_AttachmentReplication();UFUNCTIONCalled on client when updated AttachmentReplication value is received for this actor. |
| SetPhysicsReplicationMode | void SetPhysicsReplicationMode(const EPhysicsReplicationMode ReplicationMode);UFUNCTIONBlueprintCallableCategory=ReplicationSet the physics replication mode of this body, via EPhysicsReplicationMode |
| GetPhysicsReplicationMode | EPhysicsReplicationMode GetPhysicsReplicationMode();UFUNCTIONBlueprintCallableCategory=ReplicationGet the physics replication mode of this body, via EPhysicsReplicationMode |
| RegisterAsFocalPointInPhysicsReplicationLOD | void RegisterAsFocalPointInPhysicsReplicationLOD() const;UFUNCTIONBlueprintCallableCategory=ReplicationRegister this actors root components physics object as a focal particle in Physics Repliocation LOD |
| UnregisterAsFocalPointInPhysicsReplicationLOD | void UnregisterAsFocalPointInPhysicsReplicationLOD() const;UFUNCTIONBlueprintCallableCategory=ReplicationUnregister this actors root components physics object from being a focal particle in Physics Repliocation LOD |
| CanTriggerResimulation | bool CanTriggerResimulation() const;UFUNCTIONBlueprintCallableCategory=PhysicsCan this body trigger a resimulation when Physics Prediction is enabled |
| GetResimulationThreshold | float GetResimulationThreshold() const;UFUNCTIONBlueprintCallableCategory=PhysicsGet the error threshold in centimeters before this object should enforce a resimulation to trigger. |
| SetNetDriverName | void SetNetDriverName(FName NewNetDriverName);Set the name of the net driver associated with this actor. Will move the actor out of the list of network actors from the old net driver and add it to the new list |
| GetNetDriverName | FName GetNetDriverName() const;Returns name of the net driver associated with this actor (all RPCs will go out via this connection) |
| IsUsingRegisteredSubObjectList | bool IsUsingRegisteredSubObjectList() const;Returns true if this actor is replicating SubObjects & ActorComponents via the registration list. Returns false when it replicates them via the virtual ReplicateSubobjects method. |
| ReplicateSubobjects | virtual bool ReplicateSubobjects(class UActorChannel *Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags);Method that allows an actor to replicate subobjects on its actor channel. Must return true if any data was serialized into the bunch. This method is used only when bReplicateUsingRegisteredSubObjectList is false.… |
| OnSubobjectCreatedFromReplication | virtual void OnSubobjectCreatedFromReplication(UObject *NewSubobject);Called on the actor when a new subobject is dynamically created via replication |
| OnSubobjectDestroyFromReplication | virtual void OnSubobjectDestroyFromReplication(UObject *Subobject);Called on the actor when a subobject is dynamically destroyed via replication |
| PreReplication | virtual void PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker);Called on the actor right before replication occurs. Only called on Server, and for autonomous proxies if recording a Client Replay. |
| PreReplicationForReplay | virtual void PreReplicationForReplay(IRepChangedPropertyTracker & ChangedPropertyTracker);Called on the actor right before replication occurs. Called for everyone when recording a Client Replay, including Simulated Proxies. |
| RewindForReplay | virtual void RewindForReplay();Called on the actor before checkpoint data is applied during a replay. Only called if bReplayRewindable is set. |
| CallPreReplication | 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. |
| OnRep_Instigator | virtual void OnRep_Instigator();UFUNCTIONCalled on clients when Instigator is replicated. |
| SetRayTracingGroupId | void SetRayTracingGroupId(int32 InRaytracingGroupId);UFUNCTIONBlueprintCallableCategory=RayTracingSpecify a RayTracingGroupId for this actors. Components with invalid RayTracingGroupId will inherit the actors. |
| GetRayTracingGroupId | int32 GetRayTracingGroupId() const;UFUNCTIONBlueprintCallableCategory=RayTracingReturn the RayTracingGroupId for this actor. |
| AllowReceiveTickEventOnDedicatedServer | bool AllowReceiveTickEventOnDedicatedServer() const;Return the value of bAllowReceiveTickEventOnDedicatedServer, indicating whether the Blueprint ReceiveTick() event will occur on dedicated servers. |
| IsRunningUserConstructionScript | bool IsRunningUserConstructionScript() const;Returns if this actor is currently running the User Construction Script |
| GetActorNameOrLabel | FString GetActorNameOrLabel() const; |
| GetActorLabelView | FStringView GetActorLabelView() const; |
| EnableInput | virtual void EnableInput(class APlayerController* PlayerController);UFUNCTIONBlueprintCallableCategory=InputPushes this actor on to the stack of input being handled by a PlayerController. |
| CreateInputComponent | virtual void CreateInputComponent(TSubclassOf<UInputComponent> InputComponentToCreate);UFUNCTIONBlueprintCallableCategory=InputCreates an input component from the input component passed in |
| DisableInput | virtual void DisableInput(class APlayerController* PlayerController);UFUNCTIONBlueprintCallableCategory=InputRemoves this actor from the stack of input being handled by a PlayerController. |
| GetInputAxisValue | float GetInputAxisValue(const FName InputAxisName) const;UFUNCTIONBlueprintCallableGets the value of the input axis if input is enabled for this actor. |
| GetInputAxisKeyValue | float GetInputAxisKeyValue(const FKey InputAxisKey) const;UFUNCTIONBlueprintCallableGets the value of the input axis key if input is enabled for this actor. |
| GetInputVectorAxisValue | FVector GetInputVectorAxisValue(const FKey InputAxisKey) const;UFUNCTIONBlueprintCallableGets the value of the input axis key if input is enabled for this actor. |
| GetInstigator | APawn* GetInstigator() const;UFUNCTIONBlueprintCallableCategory=Gametemplate <class T> T* GetInstigator() const;Returns the instigator for this actor, or nullptr if there is none. |
| GetInstigatorController | AController* GetInstigatorController() const;UFUNCTIONBlueprintCallableCategory=Gametemplate<class T> T* GetInstigatorController() const;Returns the instigator's controller for this actor, or nullptr if there is none. |
| GetDataLayerInstances | TArray<const UDataLayerInstance*> GetDataLayerInstances() const; |
| ContainsDataLayer | bool ContainsDataLayer(const UDataLayerAsset* DataLayerAsset) const;bool ContainsDataLayer(const UDataLayerInstance* DataLayerInstance) const; |
| HasDataLayers | bool HasDataLayers() const; |
| HasContentBundle | bool HasContentBundle() const; |
| GetExternalDataLayerAsset | const UExternalDataLayerAsset* GetExternalDataLayerAsset() const; |
| GetTransform | const FTransform& GetTransform() const;UFUNCTIONBlueprintCallableCategory=TransformationGet the actor-to-world transform. |
| ActorToWorld | const FTransform& ActorToWorld() const;Get the local-to-world transform of the RootComponent. Identical to GetTransform(). |
| K2_GetActorLocation | FVector K2_GetActorLocation() const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the location of the RootComponent of this Actor |
| K2_SetActorLocation | bool K2_SetActorLocation(FVector NewLocation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationMove the Actor to the specified location. |
| K2_GetActorRotation | FRotator K2_GetActorRotation() const;UFUNCTIONBlueprintCallableCategory=TransformationReturns rotation of the RootComponent of this Actor. |
| GetActorForwardVector | FVector GetActorForwardVector() const;UFUNCTIONBlueprintCallableCategory=TransformationGet the forward (X) vector (length 1.0) from this Actor, in world space. |
| GetActorUpVector | FVector GetActorUpVector() const;UFUNCTIONBlueprintCallableCategory=TransformationGet the up (Z) vector (length 1.0) from this Actor, in world space. |
| GetActorRightVector | FVector GetActorRightVector() const;UFUNCTIONBlueprintCallableCategory=TransformationGet the right (Y) vector (length 1.0) from this Actor, in world space. |
| GetActorBounds | virtual void GetActorBounds(bool bOnlyCollidingComponents, FVector& Origin, FVector& BoxExtent, bool bIncludeFromChildActors = false) const;UFUNCTIONBlueprintCallableCategory=CollisionReturns the bounding box of all components that make up this Actor (excluding ChildActorComponents). |
| K2_GetRootComponent | USceneComponent* K2_GetRootComponent() const;UFUNCTIONReturns the RootComponent of this Actor |
| GetVelocity | virtual FVector GetVelocity() const;UFUNCTIONBlueprintCallableCategory=TransformationReturns velocity (in cm/s (Unreal Units/second) of the rootcomponent if it is either using physics or has an associated MovementComponent |
| SetActorLocation | bool SetActorLocation(const FVector& NewLocation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None);Move the actor instantly to the specified location. |
| K2_SetActorRotation | bool K2_SetActorRotation(FRotator NewRotation, bool bTeleportPhysics);UFUNCTIONBlueprintCallableCategory=TransformationSet the Actor's rotation instantly to the specified rotation. |
| SetActorRotation | bool SetActorRotation(FRotator NewRotation, ETeleportType Teleport = ETeleportType::None);bool SetActorRotation(const FQuat& NewRotation, ETeleportType Teleport = ETeleportType::None);Set the Actor's rotation instantly to the specified rotation. |
| K2_SetActorLocationAndRotation | bool K2_SetActorLocationAndRotation(FVector NewLocation, FRotator NewRotation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationMove the actor instantly to the specified location and rotation. |
| SetActorLocationAndRotation | bool SetActorLocationAndRotation(FVector NewLocation, FRotator NewRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None);bool SetActorLocationAndRotation(FVector NewLocation, const FQuat& NewRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None);Move the actor instantly to the specified location and rotation. |
| SetActorScale3D | void SetActorScale3D(FVector NewScale3D);UFUNCTIONBlueprintCallableCategory=TransformationSet the Actor's world-space scale. |
| GetActorScale3D | FVector GetActorScale3D() const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the Actor's world-space scale. |
| GetDistanceTo | float GetDistanceTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the distance from this Actor to OtherActor. |
| GetSquaredDistanceTo | float GetSquaredDistanceTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the squared distance from this Actor to OtherActor. |
| GetHorizontalDistanceTo | float GetHorizontalDistanceTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the distance from this Actor to OtherActor, ignoring Z. |
| GetSquaredHorizontalDistanceTo | float GetSquaredHorizontalDistanceTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the squared distance from this Actor to OtherActor, ignoring Z. |
| GetVerticalDistanceTo | float GetVerticalDistanceTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the distance from this Actor to OtherActor, ignoring XY. |
| GetDotProductTo | float GetDotProductTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the dot product from this Actor to OtherActor. Returns -2.0 on failure. Returns 0.0 for coincidental actors. |
| GetHorizontalDotProductTo | float GetHorizontalDotProductTo(const AActor* OtherActor) const;UFUNCTIONBlueprintCallableCategory=TransformationReturns the dot product from this Actor to OtherActor, ignoring Z. Returns -2.0 on failure. Returns 0.0 for coincidental actors. |
| K2_AddActorWorldOffset | void K2_AddActorWorldOffset(FVector DeltaLocation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the location of this actor in world space. |
| AddActorWorldOffset | void AddActorWorldOffset(FVector DeltaLocation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_AddActorWorldRotation | void K2_AddActorWorldRotation(FRotator DeltaRotation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the rotation of this actor in world space. |
| AddActorWorldRotation | void AddActorWorldRotation(FRotator DeltaRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None);void AddActorWorldRotation(const FQuat& DeltaRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_AddActorWorldTransform | void K2_AddActorWorldTransform(const FTransform& DeltaTransform, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the transform of this actor in world space. Ignores scale and sets it to (1,1,1). |
| AddActorWorldTransform | void AddActorWorldTransform(const FTransform& DeltaTransform, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_AddActorWorldTransformKeepScale | void K2_AddActorWorldTransformKeepScale(const FTransform& DeltaTransform, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the transform of this actor in world space. Scale is unchanged. |
| AddActorWorldTransformKeepScale | void AddActorWorldTransformKeepScale(const FTransform& DeltaTransform, bool bSweep = false, FHitResult* OutSweepHitResult = nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_SetActorTransform | bool K2_SetActorTransform(const FTransform& NewTransform, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationSet the Actors transform to the specified one. |
| SetActorTransform | bool SetActorTransform(const FTransform& NewTransform, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_AddActorLocalOffset | void K2_AddActorLocalOffset(FVector DeltaLocation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the location of this component in its local reference frame. |
| AddActorLocalOffset | void AddActorLocalOffset(FVector DeltaLocation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_AddActorLocalRotation | void K2_AddActorLocalRotation(FRotator DeltaRotation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the rotation of this component in its local reference frame |
| AddActorLocalRotation | void AddActorLocalRotation(FRotator DeltaRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None);void AddActorLocalRotation(const FQuat& DeltaRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_AddActorLocalTransform | void K2_AddActorLocalTransform(const FTransform& NewTransform, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationAdds a delta to the transform of this component in its local reference frame |
| AddActorLocalTransform | void AddActorLocalTransform(const FTransform& NewTransform, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_SetActorRelativeLocation | void K2_SetActorRelativeLocation(FVector NewRelativeLocation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationSet the actor's RootComponent to the specified relative location. |
| SetActorRelativeLocation | void SetActorRelativeLocation(FVector NewRelativeLocation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_SetActorRelativeRotation | void K2_SetActorRelativeRotation(FRotator NewRelativeRotation, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationSet the actor's RootComponent to the specified relative rotation |
| SetActorRelativeRotation | void SetActorRelativeRotation(FRotator NewRelativeRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None);void SetActorRelativeRotation(const FQuat& NewRelativeRotation, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| K2_SetActorRelativeTransform | void K2_SetActorRelativeTransform(const FTransform& NewRelativeTransform, bool bSweep, FHitResult& SweepHitResult, bool bTeleport);UFUNCTIONBlueprintCallableCategory=TransformationSet the actor's RootComponent to the specified relative transform |
| SetActorRelativeTransform | void SetActorRelativeTransform(const FTransform& NewRelativeTransform, bool bSweep=false, FHitResult* OutSweepHitResult=nullptr, ETeleportType Teleport = ETeleportType::None); |
| SetActorRelativeScale3D | void SetActorRelativeScale3D(FVector NewRelativeScale);UFUNCTIONBlueprintCallableCategory=TransformationSet the actor's RootComponent to the specified relative scale 3d |
| GetActorRelativeScale3D | FVector GetActorRelativeScale3D() const;UFUNCTIONBlueprintCallableCategory=TransformationReturn the actor's relative scale 3d |
| MarkNeedsRecomputeBoundsOnceForGame | void MarkNeedsRecomputeBoundsOnceForGame();Marks the bounds of all SceneComponents attached to this actor which have `bComputeBoundsOnceForGame` as needing to be recomputed the next time UpdateBounds is called. This might be necessary if the bounds that were… |
| SetActorHiddenInGame | virtual void SetActorHiddenInGame(bool bNewHidden);UFUNCTIONBlueprintCallableCategory=RenderingSets the actor to be hidden in the game |
| SetActorEnableCollision | void SetActorEnableCollision(bool bNewActorEnableCollision);UFUNCTIONBlueprintCallableCategory=CollisionAllows enabling/disabling collision for the whole actor |
| GetActorEnableCollision | bool GetActorEnableCollision() const;UFUNCTIONBlueprintPureCategory=CollisionGet current state of collision for the whole actor |
| K2_DestroyActor | virtual void K2_DestroyActor();UFUNCTIONBlueprintCallableCategory=ActorDestroy the actor |
| HasAuthority | bool HasAuthority() const;UFUNCTIONBlueprintCallableCategory=NetworkingReturns whether this actor has network authority |
| AddComponent | UActorComponent* AddComponent(FName TemplateName, bool bManualAttachment, const FTransform& RelativeTransform, const UObject* ComponentTemplateContext, bool bDeferredFinish = false);UFUNCTIONBlueprintCallableCreates a new component and assigns ownership to the Actor this is called for. Automatic attachment causes the first component created to become the root, and all subsequent components to be attached under that root.… |
| AddComponentByClass | UActorComponent* AddComponentByClass(UPARAM(meta = (AllowAbstract = "false")) TSubclassOf<UActorComponent> Class, bool bManualAttachment, const FTransform& RelativeTransform, bool bDeferredFinish);UFUNCTIONBlueprintCallableCreates a new component and assigns ownership to the Actor this is called for. Automatic attachment causes the first component created to become the root, and all subsequent components to be attached under that root.… |
| FinishAddComponent | void FinishAddComponent(UActorComponent* Component, bool bManualAttachment, const FTransform& RelativeTransform);UFUNCTIONBlueprintCallableCompletes the creation of a new actor component. Called either from blueprint after expose on spawn properties are set, or directly from AddComponent |
| K2_AttachToComponent | bool K2_AttachToComponent(USceneComponent* Parent, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies);UFUNCTIONBlueprintCallableCategory=TransformationAttaches the RootComponent of this Actor to the supplied component, optionally at a named socket. It is not valid to call this on components that are not Registered. |
| AttachToComponent | bool 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. It is not valid to call this on components that are not Registered. |
| AttachToActor | bool 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. |
| K2_AttachToActor | bool K2_AttachToActor(AActor* ParentActor, FName SocketName, EAttachmentRule LocationRule, EAttachmentRule RotationRule, EAttachmentRule ScaleRule, bool bWeldSimulatedBodies);UFUNCTIONBlueprintCallableCategory=TransformationAttaches the RootComponent of this Actor to the supplied actor, optionally at a named socket. |
| K2_DetachFromActor | void K2_DetachFromActor(EDetachmentRule LocationRule = EDetachmentRule::KeepRelative, EDetachmentRule RotationRule = EDetachmentRule::KeepRelative, EDetachmentRule ScaleRule = EDetachmentRule::KeepRelative);UFUNCTIONBlueprintCallableCategory=TransformationDetaches the RootComponent of this Actor from any SceneComponent it is currently attached to. |
| DetachFromActor | void DetachFromActor(const FDetachmentTransformRules& DetachmentRules);Detaches the RootComponent of this Actor from any SceneComponent it is currently attached to. |
| DetachAllSceneComponents | void DetachAllSceneComponents(class USceneComponent* InParentComponent, const FDetachmentTransformRules& DetachmentRules);Detaches all SceneComponents in this Actor from the supplied parent SceneComponent. |
| ActorHasTag | bool ActorHasTag(FName Tag) const;UFUNCTIONBlueprintCallableCategory=ActorSee if this actor's Tags array contains the supplied name tag |
| GetActorTimeDilation | float GetActorTimeDilation() const;UFUNCTIONBlueprintCallableCategory=Actorfloat GetActorTimeDilation(const UWorld& ActorWorld) const;Misc Blueprint support |
| AddTickPrerequisiteActor | virtual void AddTickPrerequisiteActor(AActor* PrerequisiteActor);UFUNCTIONBlueprintCallableCategory=Actor|TickMake this actor tick after PrerequisiteActor. This only applies to this actor's tick function; dependencies for owned components must be set up separately if desired. |
| AddTickPrerequisiteComponent | virtual void AddTickPrerequisiteComponent(UActorComponent* PrerequisiteComponent);UFUNCTIONBlueprintCallableCategory=Actor|TickMake this actor tick after PrerequisiteComponent. This only applies to this actor's tick function; dependencies for owned components must be set up separately if desired. |
| RemoveTickPrerequisiteActor | virtual void RemoveTickPrerequisiteActor(AActor* PrerequisiteActor);UFUNCTIONBlueprintCallableCategory=Actor|TickRemove tick dependency on PrerequisiteActor. |
| RemoveTickPrerequisiteComponent | virtual void RemoveTickPrerequisiteComponent(UActorComponent* PrerequisiteComponent);UFUNCTIONBlueprintCallableCategory=Actor|TickRemove tick dependency on PrerequisiteComponent. |
| GetTickableWhenPaused | bool GetTickableWhenPaused();UFUNCTIONBlueprintCallableCategory=Actor|TickGets whether this actor can tick when paused. |
| SetTickableWhenPaused | void SetTickableWhenPaused(bool bTickableWhenPaused);UFUNCTIONBlueprintCallableCategory=Actor|TickSets whether this actor can tick when paused. |
| GetGameTimeSinceCreation | float GetGameTimeSinceCreation() const;UFUNCTIONBlueprintPureCategory=ActorThe number of seconds (in game time) since this Actor was created, relative to Get Game Time In Seconds. |
| ReceiveBeginPlay | void ReceiveBeginPlay();protectedUFUNCTIONBlueprintImplementableEventEvent when play begins for this actor. |
| BeginPlay | virtual void BeginPlay();protectedOverridable native event for when play begins for this actor. |
| ReceiveEndPlay | void ReceiveEndPlay(EEndPlayReason::Type EndPlayReason);protectedUFUNCTIONBlueprintImplementableEventEvent to notify blueprints this actor is being deleted or removed from a level. |
| EndPlay | virtual void EndPlay(const EEndPlayReason::Type EndPlayReason);protectedOverridable function called whenever this actor is being removed from a level |
| DispatchBeginPlay | void DispatchBeginPlay(bool bFromLevelStreaming = false);Initiate a begin play call on this Actor, will handle calling in the correct order. |
| IsActorInitialized | bool IsActorInitialized() const;Returns whether an actor has been initialized for gameplay |
| IsActorBeginningPlay | bool IsActorBeginningPlay() const;Returns whether an actor is in the process of beginning play |
| HasActorBegunPlay | bool HasActorBegunPlay() const;Returns whether an actor has had BeginPlay called on it (and not subsequently had EndPlay called) |
| IsActorBeginningPlayFromLevelStreaming | bool IsActorBeginningPlayFromLevelStreaming() const;Returns whether an actor is beginning play in DispatchBeginPlay() during level streaming (which includes initial level load). |
| IsActorBeingDestroyed | bool IsActorBeingDestroyed() const;UFUNCTIONBlueprintCallableCategory=GameReturns true if this actor is currently being destroyed, some gameplay events may be unsafe |
| HasActorRegisteredAllComponents | bool HasActorRegisteredAllComponents() const;Returns bHasRegisteredAllComponents which indicates whether this actor has registered all their components without unregisatering all of them them. bHasRegisteredAllComponents is set true just before… |
| SetHasActorRegisteredAllComponents | void SetHasActorRegisteredAllComponents();Sets bHasRegisteredAllComponents true. bHasRegisteredAllComponents must be set true just prior to calling PostRegisterAllComponents(). |
| ReceiveAnyDamage | void ReceiveAnyDamage(float Damage, const class UDamageType* DamageType, class AController* InstigatedBy, AActor* DamageCauser);UFUNCTIONBlueprintImplementableEventBlueprintAuthorityOnlyCategory=Game|DamageEvent when this actor takes ANY damage |
| ReceiveRadialDamage | void ReceiveRadialDamage(float DamageReceived, const class UDamageType* DamageType, FVector Origin, const struct FHitResult& HitInfo, class AController* InstigatedBy, AActor* DamageCauser);UFUNCTIONBlueprintImplementableEventBlueprintAuthorityOnlyCategory=Game|DamageEvent when this actor takes RADIAL damage |
| ReceivePointDamage | 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);UFUNCTIONBlueprintImplementableEventBlueprintAuthorityOnlyCategory=Game|DamageEvent when this actor takes POINT damage |
| ReceiveTick | void ReceiveTick(float DeltaSeconds);UFUNCTIONBlueprintImplementableEventEvent called every frame, if ticking is enabled |
| ReceiveAsyncPhysicsTick | void ReceiveAsyncPhysicsTick(float DeltaSeconds, float SimSeconds);UFUNCTIONBlueprintImplementableEventEvent called every physics tick if bAsyncPhysicsTickEnabled is true |
| NotifyActorBeginOverlap | virtual void NotifyActorBeginOverlap(AActor* OtherActor);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. |
| ReceiveActorBeginOverlap | void ReceiveActorBeginOverlap(AActor* OtherActor);UFUNCTIONBlueprintImplementableEventCategory=CollisionEvent 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. |
| NotifyActorEndOverlap | virtual void NotifyActorEndOverlap(AActor* OtherActor);Event when an actor no longer overlaps another actor, and they have separated. |
| ReceiveActorEndOverlap | void ReceiveActorEndOverlap(AActor* OtherActor);UFUNCTIONBlueprintImplementableEventCategory=CollisionEvent when an actor no longer overlaps another actor, and they have separated. |
| NotifyActorBeginCursorOver | virtual void NotifyActorBeginCursorOver();Event when this actor has the mouse moved over it with the clickable interface. |
| ReceiveActorBeginCursorOver | void ReceiveActorBeginCursorOver();UFUNCTIONBlueprintImplementableEventCategory=Mouse InputEvent when this actor has the mouse moved over it with the clickable interface. |
| NotifyActorEndCursorOver | virtual void NotifyActorEndCursorOver();Event when this actor has the mouse moved off of it with the clickable interface. |
| ReceiveActorEndCursorOver | void ReceiveActorEndCursorOver();UFUNCTIONBlueprintImplementableEventCategory=Mouse InputEvent when this actor has the mouse moved off of it with the clickable interface. |
| NotifyActorOnClicked | virtual void NotifyActorOnClicked(FKey ButtonPressed = EKeys::LeftMouseButton);Event when this actor is clicked by the mouse when using the clickable interface. |
| ReceiveActorOnClicked | void ReceiveActorOnClicked(FKey ButtonPressed = EKeys::LeftMouseButton);UFUNCTIONBlueprintImplementableEventCategory=Mouse InputEvent when this actor is clicked by the mouse when using the clickable interface. |
| NotifyActorOnReleased | 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. |
| ReceiveActorOnReleased | void ReceiveActorOnReleased(FKey ButtonReleased = EKeys::LeftMouseButton);UFUNCTIONBlueprintImplementableEventCategory=Mouse InputEvent when this actor is under the mouse when left mouse button is released while using the clickable interface. |
| NotifyActorOnInputTouchBegin | virtual void NotifyActorOnInputTouchBegin(const ETouchIndex::Type FingerIndex);Event when this actor is touched when click events are enabled. |
| ReceiveActorOnInputTouchBegin | void ReceiveActorOnInputTouchBegin(const ETouchIndex::Type FingerIndex);UFUNCTIONBlueprintImplementableEventCategory=Touch InputEvent when this actor is touched when click events are enabled. |
| NotifyActorOnInputTouchEnd | virtual void NotifyActorOnInputTouchEnd(const ETouchIndex::Type FingerIndex);Event when this actor is under the finger when untouched when click events are enabled. |
| ReceiveActorOnInputTouchEnd | void ReceiveActorOnInputTouchEnd(const ETouchIndex::Type FingerIndex);UFUNCTIONBlueprintImplementableEventCategory=Touch InputEvent when this actor is under the finger when untouched when click events are enabled. |
| NotifyActorOnInputTouchEnter | virtual void NotifyActorOnInputTouchEnter(const ETouchIndex::Type FingerIndex);Event when this actor has a finger moved over it with the clickable interface. |
| ReceiveActorOnInputTouchEnter | void ReceiveActorOnInputTouchEnter(const ETouchIndex::Type FingerIndex);UFUNCTIONBlueprintImplementableEventCategory=Touch InputEvent when this actor has a finger moved over it with the clickable interface. |
| NotifyActorOnInputTouchLeave | virtual void NotifyActorOnInputTouchLeave(const ETouchIndex::Type FingerIndex);Event when this actor has a finger moved off of it with the clickable interface. |
| ReceiveActorOnInputTouchLeave | void ReceiveActorOnInputTouchLeave(const ETouchIndex::Type FingerIndex);UFUNCTIONBlueprintImplementableEventCategory=Touch InputEvent when this actor has a finger moved off of it with the clickable interface. |
| GetOverlappingActors | void GetOverlappingActors(TArray<AActor*>& OverlappingActors, TSubclassOf<AActor> ClassFilter=nullptr) const;UFUNCTIONBlueprintCallableCategory=Collisionvoid GetOverlappingActors(TSet<AActor*>& OverlappingActors, TSubclassOf<AActor> ClassFilter=nullptr) const;Returns list of actors this actor is overlapping (any component overlapping any component). Does not return itself. |
| GetOverlappingComponents | void GetOverlappingComponents(TArray<UPrimitiveComponent*>& OverlappingComponents) const;UFUNCTIONBlueprintCallableCategory=Collisionvoid GetOverlappingComponents(TSet<UPrimitiveComponent*>& OverlappingComponents) const;Returns list of components this actor is overlapping. |
| NotifyHit | 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. This could happen due to things like Character movement, using Set Location with 'sweep' enabled, or physics simulation.… |
| ReceiveHit | void ReceiveHit(class UPrimitiveComponent* MyComp, AActor* Other, class UPrimitiveComponent* OtherComp, bool bSelfMoved, FVector HitLocation, FVector HitNormal, FVector NormalImpulse, const FHitResult& Hit);UFUNCTIONBlueprintImplementableEventCategory=CollisionEvent when this actor bumps into a blocking object, or blocks another actor that bumps into it. This could happen due to things like Character movement, using Set Location with 'sweep' enabled, or physics simulation.… |
| SetLifeSpan | virtual void SetLifeSpan(float InLifespan);UFUNCTIONBlueprintCallableCategory=ActorSet the lifespan of this actor. When it expires the object will be destroyed. If requested lifespan is 0, the timer is cleared and the actor will not be destroyed. |
| GetLifeSpan | virtual float GetLifeSpan() const;UFUNCTIONBlueprintCallableCategory=ActorGet the remaining lifespan of this actor. If zero is returned the actor lives forever. |
| UserConstructionScript | void UserConstructionScript();UFUNCTIONBlueprintImplementableEventConstruction script, the place to spawn components and do other setup. |
| Destroy | bool Destroy(bool bNetForce = false, bool bShouldModifyLevel = true);Destroy this actor. Returns true if the actor is destroyed or already marked for destruction, false if indestructible. Destruction is latent. It occurs at the end of the tick. |
| ReceiveDestroyed | void ReceiveDestroyed();UFUNCTIONBlueprintImplementableEventCalled when the actor has been explicitly destroyed. |
| CheckDefaultSubobjectsInternal | virtual bool CheckDefaultSubobjectsInternal() const override; |
| PostInitProperties | virtual void PostInitProperties() override; |
| ProcessEvent | virtual void ProcessEvent(UFunction* Function, void* Parameters) override; |
| GetFunctionCallspace | virtual int32 GetFunctionCallspace(UFunction* Function, FFrame* Stack) override; |
| CallRemoteFunction | virtual bool CallRemoteFunction(UFunction* Function, void* Parameters, FOutParmRec* OutParms, FFrame* Stack) override; |
| Serialize | virtual void Serialize(FArchive& Ar) override; |
| PostLoad | virtual void PostLoad() override; |
| PostLoadSubobjects | virtual void PostLoadSubobjects(FObjectInstancingGraph* OuterInstanceGraph) override; |
| PostMigrate | virtual void PostMigrate(const struct FUObjectMigrationContext& MigrationContext) override; |
| IsMigrationRoot | virtual bool IsMigrationRoot() const override; |
| BeginDestroy | virtual void BeginDestroy() override; |
| IsReadyForFinishDestroy | virtual bool IsReadyForFinishDestroy() override; |
| Rename | virtual bool Rename(const TCHAR* NewName=nullptr, UObject* NewOuter=nullptr, ERenameFlags Flags=REN_None) override; |
| PostRename | virtual void PostRename(UObject* OldOuter, const FName OldName) override; |
| CanBeInCluster | virtual bool CanBeInCluster() const override; |
| IsEditorOnly | virtual bool IsEditorOnly() const override; |
| IsEditorOnlyLoadedInPIE | virtual bool IsEditorOnlyLoadedInPIE() const; |
| IsRuntimeOnly | virtual bool IsRuntimeOnly() const; |
| IsAsset | virtual bool IsAsset() const override; |
| PreSaveRoot | virtual void PreSaveRoot(FObjectPreSaveRootContext ObjectSaveContext) override; |
| PostSaveRoot | virtual void PostSaveRoot(FObjectPostSaveRootContext ObjectSaveContext) override; |
| PreSave | virtual void PreSave(FObjectPreSaveContext ObjectSaveContext) override; |
| IsMainPackageActor | bool IsMainPackageActor() const;Used to check if Actor is the main actor of a package (currently Child Actors are not) |
| PreDuplicateFromRoot | virtual void PreDuplicateFromRoot(FObjectDuplicationParameters& DupParams); |
| PreSaveFromRoot | virtual void PreSaveFromRoot(FObjectPreSaveRootContext ObjectSaveContext); |
| PostSaveFromRoot | virtual void PostSaveFromRoot(FObjectPostSaveRootContext ObjectSaveContext); |
| GatherCurrentMovement | virtual void GatherCurrentMovement();Property Replication Fills ReplicatedMovement property |
| IsOwnedBy | inline bool IsOwnedBy(const AActor* TestOwner) const;See if this actor is owned by TestOwner. |
| GetRootComponent | USceneComponent* GetRootComponent() const;Returns this actor's root component. |
| GetDefaultAttachComponent | virtual USceneComponent* GetDefaultAttachComponent() const;Returns this actor's default attachment component for attaching children to |
| SetRootComponent | bool SetRootComponent(USceneComponent* NewRootComponent);Sets root component to be the specified component. NewRootComponent's owner should be this actor. |
| GetActorTransform | const FTransform& GetActorTransform() const;Returns the transform of the RootComponent of this Actor |
| GetActorLocation | FVector GetActorLocation() const;Returns the location of the RootComponent of this Actor |
| GetActorRotation | FRotator GetActorRotation() const;Returns the rotation of the RootComponent of this Actor |
| GetActorScale | FVector GetActorScale() const;Returns the scale of the RootComponent of this Actor |
| GetActorQuat | FQuat GetActorQuat() const;Returns the quaternion of the RootComponent of this Actor |
| ApplyWorldOffset | virtual void ApplyWorldOffset(const FVector& InOffset, bool bWorldShift);Relations |
| IsLevelBoundsRelevant | virtual bool IsLevelBoundsRelevant() const;Indicates whether this actor should participate in level bounds calculations |
| IsHLODRelevant | virtual bool IsHLODRelevant() const;Indicates whether this actor contributes to the HLOD generation. |
| HasHLODRelevantComponents | virtual bool HasHLODRelevantComponents() const;Indicates whether this actor can provide HLOD relevant components. |
| GetHLODRelevantComponents | virtual TArray<UActorComponent*> GetHLODRelevantComponents() const;Return the list of components to use when building the HLOD representation of this actor. |
| SetLODParent | void SetLODParent(class UPrimitiveComponent* InLODParent, float InParentDrawDistance);Set LOD Parent component for all of our components, normally associated with an ALODActor. |
| GetNetPriority | 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 |
| GetReplayPriority | 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. |
| GetNetDormancy | 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. Only checked for DORM_DormantPartial |
| OnActorChannelOpen | 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) |
| UseShortConnectTimeout | virtual bool UseShortConnectTimeout() const;Used by the net connection to determine if a net owning actor should switch to using the shortened timeout value |
| OnSerializeNewActor | virtual void OnSerializeNewActor(class FOutBunch& OutBunch);SerializeNewActor has just been called on the actor before network replication (server side) |
| OnNetCleanup | virtual void OnNetCleanup(class UNetConnection* Connection);Handles cleaning up the associated Actor when killing the connection |
| ExchangeNetRoles | void ExchangeNetRoles(bool bRemoteOwner);Swaps Role and RemoteRole if client |
| SwapRoles | void SwapRoles();Calls this to swap the Role and RemoteRole. Only call this if you know what you're doing! |
| RegisterAllActorTickFunctions | 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 |
| SetActorTickEnabled | virtual void SetActorTickEnabled(bool bEnabled);UFUNCTIONBlueprintCallableCategory=Actor|TickSet this actor's tick functions to be enabled or disabled. Only has an effect if the function is registered This only modifies the tick function on actor itself |
| IsActorTickEnabled | bool IsActorTickEnabled() const;UFUNCTIONBlueprintCallableCategory=Actor|TickReturns whether this actor has tick enabled or not |
| SetActorTickInterval | void SetActorTickInterval(float TickInterval);UFUNCTIONBlueprintCallableCategory=Actor|TickSets the tick interval of this actor's primary tick function. Will not enable a disabled tick function. Takes effect on next tick. |
| GetActorTickInterval | float GetActorTickInterval() const;UFUNCTIONBlueprintCallableCategory=Actor|TickReturns the tick interval of this actor's primary tick function |
| TickActor | virtual void TickActor(float DeltaTime, enum ELevelTick TickType, FActorTickFunction& ThisTickFunction);Dispatches the once-per frame Tick() function for this actor |
| AsyncPhysicsTickActor | virtual void AsyncPhysicsTickActor(float DeltaTime, float SimTime);Override this function to implement custom logic to be executed every physics step. bAsyncPhysicsTick must be set to true. |
| PostActorCreated | 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. This is… |
| LifeSpanExpired | virtual void LifeSpanExpired();Called when the lifespan of an actor expires (if it has one). |
| PreNetReceive | virtual void PreNetReceive() override;Always called immediately before properties are received from the remote. |
| PostNetReceive | virtual void PostNetReceive() override;Always called immediately after properties are received from the remote. |
| PostNetReceiveRole | virtual void PostNetReceiveRole();Always called immediately after a new Role is received from the remote. |
| IsNameStableForNetworking | virtual bool IsNameStableForNetworking() const override;IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network |
| IsSupportedForNetworking | virtual bool IsSupportedForNetworking() const override;IsSupportedForNetworking means an object can be referenced over the network |
| GetSubobjectsWithStableNamesForNetworking | virtual void GetSubobjectsWithStableNamesForNetworking(TArray<UObject*> &ObjList) override;Returns a list of sub-objects that have stable names for networking |
| PostNetInit | virtual void PostNetInit();Always called immediately after spawning and reading in replicated properties |
| OnRep_ReplicatedMovement | virtual void OnRep_ReplicatedMovement();UFUNCTIONReplicatedMovement struct replication event |
| PostNetReceiveLocationAndRotation | virtual void PostNetReceiveLocationAndRotation();Update location and rotation from ReplicatedMovement. Not called for simulated physics! |
| PostNetReceiveVelocity | virtual void PostNetReceiveVelocity(const FVector& NewVelocity);Update velocity - typically from ReplicatedMovement, not called for simulated physics! |
| PostNetReceivePhysicState | virtual void PostNetReceivePhysicState();Update and smooth simulated physic state, replaces PostNetReceiveLocation() and PostNetReceiveVelocity() |
| SetFakeNetPhysicsState | void SetFakeNetPhysicsState(bool bShouldSleep);Set the current state as a faked networked physics state for physics replication Limited for use with actors using EPhysicsReplicationMode::PredictiveInterpolation only. |
| SyncReplicatedPhysicsSimulation | void SyncReplicatedPhysicsSimulation();protectedSync IsSimulatingPhysics() with ReplicatedMovement.bRepPhysics |
| SetOwner | virtual void SetOwner(AActor* NewOwner);UFUNCTIONBlueprintCallableCategory=ActorSet the owner of this Actor, used primarily for network replication. |
| GetOwner | AActor* GetOwner() const;UFUNCTIONBlueprintCallableCategory=Actortemplate<class T> T* GetOwner() const;Get the owner of this Actor, used primarily for network replication. |
| CheckStillInWorld | virtual bool CheckStillInWorld();This will check to see if the Actor is still in the world. It will check things like the KillZ, outside world bounds, etc. and handle the situation. |
| ClearComponentOverlaps | void ClearComponentOverlaps();Actor overlap tracking |
| UpdateOverlaps | void UpdateOverlaps(bool bDoNotifies=true);Queries world and updates overlap detection state for this actor. |
| IsOverlappingActor | bool IsOverlappingActor(const AActor* Other) const;UFUNCTIONBlueprintCallableCategory=CollisionCheck whether any component of this Actor is overlapping any component of another Actor. |
| IsRootComponentStatic | bool IsRootComponentStatic() const;See if the root component has ModifyFrequency of MF_Static |
| IsRootComponentStationary | bool IsRootComponentStationary() const;See if the root component has Mobility of EComponentMobility::Stationary |
| IsRootComponentMovable | bool IsRootComponentMovable() const;See if the root component has Mobility of EComponentMobility::Movable |
| GetPhysicsVolume | virtual APhysicsVolume* GetPhysicsVolume() const;Get the physics volume that is currently applied to this Actor (there can only ever be one) |
| CanEverTick | bool CanEverTick() const;Actor ticking Accessor for the value of bCanEverTick |
| Tick | virtual void Tick(float DeltaSeconds);Function called every frame on this Actor. Override this function to implement custom logic to be executed every frame. Note that Tick is disabled by default, and you will need to check PrimaryActorTick.bCanEverTick… |
| ShouldTickIfViewportsOnly | virtual bool ShouldTickIfViewportsOnly() const;If true, actor is ticked even if TickType==LEVELTICK_ViewportsOnly |
| IsWithinNetRelevancyDistance | bool IsWithinNetRelevancyDistance(const FVector& SrcLocation) const;protectedDetermines whether or not the distance between the given SrcLocation and the Actor's location is within the net relevancy distance. Actors outside relevancy distance may not be replicated. |
| IsNetRelevantFor | 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 |
| IsReplayRelevantFor | 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 |
| IsRelevancyOwnerFor | 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 |
| PostSpawnInitialize | void PostSpawnInitialize(FTransform const& SpawnTransform, AActor* InOwner, APawn* InInstigator, bool bRemoteOwned, bool bNoFail, bool bDeferConstruction, ESpawnActorScaleMethod TransformScaleMethod = ESpawnActorScaleMethod::MultiplyWithRoot);Called after the actor is spawned in the world. Responsible for setting up actor for play. |
| FinishSpawning | void FinishSpawning(const FTransform& Transform, bool bIsDefaultTransform = false, const FComponentInstanceDataCache* InstanceDataCache = nullptr, ESpawnActorScaleMethod TransformScaleMethod = ESpawnActorScaleMethod::OverrideRootScale);Called to finish the spawning process, generally in the case of deferred spawning |
| PostActorConstruction | void PostActorConstruction();Called after the actor has run its construction. Responsible for finishing the actor spawn process. |
| PreInitializeComponents | virtual void PreInitializeComponents();Called right before components are initialized, only called during gameplay |
| PostInitializeComponents | virtual void PostInitializeComponents();Allow actors to initialize themselves on the C++ side after all of their components have been initialized, only called during gameplay |
| DispatchPhysicsCollisionHit | virtual void DispatchPhysicsCollisionHit(const struct FRigidBodyCollisionInfo& MyInfo, const struct FRigidBodyCollisionInfo& OtherInfo, const FCollisionImpactData& RigidCollisionData);Dispatches ReceiveHit virtual and OnComponentHit delegate |
| GetNetOwner | virtual const AActor* GetNetOwner() const;Return the actor responsible for replication, if any. Typically the player controller |
| GetNetOwningPlayer | virtual class UPlayer* GetNetOwningPlayer();Return the owning UPlayer (if any) of this actor if it's role is ROLE_Authority. This will be a local player, a net connection, or nullptr. |
| GetNetOwningPlayerAnyRole | virtual class UPlayer* GetNetOwningPlayerAnyRole();Return the owning UPlayer (if any) of this actor, regardless of it's current role. This will be a local player, a net connection, or nullptr. |
| GetNetConnection | virtual class UNetConnection* GetNetConnection() const;Get the owning connection used for communicating between client/server |
| DestroyNetworkActorHandled | 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 |
| GetNetMode | ENetMode GetNetMode() const;Get the network mode (dedicated server, client, standalone, etc) for this actor. |
| IsNetMode | bool IsNetMode(ENetMode Mode) const;Test whether net mode is the given mode. In optimized non-editor builds this can be more efficient than GetNetMode() because it can check the static build flags without considering PIE. |
| GetNetDriver | class UNetDriver* GetNetDriver() const;Returns the net driver that this actor is bound to, may be null |
| SetNetDormancy | void SetNetDormancy(ENetDormancy NewDormancy);UFUNCTIONBlueprintAuthorityOnlyBlueprintCallableCategory=NetworkingPuts actor in dormant networking state |
| FlushNetDormancy | void FlushNetDormancy();UFUNCTIONBlueprintAuthorityOnlyBlueprintCallableCategory=NetworkingForces dormant actor to replicate but doesn't change NetDormancy state (i.e., they will go dormant again if left dormant) |
| ForcePropertyCompare | void ForcePropertyCompare();Forces properties on this actor to do a compare for one frame (rather than share shadow state) |
| IsChildActor | bool IsChildActor() const;UFUNCTIONBlueprintCallableCategory=ActorReturns whether this Actor was spawned by a child actor component |
| IsSelectionParentOfAttachedActors | virtual bool IsSelectionParentOfAttachedActors() const;Returns whether this actor can select its attached actors |
| IsSelectionChild | virtual bool IsSelectionChild() const;Returns whether this Actor is part of another's actor selection |
| GetSelectionParent | virtual AActor* GetSelectionParent() const;Returns immediate selection parent |
| GetRootSelectionParent | virtual AActor* GetRootSelectionParent() const;Returns top most selection parent |
| SupportsSubRootSelection | virtual bool SupportsSubRootSelection() const;Returns true if actor can be selected as a sub selection of its root selection parent |
| IsActorOrSelectionParentSelected | bool IsActorOrSelectionParentSelected() const;Returns if actor or selection parent is selected |
| PushSelectionToProxies | virtual void PushSelectionToProxies();Push Selection to actor |
| GetAllChildActors | void GetAllChildActors(TArray<AActor*>& ChildActors, bool bIncludeDescendants = true) const;UFUNCTIONBlueprintCallableCategory=ActorReturns a list of all actors spawned by our Child Actor Components, including children of children. This does not return the contents of the Children array |
| GetParentComponent | UChildActorComponent* GetParentComponent() const;UFUNCTIONBlueprintCallableCategory=ActorIf this Actor was created by a Child Actor Component returns that Child Actor Component |
| GetParentActor | AActor* GetParentActor() const;UFUNCTIONBlueprintCallableCategory=ActorIf this Actor was created by a Child Actor Component returns the Actor that owns that Child Actor Component |
| RegisterAllComponents | virtual void RegisterAllComponents();Ensure that all the components in the Components array are registered |
| PreRegisterAllComponents | virtual void PreRegisterAllComponents();Called before all the components in the Components array are registered, called both in editor and during gameplay |
| PostRegisterAllComponents | virtual void PostRegisterAllComponents();Called after all the components in the Components array are registered, called both in editor and during gameplay. bHasRegisteredAllComponents must be set true prior to calling this function. |
| HasDeferredComponentRegistration | bool HasDeferredComponentRegistration() const;Returns true if Actor has deferred the RegisterAllComponents() call at spawn time (e.g. pending Blueprint SCS execution to set up a scene root component). |
| HasValidRootComponent | bool HasValidRootComponent() const;Returns true if Actor has a registered root component |
| UnregisterAllComponents | virtual void UnregisterAllComponents(bool bForReregister = false);Unregister all currently registered components |
| PostUnregisterAllComponents | virtual void PostUnregisterAllComponents();Called after all currently registered components are cleared |
| ReregisterAllComponents | virtual void ReregisterAllComponents();Will reregister all components on this actor. Does a lot of work - should only really be used in editor, generally use UpdateComponentTransforms or MarkComponentsRenderStateDirty. |
| HandleRegisterComponentWithWorld | void HandleRegisterComponentWithWorld(UActorComponent* Component);Finish initializing the component and register tick functions and beginplay if it's the proper time to do so. |
| IncrementalRegisterComponents | bool IncrementalRegisterComponents(int32 NumComponentsToRegister, FRegisterComponentContext* Context = nullptr);Incrementally registers components associated with this actor, used during level streaming |
| MarkComponentsRenderStateDirty | void MarkComponentsRenderStateDirty();Flags all component's render state as dirty |
| UpdateComponentTransforms | void UpdateComponentTransforms();Update all components transforms |
| UpdateComponentVisibility | void UpdateComponentVisibility();Update all components visibility state |
| InitializeComponents | void InitializeComponents();Iterate over components array and call InitializeComponent, which happens once per actor |
| UninitializeComponents | void UninitializeComponents();Iterate over components array and call UninitializeComponent, called when the actor is ending play |
| DrawDebugComponents | void DrawDebugComponents(FColor const& BaseColor=FColor::White) const;Debug rendering to visualize the component tree for this actor. |
| MarkComponentsAsGarbage | virtual void MarkComponentsAsGarbage(bool bModify = true);Called to mark all components as garbage when the actor is being destroyed |
| IsPendingKillPending | inline bool IsPendingKillPending() const;Returns true if this actor has begun the destruction process. This is set to true in UWorld::DestroyActor, after the network connection has been closed but before any other shutdown has been performed. |
| InvalidateLightingCache | void InvalidateLightingCache();Invalidate lighting cache with default options. |
| InvalidateLightingCacheDetailed | virtual void InvalidateLightingCacheDetailed(bool bTranslationOnly);Invalidates anything produced by the last lighting build. |
| TeleportTo | 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. The result of this function is independent of the actor's current location and rotation. If the actor doesn't fit exactly at the location… |
| K2_TeleportTo | bool K2_TeleportTo(FVector DestLocation, FRotator DestRotation);UFUNCTIONBlueprintCallableCategory=TransformationTeleport this actor to a new location. If the actor doesn't fit exactly at the location specified, tries to slightly move it out of walls and such. |
| TeleportSucceeded | virtual void TeleportSucceeded(bool bIsATest);Called from TeleportTo() when teleport succeeds |
| ActorLineTraceSingle | 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 |
| ActorGetDistanceToCollision | float ActorGetDistanceToCollision(const FVector& Point, ECollisionChannel TraceChannel, FVector& ClosestPointOnCollision, UPrimitiveComponent** OutPrimitiveComponent = nullptr) const;returns Distance to closest Body Instance surface. Checks against all components of this Actor having valid collision and blocking TraceChannel. |
| IsInLevel | bool IsInLevel(const class ULevel *TestLevel) const;Returns true if this actor is contained by TestLevel. |
| GetLevel | ULevel* GetLevel() const;UFUNCTIONBlueprintCallableCategory=LevelReturn the ULevel that this Actor is part of. |
| GetLevelTransform | FTransform GetLevelTransform() const;UFUNCTIONBlueprintCallableCategory=LevelReturn the FTransform of the level this actor is a part of. |
| ClearCrossLevelReferences | virtual void ClearCrossLevelReferences();Do anything needed to clear out cross level references; Called from ULevel::PreSave |
| RouteEndPlay | void RouteEndPlay(const EEndPlayReason::Type EndPlayReason);Non-virtual function to evaluate which portions of the EndPlay process should be dispatched for each actor |
| IsBasedOnActor | 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 |
| IsAttachedTo | 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 |
| GetPlacementExtent | FVector GetPlacementExtent() const;Get the extent used when placing this actor in the editor, used for 'pulling back' hit. |
| ResetPropertiesForConstruction | void ResetPropertiesForConstruction();Reset private properties to defaults, and all FRandomStream structs in this Actor, so they will start their sequence of random numbers again. |
| HasNonTrivialUserConstructionScript | bool HasNonTrivialUserConstructionScript() const;Returns true if the actor's class has a non trivial user construction script. |
| DebugShowComponentHierarchy | void DebugShowComponentHierarchy(const TCHAR* Info, bool bShowPosition = true);Debug helper to show the component hierarchy of this actor. |
| DebugShowOneComponentHierarchy | void DebugShowOneComponentHierarchy(USceneComponent* SceneComp, int32& NestLevel, bool bShowPosition);Debug helper for showing the component hierarchy of one component |
| ExecuteConstruction | bool ExecuteConstruction(const FTransform& Transform, const struct FRotationConversionCache* TransformRotationCache, const class FComponentInstanceDataCache* InstanceDataCache, bool bIsDefaultTransform = false, ESpawnActorScaleMethod TransformScaleMethod = ESpawnActorScaleMethod::OverrideRootScale);Run any construction script for this Actor. Will call OnConstruction. |
| OnConstruction | virtual void OnConstruction(const FTransform& Transform);Called when an instance of this class is placed (in editor) or spawned. |
| FinishAndRegisterComponent | void FinishAndRegisterComponent(UActorComponent* Component);Helper function to register the specified component, and add it to the serialized components array |
| CreateComponentFromTemplate | UActorComponent* CreateComponentFromTemplate(UActorComponent* Template, const FName InName = NAME_None);Util to create a component based on a template |
| CreateComponentFromTemplateData | UActorComponent* CreateComponentFromTemplateData(const struct FBlueprintCookedComponentInstancingData* TemplateData, const FName InName = NAME_None); |
| DestroyConstructedComponents | void DestroyConstructedComponents();Destroys the constructed components. |
| RegisterReplicationFragments | virtual void RegisterReplicationFragments(UE::Net::FFragmentRegistrationContext& Context, UE::Net::EFragmentRegistrationFlags RegistrationFlags) override; |
| BeginReplication | virtual void BeginReplication();void BeginReplication(const FActorReplicationParams& Params);protectedCalled for all Actors set to replicate during BeginPlay, It will also be called if SetReplicates(true) is called and the object is not already replicating |
| EndReplication | virtual void EndReplication(EEndPlayReason::Type EndPlayReason);Called when we want to end replication for this actor, typically called from EndPlay() for actors that should be replicated during their lifespan |
| UpdateOwningNetConnection | void UpdateOwningNetConnection();protectedPushes the owning NetConnection for the actor and all of its children to the replication system. This information decides whether properties with owner conditionals are replicated or not. |
| UpdateReplicatePhysicsCondition | void UpdateReplicatePhysicsCondition();protectedUpdates the ReplicatePhysics condition. That information needs to be pushed to the ReplicationSystem. |
| RegisterActorTickFunctions | virtual void RegisterActorTickFunctions(bool bRegister);protectedVirtual call chain to register all tick functions for the actor class hierarchy |
| ProcessUserConstructionScript | void ProcessUserConstructionScript();protectedRuns UserConstructionScript, delays component registration until it's complete. |
| CheckActorComponents | bool CheckActorComponents() const;protectedChecks components for validity, implemented in AActor |
| PostCreateBlueprintComponent | void PostCreateBlueprintComponent(UActorComponent* NewActorComp);protectedCalled after instancing a new Blueprint Component from either a template or cooked data. |
| CheckComponentInstanceName | void CheckComponentInstanceName(const FName InName);Checks for and resolve any name conflicts prior to instancing a new Blueprint Component. |
| GetAttachParentActor | AActor* GetAttachParentActor() const;UFUNCTIONBlueprintPureCategory=ActorWalk up the attachment chain from RootComponent until we encounter a different actor, and return it. If we are not attached to a component in a different actor, returns nullptr |
| GetAttachParentSocketName | FName GetAttachParentSocketName() const;UFUNCTIONBlueprintPureCategory=ActorWalk up the attachment chain from RootComponent until we encounter a different actor, and return the socket name in the component. If we are not attached to a component in a different actor, returns NAME_None |
| ForEachAttachedActors | void ForEachAttachedActors(TFunctionRef<bool(class AActor*)> Functor) const;Call a functor for Actors which are attached directly to a component in this actor. Functor should return true to carry on, false to abort. |
| GetAttachedActors | void GetAttachedActors(TArray<AActor*>& OutActors, bool bResetArray = true, bool bRecursivelyIncludeAttachedActors = false) const;UFUNCTIONBlueprintPureCategory=ActorFind all Actors which are attached directly to a component in this actor |
| SetTickGroup | void SetTickGroup(ETickingGroup NewTickGroup);UFUNCTIONBlueprintCallableCategory=Actor|TickSets the ticking group for this actor. |
| Destroyed | 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 |
| DispatchBlockingHit | void DispatchBlockingHit(UPrimitiveComponent* MyComp, UPrimitiveComponent* OtherComp, bool bSelfMoved, FHitResult const& Hit);Call ReceiveHit, as well as delegates on Actor and Component |
| FellOutOfWorld | virtual void FellOutOfWorld(const class UDamageType& dmgType);Called when the actor falls out of the world 'safely' (below KillZ and such) |
| OutsideWorldBounds | virtual void OutsideWorldBounds();Called when the Actor is outside the hard limit on world bounds |
| GetComponentsBoundingBox | virtual FBox GetComponentsBoundingBox(bool bNonColliding = false, bool bIncludeFromChildActors = false) const;Returns the world space bounding box of all components in this Actor. |
| CalculateComponentsBoundingBoxInLocalSpace | virtual FBox CalculateComponentsBoundingBoxInLocalSpace(bool bNonColliding = false, bool bIncludeFromChildActors = false) const;Calculates the actor space bounding box of all components in this Actor. This is slower than GetComponentsBoundingBox(), because the local bounds of the components are not cached -- they are recalculated every time… |
| GetComponentsBoundingCylinder | 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. |
| GetSimpleCollisionCylinder | 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). If IsRootComponentCollisionRegistered() returns true, just returns its bounding cylinder, otherwise… |
| GetSimpleCollisionRadius | float GetSimpleCollisionRadius() const;Returns the radius of the collision cylinder from GetSimpleCollisionCylinder(). |
| GetSimpleCollisionHalfHeight | float GetSimpleCollisionHalfHeight() const;Returns the half height of the collision cylinder from GetSimpleCollisionCylinder(). |
| GetSimpleCollisionCylinderExtent | FVector GetSimpleCollisionCylinderExtent() const;Returns collision extents vector for this Actor, based on GetSimpleCollisionCylinder(). |
| IsRootComponentCollisionRegistered | virtual bool IsRootComponentCollisionRegistered() const;Returns true if the root component is registered and has collision enabled. |
| TornOff | virtual void TornOff();Networking - called on client when actor is torn off (bTearOff==true), meaning it's no longer replicated to clients. |
| GetComponentsCollisionResponseToChannel | virtual ECollisionResponse GetComponentsCollisionResponseToChannel(ECollisionChannel Channel) const;Collision/Physics functions. |
| DisableComponentsSimulatePhysics | void DisableComponentsSimulatePhysics();Stop all simulation from all components in this actor |
| GetWorldSettings | 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>() |
| CanBeBaseForCharacter | virtual bool CanBeBaseForCharacter(class APawn* Pawn) const;Return true if the given Pawn can be "based" on this actor (ie walk on it). |
| TakeDamage | virtual float TakeDamage(float DamageAmount, struct FDamageEvent const& DamageEvent, class AController* EventInstigator, AActor* DamageCauser);Apply damage to this actor. |
| InternalTakeRadialDamage | virtual float InternalTakeRadialDamage(float Damage, struct FRadialDamageEvent const& RadialDamageEvent, class AController* EventInstigator, AActor* DamageCauser);protected |
| InternalTakePointDamage | virtual float InternalTakePointDamage(float Damage, struct FPointDamageEvent const& PointDamageEvent, class AController* EventInstigator, AActor* DamageCauser);protected |
| BecomeViewTarget | virtual void BecomeViewTarget(class APlayerController* PC);Called when this actor becomes the given PlayerController's ViewTarget. Triggers the Blueprint event K2_OnBecomeViewTarget. |
| EndViewTarget | virtual void EndViewTarget(class APlayerController* PC);Called when this actor is no longer the given PlayerController's ViewTarget. Also triggers the Blueprint event K2_OnEndViewTarget. |
| K2_OnBecomeViewTarget | void K2_OnBecomeViewTarget(class APlayerController* PC);UFUNCTIONBlueprintImplementableEventCategory=ActorEvent called when this Actor becomes the view target for the given PlayerController. |
| K2_OnEndViewTarget | void K2_OnEndViewTarget(class APlayerController* PC);UFUNCTIONBlueprintImplementableEventCategory=ActorEvent called when this Actor is no longer the view target for the given PlayerController. |
| CalcCamera | virtual void CalcCamera(float DeltaTime, struct FMinimalViewInfo& OutResult);Calculate camera view point, when viewing this actor. |
| HasActiveCameraComponent | virtual bool HasActiveCameraComponent(bool bForceFindCamera = false) const;Returns true if the actor contains an active camera component |
| HasActivePawnControlCameraComponent | virtual bool HasActivePawnControlCameraComponent() const;Returns true if the actor contains an active locked to HMD camera component |
| GetHumanReadableName | virtual FString GetHumanReadableName() const;Returns the human readable string representation of an object. |
| Reset | virtual void Reset();Reset actor to initial state - used when restarting level without reloading. |
| K2_OnReset | void K2_OnReset();UFUNCTIONBlueprintImplementableEventCategory=ActorEvent called when this Actor is reset to its initial state - used when restarting level without reloading. |
| WasRecentlyRendered | bool WasRecentlyRendered(float Tolerance = 0.2f) const;UFUNCTIONCategory=RenderingBlueprintCallableReturns true if this actor has been rendered "recently", with a tolerance in seconds to define what "recent" means. e.g.: If a tolerance of 0.1 is used, this function will return true only if the actor was rendered… |
| GetLastRenderTime | virtual float GetLastRenderTime() const;Returns the most recent time any of this actor's components were rendered |
| ForceNetRelevant | virtual void ForceNetRelevant();Forces this actor to be net relevant if it is not already by default |
| ForceNetUpdate | virtual void ForceNetUpdate();UFUNCTIONBlueprintCallableCategory=NetworkingForce actor to be updated to clients/demo net drivers |
| PrestreamTextures | virtual void PrestreamTextures(float Seconds, bool bEnableStreaming, int32 CinematicTextureGroups = 0);UFUNCTIONBlueprintCallableCategory=RenderingCalls PrestreamTextures() for all the actor's meshcomponents. |
| GetActorEyesViewPoint | virtual void GetActorEyesViewPoint(FVector& OutLocation, FRotator& OutRotation) const;UFUNCTIONBlueprintCallableCategory=ActorReturns the point of view of the actor. Note that this doesn't mean the camera, but the 'eyes' of the actor. For example, for a Pawn, this would define the eye height location, and view rotation (which is different… |
| GetTargetLocation | virtual FVector GetTargetLocation(AActor* RequestedBy = nullptr) const;Returns the optimal location to fire weapons at this actor |
| PostRenderFor | virtual void PostRenderFor(class APlayerController* PC, class UCanvas* Canvas, FVector CameraPosition, FVector CameraDir);Hook to allow actors to render HUD overlays for themselves. Called from AHUD::DrawActorOverlays(). |
| IsInPersistentLevel | bool IsInPersistentLevel(bool bIncludeLevelStreamingPersistent = false) const;Returns whether this Actor is in the persistent level, i.e. not a sublevel |
| GetWorld | virtual UWorld* GetWorld() const override final;Getter for the cached world pointer, will return null if the actor is not actually spawned in a level |
| GetWorldTimerManager | class FTimerManager& GetWorldTimerManager() const;Get the timer instance from the actors world |
| GetGameInstance | class UGameInstance* GetGameInstance() const;template<class T> T* GetGameInstance() const;Gets the GameInstance that ultimately contains this actor. |
| IsNetStartupActor | bool IsNetStartupActor() const;Returns true if this is a replicated actor that was placed in the map |
| FindComponentByClass | virtual UActorComponent* FindComponentByClass(const TSubclassOf<UActorComponent> ComponentClass) const;template<class T> T* FindComponentByClass() const;Searches components array and returns first encountered component of the specified class, native version of GetComponentByClass |
| GetComponentByClass | UActorComponent* GetComponentByClass(TSubclassOf<UActorComponent> ComponentClass) const;UFUNCTIONBlueprintCallableCategory=Actortemplate<class T> T* GetComponentByClass() const;Searches components array and returns first encountered component of the specified class |
| K2_GetComponentsByClass | TArray<UActorComponent*> K2_GetComponentsByClass(TSubclassOf<UActorComponent> ComponentClass) const;UFUNCTIONBlueprintCallableCategory=ActorGets all the components that inherit from the given class. Currently returns an array of UActorComponent which must be cast to the correct type. This intended to only be used by blueprints. Use GetComponents() in C++. |
| FindComponentByTag | UActorComponent* FindComponentByTag(TSubclassOf<UActorComponent> ComponentClass, FName Tag) const;UFUNCTIONBlueprintCallableCategory=Actortemplate<class T> T* FindComponentByTag(const FName& Tag) const;Searches components array and returns first encountered component with a given tag. |
| GetComponentsByTag | TArray<UActorComponent*> GetComponentsByTag(TSubclassOf<UActorComponent> ComponentClass, FName Tag) const;UFUNCTIONBlueprintCallableCategory=ActorGets all the components that inherit from the given class with a given tag. |
| FindComponentByInterface | virtual UActorComponent* FindComponentByInterface(const TSubclassOf<UInterface> Interface) const;template<class T> T* FindComponentByInterface() const;Searches components array and returns first encountered component that implements the given interface. |
| GetComponentsByInterface | TArray<UActorComponent*> GetComponentsByInterface(TSubclassOf<UInterface> Interface) const;UFUNCTIONBlueprintCallableCategory=ActorGets all the components that implements the given interface. |
| ForEachComponent | template<class ComponentType, typename Func> void ForEachComponent(bool bIncludeFromChildActors, Func InFunc) const;template<typename Func> void ForEachComponent(bool bIncludeFromChildActors, Func InFunc) const;Calls the compile-time lambda on each component of the specified type |
| GetComponents | template<class AllocatorType, class ComponentType> void GetComponents(TSubclassOf<UActorComponent> ComponentClass, TArray<ComponentType*, AllocatorType>& OutComponents, bool bIncludeFromChildActors = false) const;template<class ComponentType, class AllocatorType> void GetComponents(TArray<ComponentType, AllocatorType>& OutComponents, bool bIncludeFromChildActors = false) const;template<class T, class AllocatorType> void GetComponents(TArray<T*, AllocatorType>& OutComponents, bool bIncludeFromChildActors = false) const;template<class T, class AllocatorType> void GetComponents(TArray<TObjectPtr<T>, AllocatorType>& OutComponents, bool bIncludeFromChildActors = false) const;template<class AllocatorType> void GetComponents(TArray<UActorComponent*, AllocatorType>& OutComponents, bool bIncludeFromChildActors = false) const;const TSet<UActorComponent*>& GetComponents() const;Get all components derived from specified ComponentClass and fill in the OutComponents array with the result. It's recommended to use TArrays with a TInlineAllocator to potentially avoid memory allocation costs.… |
| AddOwnedComponent | void AddOwnedComponent(UActorComponent* Component);Puts a component in to the OwnedComponents array of the Actor. The Component must be owned by the Actor or else it will assert In general this should not need to be called directly by anything other than… |
| RemoveOwnedComponent | void RemoveOwnedComponent(UActorComponent* Component);Removes a component from the OwnedComponents array of the Actor. In general this should not need to be called directly by anything other than UActorComponent functions |
| OwnsComponent | bool OwnsComponent(UActorComponent* Component) const;Utility function for validating that a component is correctly in its Owner's OwnedComponents array |
| ResetOwnedComponents | 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… |
| UpdateReplicatedComponent | void UpdateReplicatedComponent(UActorComponent* Component);Called when the replicated state of a component changes to update the Actor's cached ReplicatedComponents array |
| UpdateAllReplicatedComponents | void UpdateAllReplicatedComponents();Completely synchronizes the replicated components array so that it contains exactly the number of replicated components currently owned |
| AllowActorComponentToReplicate | virtual ELifetimeCondition AllowActorComponentToReplicate(const UActorComponent* ComponentToReplicate) const;Allows classes to control if a replicated component can actually be replicated or not in a specific actor class. You can also choose a netcondition to filter to whom the component is replicated to. Called on existing… |
| SetReplicatedComponentNetCondition | void SetReplicatedComponentNetCondition(const UActorComponent* ReplicatedComponent, ELifetimeCondition NetCondition);Change the network condition of a replicated component but only after BeginPlay. Using a network condition can allow you to filter to which client the component gets replicated to. |
| GetIsReplicated | bool GetIsReplicated() const;Returns whether replication is enabled or not. |
| GetReplicatedComponents | const TArray<UActorComponent*>& GetReplicatedComponents() const;Returns a constant reference to the replicated components set |
| AddReplicatedSubObject | void AddReplicatedSubObject(UObject* SubObject, ELifetimeCondition NetCondition = COND_None);Register a SubObject that will get replicated along with the actor. The subobject needs to be manually removed from the list before it gets deleted. |
| RemoveReplicatedSubObject | void RemoveReplicatedSubObject(UObject* SubObject);Unregister a SubObject to stop replicating it's properties to clients. This does not remove or delete it from connections where it was already replicated. By default a replicated subobject gets deleted on clients… |
| DestroyReplicatedSubObjectOnRemotePeers | void DestroyReplicatedSubObjectOnRemotePeers(UObject* SubObject);void DestroyReplicatedSubObjectOnRemotePeers(UActorComponent* OwnerComponent, UObject* SubObject);Stop replicating a subobject and tell actor channels to delete the replica of this subobject next time the Actor gets replicated. Note it is up to the caller to delete the local object on the authority. If you are… |
| TearOffReplicatedSubObjectOnRemotePeers | void TearOffReplicatedSubObjectOnRemotePeers(UObject* SubObject);void TearOffReplicatedSubObjectOnRemotePeers(UActorComponent* OwnerComponent, UObject* SubObject);Stop replicating a subobject and tell actor channels who spawned a replica of this subobject to release ownership over it. This means that on the remote connection the network engine will stop holding a reference to… |
| AddActorComponentReplicatedSubObject | void AddActorComponentReplicatedSubObject(UActorComponent* OwnerComponent, UObject* SubObject, ELifetimeCondition NetCondition = COND_None);Register a SubObject that will get replicated along with the actor component owning it. The subobject needs to be manually removed from the list before it gets deleted. |
| RemoveActorComponentReplicatedSubObject | void RemoveActorComponentReplicatedSubObject(UActorComponent* OwnerComponent, UObject* SubObject);Unregister a SubObject owned by an ActorComponent so it stops being replicated. |
| IsReplicatedSubObjectRegistered | bool IsReplicatedSubObjectRegistered(const UObject* SubObject) const;Tells if the object has been registered as a replicated subobject of this actor |
| IsReplicatedActorComponentRegistered | bool IsReplicatedActorComponentRegistered(const UActorComponent* ReplicatedComponent) const;Tells if the component has been registered as a replicated component |
| IsActorComponentReplicatedSubObjectRegistered | bool IsActorComponentReplicatedSubObjectRegistered(const UActorComponent* OwnerComponent, const UObject* SubObject) const;Tells if an object owned by a component has been registered as a replicated subobject of the component |
| AddInstanceComponent | void AddInstanceComponent(UActorComponent* Component);Adds a component to the instance components array |
| RemoveInstanceComponent | void RemoveInstanceComponent(UActorComponent* Component);Removes a component from the instance components array |
| ClearInstanceComponents | void ClearInstanceComponents(bool bDestroyComponents);Clears the instance components array |
| GetInstanceComponents | const TArray<UActorComponent*>& GetInstanceComponents() const;Returns the instance components array |
| MakeNoise | void MakeNoise(float Loudness=1.f, APawn* NoiseInstigator=nullptr, FVector NoiseLocation=FVector::ZeroVector, float MaxRange = 0.f, FName Tag = NAME_None);UFUNCTIONBlueprintCallableBlueprintAuthorityOnlyCategory=AINavigation/AI related functions |
| IsComponentRelevantForNavigation | virtual bool IsComponentRelevantForNavigation(UActorComponent* Component) const;Check if owned component should be relevant for navigation Allows implementing master switch to disable e.g. collision export in projectiles |
| DisplayDebug | virtual void DisplayDebug(class UCanvas* Canvas, const class FDebugDisplayInfo& DebugDisplay, float& YL, float& YPos);Debugging functions |
| IsHidden | bool IsHidden() const;Gets the literal value of bHidden. |
| SetHidden | void SetHidden(const bool bInHidden);Sets the value of bHidden without causing other side effects to this instance. |
| IsReplicatingMovement | bool IsReplicatingMovement() const;Gets the literal value of bReplicateMovement. |
| SetReplicatingMovement | void SetReplicatingMovement(bool bInReplicateMovement);Sets the value of bReplicateMovement without causing other side effects to this instance. |
| CanBeDamaged | bool CanBeDamaged() const;Gets the literal value of bCanBeDamaged. |
| SetCanBeDamaged | void SetCanBeDamaged(bool bInCanBeDamaged);Sets the value of bCanBeDamaged without causing other side effects to this instance. |
| SetRole | void SetRole(ENetRole InRole);Sets the value of Role without causing other side effects to this instance. |
| GetReplicatedMovement | const FRepMovement& GetReplicatedMovement() const;Gets the literal value of ReplicatedMovement. |
| GetReplicatedMovement_Mutable | FRepMovement& GetReplicatedMovement_Mutable();Gets a reference to ReplicatedMovement with the expectation that it will be modified. |
| SetReplicatedMovement | void SetReplicatedMovement(const FRepMovement& InReplicatedMovement);Sets the value of ReplicatedMovement without causing other side effects to this instance. |
| SetNetUpdateFrequency | void SetNetUpdateFrequency(float Frequency);UFUNCTIONSet the frequency at which this object will be considered for replication. |
| GetNetUpdateFrequency | float GetNetUpdateFrequency() const;UFUNCTIONGet the current frequency at which this object will be considered for replication. |
| SetMinNetUpdateFrequency | void SetMinNetUpdateFrequency(float MinFrequency);UFUNCTIONSet the frequency to throttle down to when replicated properties are changing infrequently. |
| GetMinNetUpdateFrequency | float GetMinNetUpdateFrequency() const;UFUNCTIONGet the frequency to throttle down to when replicated properties are changing infrequently. |
| SetNetCullDistanceSquared | void SetNetCullDistanceSquared(float DistanceSq);UFUNCTIONSet the square of the max distance from the client's viewpoint that this actor is relevant and will be replicated. |
| GetNetCullDistanceSquared | float GetNetCullDistanceSquared() const;UFUNCTIONGet the square of the max distance from the client's viewpoint that this actor is relevant and will be replicated. |
| SetInstigator | void SetInstigator(APawn* InInstigator);Sets the value of Instigator without causing other side effects to this instance. |
Static functions 14
| AddReferencedObjects | static void AddReferencedObjects(UObject* InThis, FReferenceCollector& Collector); |
| FindActorInPackage | static AActor* FindActorInPackage(UPackage* InPackage, bool bEvenIfPendingKill = true); |
| GetActorClassDefaultComponents | static void GetActorClassDefaultComponents(const TSubclassOf<AActor>& InActorClass, const TSubclassOf<UActorComponent>& InComponentClass, TArray<const UActorComponent*>& OutComponents);Fetches all the components of ActorClass's CDO, including the ones added via the BP editor (which AActor.GetComponents fails to do for CDOs). |
| GetActorClassDefaultComponent | static const UActorComponent* GetActorClassDefaultComponent(const TSubclassOf<AActor>& InActorClass, const TSubclassOf<UActorComponent>& InComponentClass);Fetches the first component of ActorClass's CDO which match the requested component class. Will include the components added via the BP editor (which AActor.GetComponents fails to do for CDOs). |
| GetActorClassDefaultComponentByName | static const UActorComponent* GetActorClassDefaultComponentByName(const TSubclassOf<AActor>& InActorClass, const TSubclassOf<UActorComponent>& InComponentClass, FName InComponentName);Get the component of ActorClass's CDO that matches the given object name. Will consider all components, including the ones added via the BP editor (which AActor.GetComponents fails to do for CDOs). |
| ForEachComponentOfActorClassDefault | static void ForEachComponentOfActorClassDefault(const TSubclassOf<AActor>& InActorClass, const TSubclassOf<UActorComponent>& InComponentClass, TFunctionRef<bool(const UActorComponent*)> InFunc);Iterate over the components of ActorClass's CDO, including the ones added via the BP editor (which AActor.GetComponents fails to return). |
| MakeNoiseImpl | static void MakeNoiseImpl(AActor* NoiseMaker, float Loudness, APawn* NoiseInstigator, const FVector& NoiseLocation, float MaxRange, FName Tag);Default Implementation of MakeNoise |
| SetMakeNoiseDelegate | static void SetMakeNoiseDelegate(const FMakeNoiseDelegate& NewDelegate);Modifies the global delegate used for handling MakeNoise |
| GetDebugName | static FString GetDebugName(const AActor* Actor);Retrieves actor's name used for logging, or string "NULL" if Actor is null |
| GetHiddenPropertyName | static const FName GetHiddenPropertyName();Gets the property name for bHidden. This exists so subclasses don't need to have direct access to the bHidden property so it can be made private later. |
| GetReplicateMovementPropertyName | static const FName GetReplicateMovementPropertyName();Gets the property name for bReplicateMovement. This exists so subclasses don't need to have direct access to the bReplicateMovement property so it can be made private later. |
| GetCanBeDamagedPropertyName | static const FName GetCanBeDamagedPropertyName();Gets the property name for bCanBeDamaged. This exists so subclasses don't need to have direct access to the bCanBeDamaged property so it can be made private later. |
| GetRolePropertyName | static const FName GetRolePropertyName();Gets the property name for Role. This exists so subclasses don't need to have direct access to the Role property so it can be made private later. |
| GetInstigatorPropertyName | static const FName GetInstigatorPropertyName();Gets the property name for Instigator. This exists so subclasses don't need to have direct access to the Instigator property so it can be made private later. |
Functions
Free functions 20
| Set | inline void FActorLastRenderTime::Set(AActor* InActor, float LastRenderTime); |
| GetPtr | inline FActorLastRenderTime* FActorLastRenderTime::GetPtr(AActor* InActor); |
| ExecuteTickHelper | template <typename ExecuteTickLambda> void FActorComponentTickFunction::ExecuteTickHelper(UActorComponent* Target, bool bTickInEditor, float DeltaTime, ELevelTick TickType, const ExecuteTickLambda& ExecuteTickFunc);Helper function for executing component tick functions using the same conditions as FActorTickFunction |
| TInlineComponentArray | template<class T, uint32 NumElements> TInlineComponentArray<T, NumElements>::TInlineComponentArray(const AActor* Actor, bool bIncludeFromChildActors) : Super(); |
| K2_GetActorLocation | FVector AActor::K2_GetActorLocation() const;Inlines |
| K2_GetActorRotation | FRotator AActor::K2_GetActorRotation() const; |
| K2_GetRootComponent | USceneComponent* AActor::K2_GetRootComponent() const; |
| GetActorForwardVector | FVector AActor::GetActorForwardVector() const; |
| GetActorUpVector | FVector AActor::GetActorUpVector() const; |
| GetActorRightVector | FVector AActor::GetActorRightVector() const; |
| GetSimpleCollisionRadius | float AActor::GetSimpleCollisionRadius() const; |
| GetSimpleCollisionHalfHeight | float AActor::GetSimpleCollisionHalfHeight() const; |
| GetSimpleCollisionCylinderExtent | FVector AActor::GetSimpleCollisionCylinderExtent() const; |
| GetActorEnableCollision | bool AActor::GetActorEnableCollision() const; |
| HasAuthority | bool AActor::HasAuthority() const; |
| GetOwner | |
| GetNetOwner | |
| GetRemoteRole | ENetRole AActor::GetRemoteRole() const; |
| GetNetMode | ENetMode AActor::GetNetMode() const; |
| IsNetMode | bool AActor::IsNetMode(ENetMode Mode) const; |