Header <Components/ActorComponent.h>
#include "Components/ActorComponent.h"Includes 18
<UObject/ObjectMacros.h> |
<UObject/UObjectGlobals.h> |
<UObject/Object.h> |
<Templates/SubclassOf.h> |
<Engine/EngineTypes.h> |
<Engine/EngineBaseTypes.h> |
<UObject/CoreNetTypes.h> |
<UObject/ScriptMacros.h> |
<Interfaces/Interface_AssetUserData.h> |
<UObject/StructOnScope.h> |
<PhysicsInterfaceDeclaresCore.h> |
<PropertyPairsMap.h> |
<ComponentInstanceDataCache.h> |
<Experimental/ConcurrentLinearAllocator.h> |
<Misc/ScopeRWLock.h> |
<Misc/Timeout.h> |
<Misc/TransactionallySafeRWLock.h> |
<Physics/Experimental/AsyncPhysicsStateProcessorInterface.h> |
Contents
UActorComponent | ActorComponent is the base class for components that define reusable behavior that can be added to different types of Actors. ActorComponents that have a transform are known as SceneComponents and those that can be… (uclass class : UObject) |
Functions | 14 free functions (namespace scope) |
class UActorComponent
class UActorComponent : public UObject, public IInterface_AssetUserData, public IAsyncPhysicsStateProcessorUCLASSDefaultToInstancedBlueprintTypeabstractconfig=EngineMinimalAPIActorComponent is the base class for components that define reusable behavior that can be added to different types of Actors. ActorComponents that have a transform are known as SceneComponents and those that can be…
Constructors 1
| UActorComponent | UActorComponent(const FObjectInitializer& ObjectInitializer = FObjectInitializer::Get());Default UObject constructor that takes an optional ObjectInitializer. |
Member functions 194
| GetUCSSerializationIndex | int32 GetUCSSerializationIndex() const;Returns the UCS serialization index. This can be an expensive operation in the editor if you are dealing with a component that was saved before this information was present and it needs to be calculated. |
| IsAsyncCreatePhysicsStateRunning | bool IsAsyncCreatePhysicsStateRunning() const;Whether asynchronous physics state creation is running or not. |
| IsAsyncDestroyPhysicsStateRunning | bool IsAsyncDestroyPhysicsStateRunning() const;Whether asynchronous physics state destruction is running or not. |
| GetMarkedForEndOfFrameUpdateState | uint32 GetMarkedForEndOfFrameUpdateState() const;Tracks whether the component has been added to one of the world's end of frame update lists |
| GetMarkedForPreEndOfFrameSync | uint32 GetMarkedForPreEndOfFrameSync() const;Tracks whether the component has been added to one of the world's end of frame update lists |
| DetermineUCSModifiedProperties | void DetermineUCSModifiedProperties();Initializes the list of properties that are modified by the UserConstructionScript |
| GetUCSModifiedProperties | void GetUCSModifiedProperties(TSet<const FProperty*>& ModifiedProperties) const;Returns the list of properties that are modified by the UserConstructionScript |
| RemoveUCSModifiedProperties | void RemoveUCSModifiedProperties(const TArray<FProperty*>& Properties);Removes specified properties from the list of UCS-modified properties |
| ClearUCSModifiedProperties | void ClearUCSModifiedProperties();Clears the component's UCS modified properties |
| IsEditableWhenInherited | bool IsEditableWhenInherited() const;True if this component can be modified when it was inherited from a parent actor class |
| HasBeenCreated | bool HasBeenCreated() const;Indicates that OnCreatedComponent has been called, but OnDestroyedComponent has not yet |
| HasBeenInitialized | bool HasBeenInitialized() const;Indicates that InitializeComponent has been called, but UninitializeComponent has not yet |
| IsReadyForReplication | bool IsReadyForReplication() const;Indicates that ReadyForReplication has been called |
| HasBegunPlay | bool HasBegunPlay() const;Indicates that BeginPlay has been called, but EndPlay has not yet |
| IsBeingDestroyed | bool IsBeingDestroyed() const;UFUNCTIONBlueprintCallableCategory=ComponentsReturns whether the component is in the process of being destroyed. |
| IsCreatedByConstructionScript | bool IsCreatedByConstructionScript() const;Returns true if instances of this component are created by either the user or simple construction script |
| OnRep_IsActive | virtual void OnRep_IsActive();UFUNCTIONHandles replication of active state, handles ticking by default but should be overridden as needed |
| GetOwner | AActor* GetOwner() const;UFUNCTIONBlueprintCallableCategory=Componentstemplate<class T> T* GetOwner() const;Follow the Outer chain to get the AActor that 'Owns' this component |
| GetWorld | virtual UWorld* GetWorld() const override final;Getter for the cached world pointer, will return null if the component is not actually spawned in a level |
| ComponentHasTag | bool ComponentHasTag(FName Tag) const;UFUNCTIONBlueprintCallableCategory=ComponentsSee if this component contains the supplied tag |
| Activate | virtual void Activate(bool bReset=false);UFUNCTIONBlueprintCallableCategory=Components|ActivationActivates the SceneComponent, should be overridden by native child classes. |
| Deactivate | virtual void Deactivate();UFUNCTIONBlueprintCallableCategory=Components|ActivationDeactivates the SceneComponent. |
| SetActive | virtual void SetActive(bool bNewActive, bool bReset=false);UFUNCTIONBlueprintCallableCategory=Components|ActivationSets whether the component is active or not |
| ToggleActive | virtual void ToggleActive();UFUNCTIONBlueprintCallableCategory=Components|ActivationToggles the active state of the component |
| IsActive | bool IsActive() const;UFUNCTIONBlueprintCallableCategory=Components|ActivationReturns whether the component is active or not |
| SetAutoActivate | virtual void SetAutoActivate(bool bNewAutoActivate);UFUNCTIONBlueprintCallableCategory=Components|ActivationSets whether the component should be auto activate or not. Only safe during construction scripts. |
| SetTickableWhenPaused | void SetTickableWhenPaused(bool bTickableWhenPaused);UFUNCTIONBlueprintCallableCategory=Components|TickSets whether this component can tick when paused. |
| CreatePhysicsState | void CreatePhysicsState(bool bAllowDeferral = false);Create any physics engine information for this component |
| DestroyPhysicsState | void DestroyPhysicsState();Shut down any physics engine structure for this component |
| SetNetAddressable | void SetNetAddressable();Networking This signifies the component can be ID'd by name over the network. This only needs to be called by engine code when constructing blueprint components. |
| SetIsReplicated | void SetIsReplicated(bool ShouldReplicate);UFUNCTIONBlueprintCallableCategory=ComponentsEnable or disable replication. This is the equivalent of RemoteRole for actors (only a bool is required for components) |
| GetIsReplicated | bool GetIsReplicated() const;Returns whether replication is enabled or not. |
| ReplicateSubobjects | virtual bool ReplicateSubobjects(class UActorChannel *Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags);Allows a component to replicate other subobject on the actor. Must return true if any data gets serialized into the bunch. This method is used only when bReplicateUsingRegisteredSubObjectList is false. Otherwise this… |
| IsUsingRegisteredSubObjectList | bool IsUsingRegisteredSubObjectList() const;Returns if this component is replicating subobjects via the registration list or via the virtual ReplicateSubObjects method. Note: the owning actor of this component must also have it's… |
| GetReplicationCondition | virtual ELifetimeCondition GetReplicationCondition() const;Returns the replication condition for the component. Only works if the actor owning the component has bReplicateUsingRegisteredSubObjectList enabled. |
| PreReplication | virtual void PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker);Called on the component right before replication occurs |
| GetComponentClassCanReplicate | virtual bool GetComponentClassCanReplicate() const;Returns true if this type of component can ever replicate, override to disable the default behavior |
| AddReplicatedSubObject | void AddReplicatedSubObject(UObject* SubObject, ELifetimeCondition NetCondition = COND_None);Register a SubObject that will get replicated along with the actor component. 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);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);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… |
| IsReplicatedSubObjectRegistered | bool IsReplicatedSubObjectRegistered(const UObject* SubObject) const;Tells if the object is registered to be replicated by this actor component. |
| IsNetSimulating | bool IsNetSimulating() const;Returns true if we are replicating and this client is not authoritative |
| GetOwnerRole | ENetRole GetOwnerRole() const;Get the network role of the Owner, or ROLE_None if there is no owner. |
| GetNetMode | ENetMode GetNetMode() const;Get the network mode (dedicated server, client, standalone, etc) for this component. |
| 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. |
| IsNetStartupComponent | bool IsNetStartupComponent() const;Returns true if this component was owned by a net startup actor during level load. |
| SetIsNetStartupComponent | void SetIsNetStartupComponent(const bool bInIsNetStartupComponent);This should only be called by the engine in ULevel::InitializeNetworkActors to initialize bIsNetStartupComponent. |
| OnEndOfFrameUpdateDuringTick | virtual void OnEndOfFrameUpdateDuringTick();Allows components to handle an EOF update happening mid tick. Can be used to block on in-flight async tasks etc. This should ensure the the component's tick is complete so that it's render update is correct. |
| OnPreEndOfFrameSync | virtual void OnPreEndOfFrameSync();Allows components to wait on outstanding tasks prior to sending EOF update data. Executed on Game Thread and may await tasks. |
| RegisterReplicationFragments | virtual void RegisterReplicationFragments(UE::Net::FFragmentRegistrationContext& Context, UE::Net::EFragmentRegistrationFlags RegistrationFlags) override;Register all replication fragments |
| BeginReplication | virtual void BeginReplication();Called when we want to start replicating this component, should not be called explicitly. |
| EndReplication | virtual void EndReplication();Tell component to end replication, should not be called explicitly. |
| ShouldActivate | virtual bool ShouldActivate() const;protectedReturn true if this component is in a state where it can be activated normally. |
| ShouldAsyncCreatePhysicsState | virtual bool ShouldAsyncCreatePhysicsState(UWorld* WorldContext) const;protectedReturns whether this component should create its physics state asynchronously. |
| ShouldAsyncDestroyPhysicsState | virtual bool ShouldAsyncDestroyPhysicsState() const;protectedReturns whether this component should destroy its physics state asynchronously. |
| OnPreRegister | virtual void OnPreRegister();protectedCalled by PreRegisterComponentWithWorld when the component is being pre-registered. |
| OnPreRegistered | virtual void OnPreRegistered();protectedCalled once the component is pre-registered. |
| OnPreUnregister | virtual void OnPreUnregister();protectedCalled by PreUnregisterComponentFromWorld when the component is being pre-unregistered. |
| OnPreUnregistered | virtual void OnPreUnregistered();protectedCalled once the component is pre-unregistered. |
| OnRegister | virtual void OnRegister();protectedCalled when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. |
| OnUnregister | virtual void OnUnregister();protectedCalled when a component is unregistered. Called after DestroyRenderState_Concurrent and OnDestroyPhysicsState are called. |
| PrecachePSOs | virtual void PrecachePSOs();protectedPrecache all PSOs which can be used by the actor component |
| ShouldCreateRenderState | virtual bool ShouldCreateRenderState() const;protectedReturn true if CreateRenderState() should be called |
| CreateRenderState_Concurrent | virtual void CreateRenderState_Concurrent(FRegisterComponentContext* Context);protectedUsed to create any rendering thread information for this component |
| SendRenderTransform_Concurrent | virtual void SendRenderTransform_Concurrent();protectedCalled to send a transform update for this component to the rendering thread |
| SendRenderDynamicData_Concurrent | virtual void SendRenderDynamicData_Concurrent();protectedCalled to send dynamic data for this component to the rendering thread |
| SendRenderInstanceData_Concurrent | virtual void SendRenderInstanceData_Concurrent();protectedCalled to send instance data for this component to the rendering thread |
| DestroyRenderState_Concurrent | virtual void DestroyRenderState_Concurrent();protectedUsed to shut down any rendering thread structure for this component |
| OnCreatePhysicsState | virtual void OnCreatePhysicsState();protectedUsed to create any physics engine information for this component |
| OnDestroyPhysicsState | virtual void OnDestroyPhysicsState();protectedUsed to shut down and physics engine structure for this component |
| ShouldCreatePhysicsState | virtual bool ShouldCreatePhysicsState() const;protectedReturn true if CreatePhysicsState() should be called. Ideally CreatePhysicsState() should always succeed if this returns true, but this isn't currently the case |
| HasValidPhysicsState | virtual bool HasValidPhysicsState() const;protectedUsed to check that DestroyPhysicsState() is working correctly |
| RegisterComponentTickFunctions | virtual void RegisterComponentTickFunctions(bool bRegister);protectedVirtual call chain to register all tick functions |
| ShouldIncrementalPreRegister | virtual bool ShouldIncrementalPreRegister(UWorld* WorldContext) const;Returns whether PreRegisterComponentWithWorld should be called for this component when its Level is being added to the world. |
| ShouldIncrementalPreUnregister | virtual bool ShouldIncrementalPreUnregister() const;Returns whether PreUnregisterComponentFromWorld should be called for this component when its Level is being removed from the world. |
| AllowsAsyncPhysicsStateCreation | virtual bool AllowsAsyncPhysicsStateCreation() const; |
| AllowsAsyncPhysicsStateDestruction | virtual bool AllowsAsyncPhysicsStateDestruction() const; |
| IsAsyncPhysicsStateCreated | virtual bool IsAsyncPhysicsStateCreated() const override final; |
| GetAsyncPhysicsStateObject | virtual UObject* GetAsyncPhysicsStateObject() const override final; |
| OnAsyncCreatePhysicsState | virtual bool OnAsyncCreatePhysicsState(const UE::FTimeout& Timeout) override; |
| OnAsyncCreatePhysicsStateEnd_GameThread | virtual void OnAsyncCreatePhysicsStateEnd_GameThread() override; |
| OnAsyncDestroyPhysicsState | virtual bool OnAsyncDestroyPhysicsState(const UE::FTimeout& Timeout) override; |
| OnAsyncDestroyPhysicsStateBegin_GameThread | virtual void OnAsyncDestroyPhysicsStateBegin_GameThread() override; |
| OnAsyncDestroyPhysicsStateEnd_GameThread | virtual void OnAsyncDestroyPhysicsStateEnd_GameThread() override; |
| InitializeComponent | virtual void InitializeComponent();Initializes the component. Occurs at level startup or actor spawn. This is before BeginPlay (Actor or Component). All Components in the level will be Initialized on load before any Actor/Component gets BeginPlay… |
| ReadyForReplication | virtual void ReadyForReplication();ReadyForReplication gets called on replicated components when their owning actor is officially ready for replication. Called after InitializeComponent but before BeginPlay. From there it will only be set false when… |
| BeginPlay | virtual void BeginPlay();Begins Play for the component. Called when the owning Actor begins play or when the component is created if the Actor has already begun play. Actor BeginPlay normally happens right after PostInitializeComponents but… |
| ReceiveBeginPlay | void ReceiveBeginPlay();UFUNCTIONBlueprintImplementableEventBlueprint implementable event for when the component is beginning play, called before its owning actor's BeginPlay or when the component is dynamically created if the Actor has already BegunPlay. |
| EndPlay | virtual void EndPlay(const EEndPlayReason::Type EndPlayReason);Ends gameplay for this component. Called from AActor::EndPlay only if bHasBegunPlay is true |
| UninitializeComponent | virtual void UninitializeComponent();Handle this component being Uninitialized. Called from AActor::EndPlay only if bHasBeenInitialized is true |
| ReceiveEndPlay | void ReceiveEndPlay(EEndPlayReason::Type EndPlayReason);UFUNCTIONBlueprintImplementableEventBlueprint implementable event for when the component ends play, generally via destruction or its Actor's EndPlay. |
| RegisterAllComponentTickFunctions | void RegisterAllComponentTickFunctions(bool bRegister);When called, will call the virtual call chain to register all of the tick functions Do not override this function or make it virtual |
| TickComponent | virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction);Function called every frame on this ActorComponent. Override this function to implement custom logic to be executed every frame. Only executes if the component is registered, and also… |
| AsyncPhysicsTickComponent | virtual void AsyncPhysicsTickComponent(float DeltaTime, float SimTime);Override this function to implement custom logic to be executed every physics step. Only executes if the component is registered, and also bAsyncPhysicsTick must be set to true. |
| SetupActorComponentTickFunction | bool SetupActorComponentTickFunction(struct FTickFunction* TickFunction);Set up a tick function for a component in the standard way. Tick after the actor. Don't tick if the actor is static, or if the actor is a template or if this is a "NeverTick" component. I tick while paused if only if… |
| SetComponentTickEnabled | virtual void SetComponentTickEnabled(bool bEnabled);UFUNCTIONBlueprintCallableCategory=Components|TickSet this component's tick functions to be enabled or disabled. Only has an effect if the function is registered |
| SetComponentTickEnabledAsync | virtual void SetComponentTickEnabledAsync(bool bEnabled);Spawns a task on GameThread that will call SetComponentTickEnabled |
| IsComponentTickEnabled | virtual bool IsComponentTickEnabled() const;UFUNCTIONBlueprintCallableCategory=Components|TickReturns whether this component has tick enabled or not |
| SetComponentTickInterval | void SetComponentTickInterval(float TickInterval);UFUNCTIONBlueprintCallableCategory=Components|TickSets the tick interval for this component's primary tick function. Does not enable the tick interval. Takes effect on next tick. |
| SetComponentTickIntervalAndCooldown | void SetComponentTickIntervalAndCooldown(float TickInterval);UFUNCTIONBlueprintCallableCategory=Components|TickSets the tick interval for this component's primary tick function. Does not enable the tick interval. Takes effect imediately. |
| GetComponentTickInterval | float GetComponentTickInterval() const;UFUNCTIONBlueprintCallableCategory=Components|TickReturns the tick interval for this component's primary tick function, which is the frequency in seconds at which it will be executed |
| PreRegisterComponentWithWorld | void PreRegisterComponentWithWorld(UWorld* InWorld);Pre-registers a component with a specific world. Only called on components that return ShouldIncrementalPreRegister(). Will initialize the necessary before calling OnPreRegister(). |
| PreUnregisterComponentFromWorld | void PreUnregisterComponentFromWorld();Pre-unregisters a component from a specific world. Only called on components that return ShouldIncrementalPreUnregister(). |
| RegisterComponentWithWorld | void RegisterComponentWithWorld(UWorld* InWorld, FRegisterComponentContext* Context = nullptr);Registers a component with a specific world, which creates any visual/physical state |
| IsReadyForOwnerToAutoDestroy | virtual bool IsReadyForOwnerToAutoDestroy() const;Overridable check for a component to indicate to its Owner that it should prevent the Actor from auto destroying when finished |
| IsOwnerSelected | bool IsOwnerSelected() const;Returns whether the component's owner is selected in the editor |
| IsRenderTransformDirty | inline bool IsRenderTransformDirty() const;Is this component's transform in need of sending to the renderer? |
| IsRenderInstancesDirty | inline bool IsRenderInstancesDirty() const;Is this component's instance data in need of sending to the renderer? |
| IsRenderStateDirty | inline bool IsRenderStateDirty() const;Is this component in need of its whole state being sent to the renderer? |
| InvalidateLightingCache | void InvalidateLightingCache();Invalidate lighting cache with default options. |
| InvalidateLightingCacheDetailed | virtual void InvalidateLightingCacheDetailed(bool bInvalidateBuildEnqueuedLighting, bool bTranslationOnly);Called when this actor component has moved, allowing it to discard statically cached lighting information. |
| DoDeferredRenderUpdates_Concurrent | void DoDeferredRenderUpdates_Concurrent();Uses the bRenderStateDirty/bRenderTransformDirty/bRenderInstancesDirty to perform any necessary work on this component. Do not call this directly, call MarkRenderStateDirty, MarkRenderDynamicDataDirty,… |
| UpdateComponentToWorld | virtual void UpdateComponentToWorld(EUpdateTransformFlags UpdateTransformFlags = EUpdateTransformFlags::None, ETeleportType Teleport = ETeleportType::None);Recalculate the value of our component to world transform |
| MarkRenderStateDirty | void MarkRenderStateDirty();Mark the render state as dirty - will be sent to the render thread at the end of the frame. |
| MarkRenderDynamicDataDirty | void MarkRenderDynamicDataDirty();Indicate that dynamic data for this component needs to be sent at the end of the frame. |
| MarkRenderTransformDirty | void MarkRenderTransformDirty();Marks the transform as dirty - will be sent to the render thread at the end of the frame |
| MarkRenderInstancesDirty | void MarkRenderInstancesDirty();Marks the instances as dirty - changes to instance transforms/custom data will be sent to the render thread at the end of the frame |
| MarkForNeededEndOfFrameUpdate | void MarkForNeededEndOfFrameUpdate();If we belong to a world, mark this for a deferred update, otherwise do it now. |
| MarkForNeededEndOfFrameRecreate | void MarkForNeededEndOfFrameRecreate();If we belong to a world, mark this for a deferred update, otherwise do it now. |
| ClearNeedEndOfFrameUpdate | void ClearNeedEndOfFrameUpdate();If we belong to a world, clear the request to do a deferred update. |
| RequiresGameThreadEndOfFrameUpdates | virtual bool RequiresGameThreadEndOfFrameUpdates() const;return true if this component requires end of frame updates to happen from the game thread. |
| RequiresGameThreadEndOfFrameRecreate | virtual bool RequiresGameThreadEndOfFrameRecreate() const;return true if this component requires end of frame recreates to happen from the game thread. |
| RequiresPreEndOfFrameSync | virtual bool RequiresPreEndOfFrameSync() const;return true if this component needs to sync to tasks before end of frame updates are executed |
| RecreateRenderState_Concurrent | void RecreateRenderState_Concurrent();Recreate the render state right away. Generally you always want to call MarkRenderStateDirty instead. |
| RecreatePhysicsState | void RecreatePhysicsState();Recreate the physics state right way. |
| IsRenderStateCreated | bool IsRenderStateCreated() const;Returns true if the render 'state' (e.g. scene proxy) is created for this component |
| IsRenderStateRecreating | bool IsRenderStateRecreating() const;Returns true if the render 'state' is being recreated for this component (see additional comments on variable above) |
| IsPhysicsStateCreated | bool IsPhysicsStateCreated() const;Returns true if the physics 'state' (e.g. physx bodies) are created for this component |
| GetScene | class FSceneInterface* GetScene() const;Returns the rendering scene associated with this component |
| GetComponentLevel | ULevel* GetComponentLevel() const;Return the ULevel that this Component is part of. |
| ComponentIsInLevel | bool ComponentIsInLevel(const class ULevel *TestLevel) const;Returns true if this actor is contained by TestLevel. |
| ComponentIsInPersistentLevel | bool ComponentIsInPersistentLevel(bool bIncludeLevelStreamingPersistent) const;See if this component is in the persistent level |
| OnActorVisibilityChanged | virtual void OnActorVisibilityChanged();Called on each component when the Actor's visibility state changes |
| OnActorEnableCollisionChanged | virtual void OnActorEnableCollisionChanged();Called on each component when the Actor's bEnableCollisionChanged flag changes |
| GetReadableName | virtual FString GetReadableName() const;Returns a readable name for this component, including the asset name if applicable By default this appends a space plus AdditionalStatObject() |
| AdditionalStatObject | virtual UObject const* AdditionalStatObject() const;Give a readable name for this component, including asset name if applicable |
| GetComponentInstanceData | virtual TStructOnScope<FActorComponentInstanceData> GetComponentInstanceData() const;Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation |
| PostApplyToComponent | virtual void PostApplyToComponent();Called after ApplyToComponent has run. |
| GetComponentChildElements | virtual void GetComponentChildElements(TArray<FTypedElementHandle>& OutElementHandles, const bool bAllowCreate = true);Get the logical child elements of this component, if any. |
| BeginDestroy | virtual void BeginDestroy() override; |
| NeedsLoadForClient | virtual bool NeedsLoadForClient() const override; |
| NeedsLoadForServer | virtual bool NeedsLoadForServer() const override; |
| NeedsLoadForEditorGame | virtual bool NeedsLoadForEditorGame() const override; |
| IsNameStableForNetworking | virtual bool IsNameStableForNetworking() const override; |
| IsSupportedForNetworking | virtual bool IsSupportedForNetworking() const override; |
| GetLifetimeReplicatedProps | virtual void GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const override; |
| GetFunctionCallspace | virtual int32 GetFunctionCallspace(UFunction* Function, FFrame* Stack) override; |
| CallRemoteFunction | virtual bool CallRemoteFunction(UFunction* Function, void* Parameters, FOutParmRec* OutParms, FFrame* Stack) override; |
| PostInitProperties | virtual void PostInitProperties() override; |
| PostLoad | virtual void PostLoad() override; |
| PostMigrate | virtual void PostMigrate(const struct FUObjectMigrationContext& MigrationContext) override; |
| Rename | virtual bool Rename(const TCHAR* NewName=NULL, UObject* NewOuter=NULL, ERenameFlags Flags=REN_None) override; |
| PostRename | virtual void PostRename(UObject* OldOuter, const FName OldName) override; |
| Serialize | virtual void Serialize(FArchive& Ar) override; |
| AddAssetUserData | virtual void AddAssetUserData(UAssetUserData* InUserData) override; |
| RemoveUserDataOfClass | virtual void RemoveUserDataOfClass(TSubclassOf<UAssetUserData> InUserDataClass) override; |
| GetAssetUserDataOfClass | virtual UAssetUserData* GetAssetUserDataOfClass(TSubclassOf<UAssetUserData> InUserDataClass) override; |
| GetAssetUserDataArray | virtual const TArray<UAssetUserData*>* GetAssetUserDataArray() const override; |
| OnCreatedFromReplication | void OnCreatedFromReplication();We're using the same API as IInterface_ActorSubobject, but not using it directly as a size and performance optimization |
| OnDestroyedFromReplication | void OnDestroyedFromReplication(); |
| IsOwnerRunningUserConstructionScript | bool IsOwnerRunningUserConstructionScript() const;See if the owning Actor is currently running the UCS |
| IsPreRegistering | bool IsPreRegistering() const;See if this component is currently pre-registering |
| IsPreRegistered | bool IsPreRegistered() const;See if this component is currently pre-registered |
| IsPreUnregistering | bool IsPreUnregistering() const;See if this component is currently pre-unregistering |
| IsPreUnregistered | bool IsPreUnregistered() const;See if this component is currently pre-unregistered |
| IsRegistered | bool IsRegistered() const;See if this component is currently registered |
| AllowReregistration | bool AllowReregistration() const;Check whether the component class allows reregistration during ReregisterAllComponents |
| RegisterComponent | void RegisterComponent();Register this component, creating any rendering/physics state. Will also add itself to the outer Actor's Components array, if not already present. |
| UnregisterComponent | void UnregisterComponent();Unregister this component, destroying any rendering/physics state. |
| DestroyComponent | virtual void DestroyComponent(bool bPromoteChildren = false);Unregister the component, remove it from its outer Actor's Components array and mark for pending kill. |
| OnComponentCreated | virtual void OnComponentCreated();Called when a component is created (not loaded). This can happen in the editor or during gameplay |
| OnComponentDestroyed | virtual void OnComponentDestroyed(bool bDestroyingHierarchy);Called when a component is destroyed |
| K2_DestroyComponent | void K2_DestroyComponent(UObject* Object);UFUNCTIONBlueprintCallableCategory=ComponentsUnregister and mark for pending kill a component. This may not be used to destroy a component that is owned by an actor unless the owning actor is calling the function. |
| ReregisterComponent | void ReregisterComponent();Unregisters and immediately re-registers component. |
| SetTickGroup | void SetTickGroup(ETickingGroup NewTickGroup);UFUNCTIONBlueprintCallableCategory=Components|TickChanges the ticking group for this component |
| AddTickPrerequisiteActor | virtual void AddTickPrerequisiteActor(AActor* PrerequisiteActor);UFUNCTIONBlueprintCallableCategory=Components|TickMake this component tick after PrerequisiteActor |
| AddTickPrerequisiteComponent | virtual void AddTickPrerequisiteComponent(UActorComponent* PrerequisiteComponent);UFUNCTIONBlueprintCallableCategory=Components|TickMake this component tick after PrerequisiteComponent. |
| RemoveTickPrerequisiteActor | virtual void RemoveTickPrerequisiteActor(AActor* PrerequisiteActor);UFUNCTIONBlueprintCallableCategory=Components|TickRemove tick dependency on PrerequisiteActor. |
| RemoveTickPrerequisiteComponent | virtual void RemoveTickPrerequisiteComponent(UActorComponent* PrerequisiteComponent);UFUNCTIONBlueprintCallableCategory=Components|TickRemove tick dependency on PrerequisiteComponent. |
| ReceiveTick | void ReceiveTick(float DeltaSeconds);UFUNCTIONBlueprintImplementableEventEvent called every frame if tick is enabled |
| ReceiveAsyncPhysicsTick | void ReceiveAsyncPhysicsTick(float DeltaSeconds, float SimSeconds);UFUNCTIONBlueprintImplementableEventEvent called every async physics tick if bAsyncPhysicsTickEnabled is true |
| ApplyWorldOffset | virtual void ApplyWorldOffset(const FVector& InOffset, bool bWorldShift);Called by owner actor on position shifting Component should update all relevant data structures to reflect new actor location |
| CanEverAffectNavigation | bool CanEverAffectNavigation() const;Can this component potentially influence navigation |
| SetCanEverAffectNavigation | void SetCanEverAffectNavigation(bool bRelevant);Sets value of bCanEverAffectNavigation flag and update navigation octree if needed. |
| IsNavigationRelevant | virtual bool IsNavigationRelevant() const;Override to specify that a component is relevant to the navigation system |
| IsHLODRelevant | virtual bool IsHLODRelevant() const;Override to specify that a component is relevant to the HLOD generation. |
| HandleCanEverAffectNavigationChange | void HandleCanEverAffectNavigationChange(bool bForceUpdate = false);protectedMakes sure navigation system has up to date information regarding component's navigation relevancy and if it can affect navigation at all |
| SetAsyncPhysicsTickEnabled | void SetAsyncPhysicsTickEnabled(bool bEnabled);protectedSets bAsyncPhysicsTickEnabled which determines whether to use use the async physics tick with this component. |
| DeferRemoveAsyncPhysicsTick | void DeferRemoveAsyncPhysicsTick();protectedDefers the call to SetAsyncPhysicsTickEnabled(false) to the next async tick. This allows you to remove the async physics tick callback within the async physics tick safely. |
| SetIsReplicatedByDefault | void SetIsReplicatedByDefault(const bool bNewReplicates);protectedSets the value of bReplicates without causing other side effects to this instance. This should only be called during component construction. |
| SetActiveFlag | void SetActiveFlag(const bool bNewIsActive);Sets the value of bIsActive without causing other side effects to this instance. |
| OwnerNeedsInitialization | bool OwnerNeedsInitialization() const;protectedConvenience method for testing whether or not our owner is still being constructed / initialized. |
| NeedsInitialization | bool NeedsInitialization() const;protectedConvenience method for testing whether or not we are still be constructed / initialized. |
Static functions 3
| AddReferencedObjects | static void AddReferencedObjects(UObject* InThis, FReferenceCollector& Collector); |
| CanBeHLODRelevant | static bool CanBeHLODRelevant(const UActorComponent* ActorComponent);protectedUtility method used by subclasses to test basic conditions a component must fulfill to be considered HLOD relevant. |
| GetReplicatesPropertyName | static const FName GetReplicatesPropertyName();protectedGets the property name for bReplicates. |
Functions
Free functions 14
| operator| | constexpr inline EUpdateTransformFlags operator|(EUpdateTransformFlags Left, EUpdateTransformFlags Right); |
| operator& | constexpr inline EUpdateTransformFlags operator&(EUpdateTransformFlags Left, EUpdateTransformFlags Right); |
| operator ! | constexpr inline bool operator !(EUpdateTransformFlags Value); |
| operator ~ | constexpr inline EUpdateTransformFlags operator ~(EUpdateTransformFlags Value); |
| SkipPhysicsToEnum | EUpdateTransformFlags SkipPhysicsToEnum(bool bSkipPhysics);Converts legacy bool into the SkipPhysicsUpdate bitflag |
| UpdateAllPrimitiveSceneInfosForSingleComponent | extern void UpdateAllPrimitiveSceneInfosForSingleComponent(UActorComponent* InComponent, TSet<FSceneInterface*>* InScenesToUpdateAllPrimitiveSceneInfosForBatching = nullptr); |
| UpdateAllPrimitiveSceneInfosForSingleComponentInterface | extern void UpdateAllPrimitiveSceneInfosForSingleComponentInterface(IPrimitiveComponent* InComponent, TSet<FSceneInterface*>* InScenesToUpdateAllPrimitiveSceneInfosForBatching = nullptr); |
| UpdateAllPrimitiveSceneInfosForScenes | extern void UpdateAllPrimitiveSceneInfosForScenes(TSet<FSceneInterface*> ScenesToUpdateAllPrimitiveSceneInfos); |
| CanEverAffectNavigation | bool UActorComponent::CanEverAffectNavigation() const;UActorComponent inlines |
| IsNetSimulating | bool UActorComponent::IsNetSimulating() const; |
| GetNetMode | ENetMode UActorComponent::GetNetMode() const; |
| IsNetMode | bool UActorComponent::IsNetMode(ENetMode Mode) const; |
| ClearNeedEndOfFrameUpdate | void UActorComponent::ClearNeedEndOfFrameUpdate(); |
| GetOwner | AActor* UActorComponent::GetOwner() const; |