engine
 
载入中...
搜索中...
未找到
Public 属性 | Protected 成员函数 | Protected 属性 | 所有成员列表
UFloatingPawnMovement类 参考

Movement component updates position of associated PrimitiveComponent during its tick 更多...

#include <FloatingPawnMovement.h>

+ 类 UFloatingPawnMovement 继承关系图:

Public 属性

float Acceleration
 Acceleration applied by input (rate of change of velocity)
 
float Deceleration
 Deceleration applied when there is no input (rate of change of velocity)
 
float MaxSpeed
 Maximum velocity magnitude allowed for the controlled Pawn.
 
float TurningBoost
 Setting affecting extra force applied when changing direction, making turns have less drift and become more responsive. 更多...
 
- Public 属性 继承自 UNavMovementComponent
FMovementProperties MovementState
 Expresses runtime state of character's movement. 更多...
 
- Public 属性 继承自 UMovementComponent
uint8 bAutoRegisterPhysicsVolumeUpdates:1
 If true, then applies the value of bComponentShouldUpdatePhysicsVolume to the UpdatedComponent. 更多...
 
uint8 bAutoRegisterUpdatedComponent:1
 If true, registers the owner's Root component as the UpdatedComponent if there is not one currently assigned.
 
uint8 bAutoUpdateTickRegistration:1
 If true, whenever the updated component is changed, this component will enable or disable its tick dependent on whether it has something to update. 更多...
 
uint8 bComponentShouldUpdatePhysicsVolume:1
 If true, enables bShouldUpdatePhysicsVolume on the UpdatedComponent during initialization from SetUpdatedComponent(), otherwise disables such updates. 更多...
 
uint8 bConstrainToPlane:1
 If true, movement will be constrained to a plane. 更多...
 
uint8 bSnapToPlaneAtStart:1
 If true and plane constraints are enabled, then the updated component will be snapped to the plane when first attached.
 
uint8 bTickBeforeOwner:1
 If true, after registration we will add a tick dependency to tick before our owner (if we can both tick). 更多...
 
uint8 bUpdateOnlyIfRendered:1
 If true, skips TickComponent() if UpdatedComponent was not recently rendered.
 
- Public 属性 继承自 UActorComponent
uint8 bAllowAnyoneToDestroyMe:1
 Can this component be destroyed (via K2_DestroyComponent) by any parent
 
uint8 bAllowConcurrentTick:1
 Can we tick this concurrently on other threads?
 
uint8 bAutoActivate:1
 Whether the component is activated at creation or must be explicitly activated.
 
uint8 bAutoRegister:1
 Does this component automatically register with its owner
 
uint8 bEditableWhenInherited:1
 True if this component can be modified when it was inherited from a parent actor class
 
uint8 bIsEditorOnly:1
 If true, the component will be excluded from non-editor builds
 
uint8 bNavigationRelevant: 1
 Cached navigation relevancy flag for collision updates
 
uint8 bNeverNeedsRenderUpdate:1
 If true, this component never needs a render update.
 
uint8 bTickInEditor:1
 Should this component be ticked in the editor
 
uint8 bWantsInitializeComponent:1
 If true, we call the virtual InitializeComponent
 
TArray< FName > ComponentTags
 Array of tags that can be used for grouping and categorizing. 更多...
 
EComponentCreationMethod CreationMethod
 Describes how a component instance will be created
 
FActorComponentActivatedSignature OnComponentActivated
 Called when the component has been activated, with parameter indicating if it was from a reset
 
FActorComponentDeactivateSignature OnComponentDeactivated
 Called when the component has been deactivated
 
struct FActorComponentTickFunction PrimaryComponentTick
 Main tick function for the Component
 

Protected 成员函数

virtual void ApplyControlInputToVelocity (float DeltaTime)
 Update Velocity based on input. 更多...
 
virtual bool LimitWorldBounds ()
 Prevent Pawn from leaving the world bounds (if that restriction is enabled in WorldSettings)
 
- Protected 成员函数 继承自 UPawnMovementComponent
void MarkForClientCameraUpdate ()
 Attempts to mark the PlayerCameraManager as dirty. 更多...
 
- Protected 成员函数 继承自 UMovementComponent
FVector GetPlaneConstraintNormalFromAxisSetting (EPlaneConstraintAxisSetting AxisSetting) const
 Helper to compute the plane constraint axis from the current setting. 更多...
 
- Protected 成员函数 继承自 UActorComponent
virtual void CreateRenderState_Concurrent (FRegisterComponentContext *Context)
 Used to create any rendering thread information for this component 更多...
 
virtual void DestroyRenderState_Concurrent ()
 Used to shut down any rendering thread structure for this component 更多...
 
void HandleCanEverAffectNavigationChange (bool bForceUpdate=false)
 Makes sure navigation system has up to date information regarding component's navigation relevancy and if it can affect navigation at all 更多...
 
virtual bool HasValidPhysicsState () const
 Used to check that DestroyPhysicsState() is working correctly
 
bool NeedsInitialization () const
 Convenience method for testing whether or not we are still be constructed / initialized.
 
virtual void OnCreatePhysicsState ()
 Used to create any physics engine information for this component
 
virtual void OnDestroyPhysicsState ()
 Used to shut down and physics engine structure for this component
 
virtual void OnRegister ()
 Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called.
 
virtual void OnUnregister ()
 Called when a component is unregistered. 更多...
 
bool OwnerNeedsInitialization () const
 Convenience method for testing whether or not our owner is still being constructed / initialized.
 
virtual void RegisterComponentTickFunctions (bool bRegister)
 Virtual call chain to register all tick functions 更多...
 
virtual void SendRenderDynamicData_Concurrent ()
 Called to send dynamic data for this component to the rendering thread
 
virtual void SendRenderTransform_Concurrent ()
 Called to send a transform update for this component to the rendering thread 更多...
 
void SetIsReplicatedByDefault (const bool bNewReplicates)
 Sets the value of bReplicates without causing other side effects to this instance. 更多...
 
virtual bool ShouldActivate () const
 Return true if this component is in a state where it can be activated normally.
 
virtual bool ShouldCreatePhysicsState () const
 Return true if CreatePhysicsState() should be called. 更多...
 
virtual bool ShouldCreateRenderState () const
 Return true if CreateRenderState() should be called
 
- Protected 成员函数 继承自 UObject
bool CanCheckDefaultSubObjects (bool bForceCheck, bool &bResult) const
 Checks it's ok to perform subobjects check at this time.
 
virtual bool CheckDefaultSubobjectsInternal () const
 Checks default sub-object assumptions. 更多...
 
virtual FString GetDetailedInfoInternal () const
 This function actually does the work for the GetDetailedInfo() and is virtual. 更多...
 
- Protected 成员函数 继承自 UObjectBase
virtual void DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *Name)
 Convert a boot-strap registered class into a real one, add to uobject array, etc 更多...
 
void LowLevelRename (FName NewName, UObject *NewOuter=NULL)
 Just change the FName and Outer and rehash into name hash tables. 更多...
 
void Register (const TCHAR *PackageName, const TCHAR *Name)
 Enqueue the registration for this object.
 
virtual void RegisterDependencies ()
 Force any base classes to be registered first
 
FORCEINLINE void SetFlagsTo (EObjectFlags NewFlags)
 Set the object flags directly 更多...
 
 UObjectBase (EObjectFlags InFlags)
 Constructor used for bootstrapping 更多...
 

Protected 属性

uint32 bPositionCorrected:1
 Set to true when a position correction is applied. 更多...
 
- Protected 属性 继承自 UPawnMovementComponent
class APawn * PawnOwner
 Pawn that owns this component.
 
- Protected 属性 继承自 UNavMovementComponent
uint8 bStopMovementAbortPaths:1
 If set, StopActiveMovement call will abort current path following request
 
uint8 bUpdateNavAgentWithOwnersCollision:1
 If set to true NavAgentProps' radius and height will be updated with Owner's collision capsule size
 
uint8 bUseAccelerationForPaths: 1
 If set, pathfollowing will control character movement via acceleration values. 更多...
 
uint8 bUseFixedBrakingDistanceForPaths: 1
 If set, FixedPathBrakingDistance will be used for path following deceleration
 
float FixedPathBrakingDistance
 Braking distance override used with acceleration driven path following (bUseAccelerationForPaths)
 
- Protected 属性 继承自 UMovementComponent
FVector PlaneConstraintNormal
 The normal or axis of the plane that constrains movement, if bConstrainToPlane is enabled. 更多...
 
FVector PlaneConstraintOrigin
 The origin of the plane that constrains movement, if plane constraint is enabled. 更多...
 
- Protected 属性 继承自 UActorComponent
TArray< UAssetUserData * > AssetUserData
 Array of user data stored with the component
 
uint8 bAllowReregistration:1
 Check whether the component class allows reregistration during ReregisterAllComponents
 
uint8 bCanEverAffectNavigation: 1
 Whether this component can potentially influence navigation
 
uint8 bNetAddressable:1
 Is this component safe to ID over the network by name?

 
uint8 bPhysicsStateCreated:1
 If the physics state is currently created for this component
 
uint8 bRegistered:1
 Indicates if this ActorComponent is currently registered with a scene.
 
uint8 bRenderStateCreated:1
 If the render state is currently created for this component
 

额外继承的成员函数

- Public 成员函数 继承自 UPawnMovementComponent
virtual void AddInputVector (FVector WorldVector, bool bForce=false)
 Adds the given vector to the accumulated input in world space. 更多...
 
FVector GetLastInputVector () const
 Return the last input vector in world space that was processed by ConsumeInputVector(), which is usually done by the Pawn or PawnMovementComponent. 更多...
 
class APawn * GetPawnOwner () const
 Return the Pawn that owns UpdatedComponent.
 
FVector GetPendingInputVector () const
 Return the pending input vector in world space. 更多...
 
virtual bool IsMoveInputIgnored () const
 Helper to see if move input is ignored. 更多...
 
FVector K2_GetInputVector () const
 (Deprecated) Return the input vector in world space.
 
virtual void NotifyBumpedPawn (APawn *BumpedPawn)
 Notify of collision in case we want to react, such as waking up avoidance or pathing code.
 
virtual void OnTeleported () override
 Called by owning Actor upon successful teleport from AActor::TeleportTo().
 
virtual void RequestPathMove (const FVector &MoveInput) override
 path following: request new move input (normal vector = full strength)
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SetUpdatedComponent (USceneComponent *NewUpdatedComponent) override
 Overridden to only allow registration with components owned by a Pawn.
 
- Public 成员函数 继承自 UNavMovementComponent
FORCEINLINE bool CanEverCrouch () const
 Returns true if component can crouch
 
FORCEINLINE bool CanEverFly () const
 Returns true if component can fly
 
FORCEINLINE bool CanEverJump () const
 Returns true if component can jump
 
FORCEINLINE bool CanEverMoveOnGround () const
 Returns true if component can move along the ground (walk, drive, etc)
 
FORCEINLINE bool CanEverSwim () const
 Returns true if component can swim
 
virtual bool CanStartPathFollowing () const
 Returns true if path following can start
 
virtual bool CanStopPathFollowing () const
 check if current move target can be reached right now if positions are matching (e.g. 更多...
 
void ClearFixedBrakingDistance ()
 clears fixed braking distance
 
FORCEINLINE FVector GetActorFeetLocation () const
 Returns location of controlled actor's "feet" meaning center of bottom of collision bounding box
 
virtual FBasedPosition GetActorFeetLocationBased () const
 Returns based location of controlled actor
 
FORCEINLINE FVector GetActorLocation () const
 Returns location of controlled actor - meaning center of collision bounding box
 
FORCEINLINE FVector GetActorNavLocation () const
 Returns navigation location of controlled actor
 
FORCEINLINE FNavAgentProperties & GetNavAgentPropertiesRef ()
 Returns the NavAgentProps
 
FORCEINLINE const FNavAgentProperties & GetNavAgentPropertiesRef () const
 Returns the NavAgentProps(const)
 
virtual float GetPathFollowingBrakingDistance (float MaxSpeed) const
 Returns braking distance for acceleration driven path following
 
virtual bool IsCrouching () const
 Returns true if currently crouching
 
virtual bool IsFalling () const
 Returns true if currently falling (not flying, in a non-fluid volume, and not on the ground)
 
virtual bool IsFlying () const
 Returns true if currently flying (moving through a non-fluid volume without resting on the ground)
 
FORCEINLINE bool IsJumpAllowed () const
 Returns true if component is allowed to jump
 
virtual bool IsMovingOnGround () const
 Returns true if currently moving on the ground (e.g. 更多...
 
virtual bool IsSwimming () const
 Returns true if currently swimming (moving through a fluid volume)
 
virtual void RequestDirectMove (const FVector &MoveVelocity, bool bForceMaxSpeed)
 path following: request new velocity
 
virtual void RequestPathMove (const FVector &MoveInput)
 path following: request new move input (normal vector = full strength)
 
void ResetMoveState ()
 Resets runtime movement state to character's movement capabilities
 
void SetFixedBrakingDistance (float DistanceToEndOfPath)
 set fixed braking distance
 
FORCEINLINE void SetJumpAllowed (bool bAllowed)
 Sets whether this component is allowed to jump
 
virtual void StopActiveMovement ()
 Stops applying further movement (usually zeros acceleration).
 
virtual void StopMovementImmediately () override
 Stops movement immediately (zeroes velocity, usually zeros acceleration for components with acceleration).
 
void StopMovementKeepPathing ()
 Stops movement immediately (reset velocity) but keeps following current path
 
- Public 成员函数 继承自 UMovementComponent
virtual void AddRadialForce (const FVector &Origin, float Radius, float Strength, ERadialImpulseFalloff Falloff)
 Adds force from radial force components. 更多...
 
virtual void AddRadialImpulse (const FVector &Origin, float Radius, float Strength, ERadialImpulseFalloff Falloff, bool bVelChange)
 Adds impulse from radial force components. 更多...
 
virtual FVector ComputeSlideVector (const FVector &Delta, const float Time, const FVector &Normal, const FHitResult &Hit) const
 Compute a vector to slide along a surface, given an attempted move, time, and normal. 更多...
 
virtual FVector ConstrainDirectionToPlane (FVector Direction) const
 Constrain a direction vector to the plane constraint, if enabled. 更多...
 
virtual FVector ConstrainLocationToPlane (FVector Location) const
 Constrain a position vector to the plane constraint, if enabled.
 
virtual FVector ConstrainNormalToPlane (FVector Normal) const
 Constrain a normal vector (of unit length) to the plane constraint, if enabled.
 
virtual void Deactivate () override
 Deactivates the SceneComponent.
 
virtual float GetGravityZ () const
 Returns gravity that affects this component
 
virtual float GetMaxSpeed () const
 Returns maximum speed of component in current movement mode.
 
virtual FVector GetPenetrationAdjustment (const FHitResult &Hit) const
 Calculate a movement adjustment to try to move out of a penetration from a failed move. 更多...
 
virtual APhysicsVolume * GetPhysicsVolume () const
 Returns the PhysicsVolume this MovementComponent is using, or the world's default physics volume if none.
 
EPlaneConstraintAxisSetting GetPlaneConstraintAxisSetting () const
 Get the plane constraint axis setting.
 
const FVector & GetPlaneConstraintNormal () const
 Returns the normal of the plane that constrains movement, enforced if the plane constraint is enabled.
 
const FVector & GetPlaneConstraintOrigin () const
 Get the plane constraint origin. 更多...
 
virtual void HandleImpact (const FHitResult &Hit, float TimeSlice=0.f, const FVector &MoveDelta=FVector::ZeroVector)
 Called for Blocking impact 更多...
 
virtual void InitCollisionParams (FCollisionQueryParams &OutParams, FCollisionResponseParams &OutResponseParam) const
 Initialize collision params appropriately based on our collision settings. 更多...
 
virtual void InitializeComponent () override
 Overridden to auto-register the updated component if it starts NULL, and we can find a root component on our owner.
 
virtual bool IsExceedingMaxSpeed (float MaxSpeed) const
 Returns true if the current velocity is exceeding the given max speed (usually the result of GetMaxSpeed()), within a small error tolerance. 更多...
 
virtual bool IsInWater () const
 Returns true if it's in PhysicsVolume with water flag
 
virtual float K2_GetMaxSpeedModifier () const
 Returns a scalar applied to the maximum velocity that the component can currently move.
 
virtual float K2_GetModifiedMaxSpeed () const
 Returns the result of GetMaxSpeed() * GetMaxSpeedModifier().
 
bool K2_MoveUpdatedComponent (FVector Delta, FRotator NewRotation, FHitResult &OutHit, bool bSweep=true, bool bTeleport=false)
 Moves our UpdatedComponent by the given Delta, and sets rotation to NewRotation. 更多...
 
bool MoveUpdatedComponent (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult *OutHit=NULL, ETeleportType Teleport=ETeleportType::None)
 Moves our UpdatedComponent by the given Delta, and sets rotation to NewRotation. 更多...
 
virtual void OnRegister () override
 Overridden to update component properties that should be updated while being edited.
 
virtual void OnTeleported ()
 Called by owning Actor upon successful teleport from AActor::TeleportTo().
 
virtual bool OverlapTest (const FVector &Location, const FQuat &RotationQuat, const ECollisionChannel CollisionChannel, const FCollisionShape &CollisionShape, const AActor *IgnoreActor) const
 Return true if the given collision shape overlaps other geometry at the given location and rotation. 更多...
 
virtual void PhysicsVolumeChanged (class APhysicsVolume *NewVolume)
 Delegate when PhysicsVolume of UpdatedComponent has been changed
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void RegisterComponentTickFunctions (bool bRegister) override
 Virtual call chain to register all tick functions 更多...
 
bool ResolvePenetration (const FVector &Adjustment, const FHitResult &Hit, const FQuat &NewRotation)
 Try to move out of penetration in an object after a failed move. 更多...
 
bool SafeMoveUpdatedComponent (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult &OutHit, ETeleportType Teleport=ETeleportType::None)
 Calls MoveUpdatedComponent(), handling initial penetrations by calling ResolvePenetration(). 更多...
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SetPlaneConstraintAxisSetting (EPlaneConstraintAxisSetting NewAxisSetting)
 Set the plane constraint axis setting. 更多...
 
virtual void SetPlaneConstraintEnabled (bool bEnabled)
 Sets whether or not the plane constraint is enabled.
 
virtual void SetPlaneConstraintFromVectors (FVector Forward, FVector Up)
 Uses the Forward and Up vectors to compute the plane that constrains movement, enforced if the plane constraint is enabled.
 
virtual void SetPlaneConstraintNormal (FVector PlaneNormal)
 Sets the normal of the plane that constrains movement, enforced if the plane constraint is enabled. 更多...
 
virtual void SetPlaneConstraintOrigin (FVector PlaneOrigin)
 Sets the origin of the plane that constrains movement, enforced if the plane constraint is enabled.
 
virtual void SetUpdatedComponent (USceneComponent *NewUpdatedComponent)
 Assign the component we move and update.
 
virtual bool ShouldSkipUpdate (float DeltaTime) const
 Possibly skip update if moved component is not rendered or can't move. 更多...
 
virtual float SlideAlongSurface (const FVector &Delta, float Time, const FVector &Normal, FHitResult &Hit, bool bHandleImpact=false)
 Slide smoothly along a surface, and slide away from multiple impacts using TwoWallAdjust if necessary. 更多...
 
virtual void SnapUpdatedComponentToPlane ()
 Snap the updated component to the plane constraint, if enabled.
 
virtual void StopMovementImmediately ()
 Stops movement immediately (zeroes velocity, usually zeros acceleration for components with acceleration).
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 Function called every frame on this ActorComponent. 更多...
 
virtual void TwoWallAdjust (FVector &Delta, const FHitResult &Hit, const FVector &OldHitNormal) const
 Compute a movement direction when contacting two surfaces. 更多...
 
virtual void UpdateComponentVelocity ()
 Update ComponentVelocity of UpdatedComponent. 更多...
 
virtual void UpdateTickRegistration ()
 Update tick registration state, determined by bAutoUpdateTickRegistration. 更多...
 
- Public 成员函数 继承自 UActorComponent
virtual void Activate (bool bReset=false)
 Activates the SceneComponent, should be overridden by native child classes. 更多...
 
virtual UObject const * AdditionalStatObject () const
 Give a readable name for this component, including asset name if applicable
 
virtual void AddTickPrerequisiteActor (AActor *PrerequisiteActor)
 Make this component tick after PrerequisiteActor
 
virtual void AddTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent)
 Make this component tick after PrerequisiteComponent.
 
FORCEINLINE bool AllowReregistration () const
 Check whether the component class allows reregistration during ReregisterAllComponents
 
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 更多...
 
virtual void BeginDestroy () override
 Called before destroying the object. 更多...
 
virtual void BeginPlay ()
 Begins Play for the component. 更多...
 
virtual bool CallRemoteFunction (UFunction *Function, void *Parameters, FOutParmRec *OutParms, FFrame *Stack) override
 Call the actor's function remotely 更多...
 
bool CanEverAffectNavigation () const
 Can this component potentially influence navigation
 
void ClearNeedEndOfFrameUpdate ()
 If we belong to a world, clear the request to do a deferred update.
 
bool ComponentHasTag (FName Tag) const
 See if this component contains the supplied tag
 
bool ComponentIsInLevel (const class ULevel *TestLevel) const
 Returns true if this actor is contained by TestLevel.
 
bool ComponentIsInPersistentLevel (bool bIncludeLevelStreamingPersistent) const
 See if this component is in the persistent level
 
void CreatePhysicsState (bool bAllowDeferral=false)
 Create any physics engine information for this component
 
virtual void Deactivate ()
 Deactivates the SceneComponent.
 
virtual void DestroyComponent (bool bPromoteChildren=false)
 Unregister the component, remove it from its outer Actor's Components array and mark for pending kill.
 
void DestroyPhysicsState ()
 Shut down any physics engine structure for this component
 
void DetermineUCSModifiedProperties ()
 Initializes the list of properties that are modified by the UserConstructionScript
 
void DoDeferredRenderUpdates_Concurrent ()
 Uses the bRenderStateDirty/bRenderTransformDirty to perform any necessary work on this component. 更多...
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason)
 Ends gameplay for this component. 更多...
 
virtual bool GetComponentClassCanReplicate () const
 Returns true if this type of component can ever replicate, override to disable the default behavior
 
virtual TStructOnScope< FActorComponentInstanceData > GetComponentInstanceData () const
 Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation
 
ULevel * GetComponentLevel () const
 Return the ULevel that this Component is part of.
 
float GetComponentTickInterval () const
 Returns the tick interval for this component's primary tick function, which is the frequency in seconds at which it will be executed
 
virtual int32 GetFunctionCallspace (UFunction *Function, FFrame *Stack) override
 Return the space this function should be called. 更多...
 
FORCEINLINE bool GetIsReplicated () const
 Returns whether replication is enabled or not.
 
virtual void GetLifetimeReplicatedProps (TArray< FLifetimeProperty > &OutLifetimeProps) const override
 Returns properties that are replicated for the lifetime of the actor channel
 
uint32 GetMarkedForEndOfFrameUpdateState () const
 Tracks whether the component has been added to one of the world's end of frame update lists
 
uint32 GetMarkedForPreEndOfFrameSync () const
 Tracks whether the component has been added to one of the world's end of frame update lists
 
ENetMode GetNetMode () const
 Get the network mode (dedicated server, client, standalone, etc) for this component. 更多...
 
AActor * GetOwner () const
 Follow the Outer chain to get the AActor that 'Owns' this component
 
template<class T >
T * GetOwner () const
 Templated version of GetOwner(), will return nullptr if cast fails
 
ENetRole GetOwnerRole () const
 Get the network role of the Owner, or ROLE_None if there is no owner.
 
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()
 
class FSceneInterface * GetScene () const
 Returns the rendering scene associated with this component
 
void GetUCSModifiedProperties (TSet< const FProperty * > &ModifiedProperties) const
 Returns the list of properties that are modified by the UserConstructionScript
 
int32 GetUCSSerializationIndex () const
 Returns the UCS serialization index. 更多...
 
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
 
bool HasBeenCreated () const
 Indicates that OnCreatedComponent has been called, but OnDestroyedComponent has not yet
 
bool HasBeenInitialized () const
 Indicates that InitializeComponent has been called, but UninitializeComponent has not yet
 
bool HasBegunPlay () const
 Indicates that BeginPlay has been called, but EndPlay has not yet
 
virtual void InitializeComponent ()
 Initializes the component. 更多...
 
void InvalidateLightingCache ()
 Invalidate lighting cache with default options.
 
virtual void InvalidateLightingCacheDetailed (bool bInvalidateBuildEnqueuedLighting, bool bTranslationOnly)
 Called when this actor component has moved, allowing it to discard statically cached lighting information.
 
bool IsActive () const
 Returns whether the component is active or not 更多...
 
bool IsBeingDestroyed () const
 Returns whether the component is in the process of being destroyed.
 
virtual bool IsComponentTickEnabled () const
 Returns whether this component has tick enabled or not
 
bool IsCreatedByConstructionScript () const
 Returns true if instances of this component are created by either the user or simple construction script
 
bool IsEditableWhenInherited () const
 True if this component can be modified when it was inherited from a parent actor class
 
virtual bool IsNameStableForNetworking () const override
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsNavigationRelevant () const
 Override to specify that a component is relevant to the navigation system
 
bool IsNetMode (ENetMode Mode) const
 Test whether net mode is the given mode. 更多...
 
bool IsNetSimulating () const
 Returns true if we are replicating and this client is not authoritative
 
bool IsNetStartupComponent () const
 Returns true if this component was owned by a net startup actor during level load.
 
bool IsOwnerRunningUserConstructionScript () const
 See if the owning Actor is currently running the UCS
 
bool IsOwnerSelected () const
 Returns whether the component's owner is selected in the editor
 
bool IsPhysicsStateCreated () const
 Returns true if the physics 'state' (e.g. 更多...
 
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
 
FORCEINLINE bool IsRegistered () const
 See if this component is currently registered
 
bool IsRenderStateCreated () const
 Returns true if the render 'state' (e.g. 更多...
 
bool IsRenderStateDirty () const
 Is this component in need of its whole state being sent to the renderer?
 
bool IsRenderTransformDirty () const
 Is this component's transform in need of sending to the renderer?
 
virtual bool IsSupportedForNetworking () const override
 IsSupportedForNetworking means an object can be referenced over the network
 
void K2_DestroyComponent (UObject *Object)
 Unregister and mark for pending kill a component. 更多...
 
void MarkForNeededEndOfFrameRecreate ()
 If we belong to a world, mark this for a deferred update, otherwise do it now.
 
void MarkForNeededEndOfFrameUpdate ()
 If we belong to a world, mark this for a deferred update, otherwise do it now.
 
void MarkRenderDynamicDataDirty ()
 Indicate that dynamic data for this component needs to be sent at the end of the frame.
 
void MarkRenderStateDirty ()
 Mark the render state as dirty - will be sent to the render thread at the end of the frame.
 
void MarkRenderTransformDirty ()
 Marks the transform as dirty - will be sent to the render thread at the end of the frame
 
virtual bool NeedsLoadForClient () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForEditorGame () const override
 Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
 
virtual bool NeedsLoadForServer () const override
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual void OnActorEnableCollisionChanged ()
 Called on each component when the Actor's bEnableCollisionChanged flag changes
 
virtual void OnComponentCreated ()
 Called when a component is created (not loaded). 更多...
 
virtual void OnComponentDestroyed (bool bDestroyingHierarchy)
 Called when a component is destroyed 更多...
 
virtual void OnEndOfFrameUpdateDuringTick ()
 Allows components to handle an EOF update happening mid tick. 更多...
 
virtual void OnPreEndOfFrameSync ()
 Allows components to wait on outstanding tasks prior to sending EOF update data. 更多...
 
virtual void OnRep_IsActive ()
 Handles replication of active state, handles ticking by default but should be overridden as needed
 
virtual void PostInitProperties () override
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostLoad () override
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostRename (UObject *OldOuter, const FName OldName) override
 Called at the end of Rename(), but only if the rename was actually carried out
 
virtual void PreReplication (IRepChangedPropertyTracker &ChangedPropertyTracker)
 Called on the component right before replication occurs
 
void ReceiveBeginPlay ()
 Blueprint 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.
 
void ReceiveEndPlay (EEndPlayReason::Type EndPlayReason)
 Blueprint implementable event for when the component ends play, generally via destruction or its Actor's EndPlay.
 
void ReceiveTick (float DeltaSeconds)
 Event called every frame if tick is enabled
 
void RecreatePhysicsState ()
 Recreate the physics state right way.
 
void RecreateRenderState_Concurrent ()
 Recreate the render state right away. 更多...
 
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 更多...
 
void RegisterComponent ()
 Register this component, creating any rendering/physics state. 更多...
 
void RegisterComponentWithWorld (UWorld *InWorld, FRegisterComponentContext *Context=nullptr)
 Registers a component with a specific world, which creates any visual/physical state 更多...
 
virtual void RemoveTickPrerequisiteActor (AActor *PrerequisiteActor)
 Remove tick dependency on PrerequisiteActor.
 
virtual void RemoveTickPrerequisiteComponent (UActorComponent *PrerequisiteComponent)
 Remove tick dependency on PrerequisiteComponent.
 
void RemoveUCSModifiedProperties (const TArray< FProperty * > &Properties)
 Removes specified properties from the list of UCS-modified properties
 
virtual bool Rename (const TCHAR *NewName=NULL, UObject *NewOuter=NULL, ERenameFlags Flags=REN_None) override
 Rename this object to a unique name, or change its outer. 更多...
 
virtual bool ReplicateSubobjects (class UActorChannel *Channel, class FOutBunch *Bunch, FReplicationFlags *RepFlags)
 Allows a component to replicate other subobject on the actor

 
virtual bool RequiresGameThreadEndOfFrameRecreate () const
 return true if this component requires end of frame recreates to happen from the game thread.
 
virtual bool RequiresGameThreadEndOfFrameUpdates () const
 return true if this component requires end of frame updates to happen from the game thread.
 
virtual bool RequiresPreEndOfFrameSync () const
 return true if this component needs to sync to tasks before end of frame updates are executed
 
void ReregisterComponent ()
 Unregisters and immediately re-registers component.
 
virtual void Serialize (FArchive &Ar) override
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
virtual void SetActive (bool bNewActive, bool bReset=false)
 Sets whether the component is active or not 更多...
 
void SetActiveFlag (const bool bNewIsActive)
 Sets the value of bIsActive without causing other side effects to this instance. 更多...
 
virtual void SetAutoActivate (bool bNewAutoActivate)
 Sets whether the component should be auto activate or not. 更多...
 
void SetCanEverAffectNavigation (bool bRelevant)
 set value of bCanEverAffectNavigation flag and update navigation octree if needed
 
virtual void SetComponentTickEnabled (bool bEnabled)
 Set this component's tick functions to be enabled or disabled. 更多...
 
virtual void SetComponentTickEnabledAsync (bool bEnabled)
 Spawns a task on GameThread that will call SetComponentTickEnabled 更多...
 
void SetComponentTickInterval (float TickInterval)
 Sets the tick interval for this component's primary tick function. 更多...
 
void SetComponentTickIntervalAndCooldown (float TickInterval)
 Sets the tick interval for this component's primary tick function. 更多...
 
void SetIsNetStartupComponent (const bool bInIsNetStartupComponent)
 This should only be called by the engine in ULevel::InitializeNetworkActors to initialize bIsNetStartupComponent.
 
void SetIsReplicated (bool ShouldReplicate)
 Enable or disable replication. 更多...
 
void SetNetAddressable ()
 This signifies the component can be ID'd by name over the network. 更多...
 
void SetTickableWhenPaused (bool bTickableWhenPaused)
 Sets whether this component can tick when paused.
 
void SetTickGroup (ETickingGroup NewTickGroup)
 Changes the ticking group for this component
 
bool SetupActorComponentTickFunction (struct FTickFunction *TickFunction)
 Set up a tick function for a component in the standard way. 更多...
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)
 Function called every frame on this ActorComponent. 更多...
 
virtual void ToggleActive ()
 Toggles the active state of the component
 
 UActorComponent (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get())
 Default UObject constructor that takes an optional ObjectInitializer.
 
virtual void UninitializeComponent ()
 Handle this component being Uninitialized. 更多...
 
void UnregisterComponent ()
 Unregister this component, destroying any rendering/physics state.
 
virtual void UpdateComponentToWorld (EUpdateTransformFlags UpdateTransformFlags=EUpdateTransformFlags::None, ETeleportType Teleport=ETeleportType::None)
 Recalculate the value of our component to world transform
 
- Public 成员函数 继承自 UObject
void AbortInsideMemberFunction () const
 Abort with a member function call at the top of the callstack, helping to ensure that most platforms will stuff this object's memory into the resulting minidump.
 
virtual bool AreNativePropertiesIdenticalTo (UObject *Other) const
 Returns whether native properties are identical to the one of the passed in component. 更多...
 
virtual void BeginDestroy ()
 Called before destroying the object. 更多...
 
virtual void BuildSubobjectMapping (UObject *OtherObject, TMap< UObject *, UObject * > &ObjectMapping) const
 Given OtherObject (which will be the same type as 'this'), recursively find any matching sub-objects from 'this' that also exist within OtherObject, and add the mappings to ObjectMapping. 更多...
 
void CallAddReferencedObjects (FReferenceCollector &Collector)
 Helper function to call AddReferencedObjects for this object's class. 更多...
 
void CallFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 Internal VM method for executing a function
 
bool CallFunctionByNameWithArguments (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor, bool bForceCallWithNonExec=false)
 Handle calling a function by name when executed from the console or a command line
 
virtual bool CallRemoteFunction (UFunction *Function, void *Parms, struct FOutParmRec *OutParms, FFrame *Stack)
 Call the actor's function remotely 更多...
 
bool CheckDefaultSubobjects (bool bForceCheck=false) const
 Checks default sub-object assumptions. 更多...
 
void CollectDefaultSubobjects (TArray< UObject * > &OutDefaultSubobjects, bool bIncludeNestedSubobjects=false) const
 Uses the TArchiveObjectReferenceCollector to build a list of all components referenced by this object which have this object as the outer 更多...
 
bool ConditionalBeginDestroy ()
 Called before destroying the object. 更多...
 
bool ConditionalFinishDestroy ()
 Called when an object is actually destroyed, memory should never be accessed again
 
void ConditionalPostLoad ()
 PostLoad if needed.
 
void ConditionalPostLoadSubobjects (struct FObjectInstancingGraph *OuterInstanceGraph=NULL)
 Instances subobjects and components for objects being loaded from disk, if necessary. 更多...
 
 DECLARE_FUNCTION (execBreakpoint)
 Breakpoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (execInstrumentation)
 Instrumentation event for profiling; only observed in the builds with blueprint instrumentation
 
 DECLARE_FUNCTION (execPopExecutionFlow)
 Pops a code offset from the execution flow stack and starts execution there. 更多...
 
 DECLARE_FUNCTION (execPopExecutionFlowIfNot)
 Pops a code offset from the execution flow stack and starts execution there, if a condition is not true. 更多...
 
 DECLARE_FUNCTION (execPushExecutionFlow)
 Push a code offset onto the execution flow stack for future execution. 更多...
 
 DECLARE_FUNCTION (execReturnNothing)
 failsafe for functions that return a value - returns the zero value for a property and logs that control reached the end of a non-void function
 
 DECLARE_FUNCTION (execTracepoint)
 Tracepoint; only observed in the editor; executing it at any other time is a NOP
 
 DECLARE_FUNCTION (ProcessInternal)
 Internal function call processing. 更多...
 
void DestroyNonNativeProperties ()
 Destroy properties that won't be destroyed by the native destructor
 
void ExecuteUbergraph (int32 EntryPoint)
 Execute the ubergraph from a specific entry point
 
virtual void ExportCustomProperties (FOutputDevice &Out, uint32 Indent)
 Exports the property values for the specified object as text to the output device. 更多...
 
UFunction * FindFunction (FName InName) const
 Returns a UFunction with the specified name, wrapper for UClass::FindFunctionByName()
 
UFunction * FindFunctionChecked (FName InName) const
 Version of FindFunction() that will assert if the function was not found
 
virtual void FinishDestroy ()
 Called to finish destroying the object. 更多...
 
UObject * GetArchetype () const
 Return the template this object is based on. 更多...
 
void GetArchetypeInstances (TArray< UObject * > &Instances)
 Builds a list of objects which have this object in their archetype chain. 更多...
 
virtual void GetAssetRegistryTags (TArray< FAssetRegistryTag > &OutTags) const
 Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects 更多...
 
virtual const TCHAR * GetConfigOverridePlatform () const
 Returns the override config hierarchy platform (if NDAd platforms need defaults to not be in Base*.ini but still want editor to load them)
 
FString GetDefaultConfigFilename () const
 Get the default config filename for the specified UObject
 
virtual FString GetDesc ()
 Return a one line description of an object for viewing in the thumbnail view of the generic browser
 
FString GetDetailedInfo () const
 This will return detail info about this specific object. 更多...
 
virtual FName GetExporterName (void)
 Returns the name of the exporter factory used to export this object Used when multiple factories have the same extension
 
virtual int32 GetFunctionCallspace (UFunction *Function, FFrame *Stack)
 Return the space this function should be called. 更多...
 
FString GetGlobalUserConfigFilename () const
 Get the global user override config filename for the specified UObject
 
virtual void GetLifetimeReplicatedProps (TArray< class FLifetimeProperty > &OutLifetimeProps) const
 Returns properties that are replicated for the lifetime of the actor channel
 
virtual bool GetNativePropertyValues (TMap< FString, FString > &out_PropertyValues, uint32 ExportFlags=0) const
 Callback for retrieving a textual representation of natively serialized properties. 更多...
 
virtual int32 GetNetPushIdDynamic () const
 Should only ever be used by internal systems.
 
virtual void GetPreloadDependencies (TArray< UObject * > &OutDeps)
 Called during cooking. 更多...
 
virtual void GetPrestreamPackages (TArray< UObject * > &OutPrestream)
 Called during cooking. 更多...
 
virtual FPrimaryAssetId GetPrimaryAssetId () const
 Returns an Type:Name pair representing the PrimaryAssetId for this object. 更多...
 
FString GetProjectUserConfigFilename () const
 Get the project user override config filename for the specified UObject
 
SIZE_T GetResourceSizeBytes (EResourceSizeMode::Type Mode)
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the simple version which just returns the total number of bytes used by this object. 更多...
 
virtual void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize)
 Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). 更多...
 
virtual FRestoreForUObjectOverwrite * GetRestoreForUObjectOverwrite ()
 Save information for StaticAllocateObject in the case of overwriting an existing object. 更多...
 
virtual UScriptStruct * GetSparseClassDataStruct () const
 Return the UStruct corresponding to the sidecar data structure that stores data that is constant for all instances of this class.
 
virtual void GetSubobjectsWithStableNamesForNetworking (TArray< UObject * > &ObjList)
 Returns a list of sub-objects that have stable names for networking
 
template<class T >
FORCEINLINE bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
template<class T >
bool Implements () const
 Returns true if this object implements the interface T, false otherwise.
 
virtual void ImportCustomProperties (const TCHAR *SourceText, FFeedbackContext *Warn)
 Exports the property values for the specified object as text to the output device. 更多...
 
void InstanceSubobjectTemplates (struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper for calling UClass::InstanceSubobjectTemplates() for this object.
 
virtual bool IsAsset () const
 Returns true if this object is considered an asset.
 
bool IsBasedOnArchetype (const UObject *const SomeObject) const
 Determine if this object has SomeObject in its archetype chain.
 
virtual bool IsDestructionThreadSafe () const
 Called during garbage collection to determine if an object can have its destructor called on a worker thread. 更多...
 
virtual bool IsEditorOnly () const
 Called during saving to determine if the object is forced to be editor only or not 更多...
 
virtual bool IsFullNameStableForNetworking () const
 IsFullNameStableForNetworking means an object can be referred to its full path name over the network
 
bool IsInBlueprint () const
 Returns whether this object is contained in or part of a blueprint object
 
virtual bool IsLocalizedResource () const
 Returns true if this object is considered a localized resource.
 
virtual bool IsNameStableForNetworking () const
 IsNameStableForNetworking means an object can be referred to its path name (relative to outer) over the network
 
virtual bool IsPostLoadThreadSafe () const
 Called during async load to determine if PostLoad can be called on the loading thread. 更多...
 
virtual bool IsReadyForAsyncPostLoad () const
 Called before calling PostLoad() in FAsyncPackage::PostLoadObjects(). 更多...
 
virtual bool IsReadyForFinishDestroy ()
 Called to check if the object is ready for FinishDestroy. 更多...
 
virtual bool IsSafeForRootSet () const
 Returns true if this object is safe to add to the root set.
 
bool IsSelected () const
 Test the selection state of a UObject 更多...
 
virtual bool IsSupportedForNetworking () const
 IsSupportedForNetworking means an object can be referenced over the network
 
void LoadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Imports property values from an .ini file. 更多...
 
virtual void MarkAsEditorOnlySubobject ()
 Called during subobject creation to mark this component as editor only, which causes it to get stripped in packaged builds
 
FORCEINLINE bool Modify (bool bAlwaysMarkDirty=true)
 Note that the object will be modified. 更多...
 
virtual bool NeedsLoadForClient () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForEditorGame () const
 Called during saving to include this object in client/servers running in editor builds, even if they wouldn't normally be. 更多...
 
virtual bool NeedsLoadForServer () const
 Called during saving to determine the load flags to save with the object. 更多...
 
virtual bool NeedsLoadForTargetPlatform (const class ITargetPlatform *TargetPlatform) const
 Called during saving to determine the load flags to save with the object. 更多...
 
void OutputReferencers (FOutputDevice &Ar, FReferencerInformationList *Referencers=NULL)
 Outputs a string to an arbitrary output device, describing the list of objects which are holding references to this one. 更多...
 
virtual void OverridePerObjectConfigSection (FString &SectionName)
 Allows PerObjectConfig classes, to override the ini section name used for the PerObjectConfig object. 更多...
 
void ParseParms (const TCHAR *Parms)
 Import an object from a file.
 
virtual void PostCDOContruct ()
 Called after the C++ constructor has run on the CDO for a class. 更多...
 
virtual void PostDuplicate (bool bDuplicateForPIE)
 Called after duplication & serialization and before PostLoad. 更多...
 
virtual void PostEditImport ()
 Called after importing property values for this object (paste, duplicate or .t3d import) Allow the object to perform any cleanup for properties which shouldn't be duplicated or are unsupported by the script serialization
 
virtual void PostInitProperties ()
 Called after the C++ constructor and after the properties have been initialized, including those loaded from config. 更多...
 
virtual void PostInterpChange (FProperty *PropertyThatChanged)
 This is called when property is modified by InterpPropertyTracks 更多...
 
virtual void PostLoad ()
 Do any object-specific cleanup required immediately after loading an object. 更多...
 
virtual void PostLoadSubobjects (FObjectInstancingGraph *OuterInstanceGraph)
 Instances components for objects being loaded from disk, if necessary. 更多...
 
virtual void PostNetReceive ()
 Called right after receiving a bunch
 
virtual void PostReloadConfig (class FProperty *PropertyThatWasLoaded)
 Called from ReloadConfig after the object has reloaded its configuration data.
 
virtual void PostRename (UObject *OldOuter, const FName OldName)
 Called at the end of Rename(), but only if the rename was actually carried out
 
virtual void PostRepNotifies ()
 Called right after calling all OnRep notifies (called even when there are no notifies)
 
virtual void PostSaveRoot (bool bCleanupIsRequired)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual void PreDestroyFromReplication ()
 Called right before being marked for destruction due to network replication
 
virtual void PreDuplicate (FObjectDuplicationParameters &DupParams)
 Called before duplication. 更多...
 
virtual void PreNetReceive ()
 Called right before receiving a bunch
 
virtual void PreSave (const class ITargetPlatform *TargetPlatform)
 Presave function. 更多...
 
virtual bool PreSaveRoot (const TCHAR *Filename)
 Called from within SavePackage on the passed in base/root object. 更多...
 
virtual bool ProcessConsoleExec (const TCHAR *Cmd, FOutputDevice &Ar, UObject *Executor)
 This function handles a console exec sent to the object; it is virtual so 'nexus' objects like a player controller can reroute the command to several different objects.
 
virtual void ProcessEvent (UFunction *Function, void *Parms)
 Called by VM to execute a UFunction with a filled in UStruct of parameters
 
virtual UClass * RegenerateClass (UClass *ClassToRegenerate, UObject *PreviousCDO)
 Called on the target when a class is loaded with ClassGeneratedBy is loaded. 更多...
 
void ReinitializeProperties (UObject *SourceObject=NULL, struct FObjectInstancingGraph *InstanceGraph=NULL)
 Wrapper function for InitProperties() which handles safely tearing down this object before re-initializing it from the specified source object. 更多...
 
void ReloadConfig (UClass *ConfigClass=NULL, const TCHAR *Filename=NULL, uint32 PropagationFlags=UE4::LCPF_None, class FProperty *PropertyToLoad=NULL)
 Wrapper method for LoadConfig that is used when reloading the config data for objects at runtime which have already loaded their config data at least once. 更多...
 
virtual bool Rename (const TCHAR *NewName=nullptr, UObject *NewOuter=nullptr, ERenameFlags Flags=REN_None)
 Rename this object to a unique name, or change its outer. 更多...
 
void RetrieveReferencers (TArray< FReferencerInformation > *OutInternalReferencers, TArray< FReferencerInformation > *OutExternalReferencers)
 Called by OutputReferencers() to get the internal list of referencers to write
 
void SaveConfig (uint64 Flags=CPF_Config, const TCHAR *Filename=NULL, FConfigCacheIni *Config=GConfig, bool bAllowCopyToDefaultObject=true)
 Save configuration out to ini files 更多...
 
virtual void Serialize (FArchive &Ar)
 Handles reading, writing, and reference collecting using FArchive. 更多...
 
void SerializeScriptProperties (FArchive &Ar) const
 Serializes the script property data located at Data. 更多...
 
void SerializeScriptProperties (FStructuredArchive::FSlot Slot) const
 Serializes the script property data located at Data. 更多...
 
void SetLinker (FLinkerLoad *LinkerLoad, int32 LinkerIndex, bool bShouldDetachExisting=true)
 Changes the linker and linker index to the passed in one. 更多...
 
virtual void ShutdownAfterError ()
 After a critical error, perform any mission-critical cleanup, such as restoring the video mode orreleasing hardware resources.
 
void SkipFunction (FFrame &Stack, RESULT_DECL, UFunction *Function)
 advances Stack's code past the parameters to the given Function and if the function has a return value, copies the zero value for that property to the memory for the return value 更多...
 
virtual void TagSubobjects (EObjectFlags NewFlags)
 Tags objects that are part of the same asset with the specified object flag, used for GC checking 更多...
 
void UpdateDefaultConfigFile (const FString &SpecificFileLocation="")
 Saves just the section(s) for this class into the default ini file for the class (with just the changes from base)
 
void UpdateGlobalUserConfigFile ()
 Saves just the section(s) for this class into the global user ini file for the class (with just the changes from base)
 
void UpdateProjectUserConfigFile ()
 Saves just the section(s) for this class into the project user ini file for the class (with just the changes from base)
 
void UpdateSinglePropertyInConfigFile (const FProperty *InProperty, const FString &InConfigIniName)
 Saves just the property into the global user ini file for the class (with just the changes from base)
 
- Public 成员函数 继承自 UObjectBaseUtility
void AddToCluster (UObjectBaseUtility *ClusterRootOrObjectFromCluster, bool bAddAsMutableObject=false)
 Adds this objects to a GC cluster that already exists 更多...
 
FORCEINLINE void AddToRoot ()
 Add an object to the root set. 更多...
 
FORCEINLINE void AppendName (FString &ResultString) const
 Optimized version of GetName that appends to an existing string
 
FORCEINLINE bool AtomicallyClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Atomically clears passed in internal flags. 更多...
 
virtual bool CanBeClusterRoot () const
 Called after load to determine if the object can be a cluster root 更多...
 
virtual bool CanBeInCluster () const
 Called during cluster construction if the object can be added to a cluster 更多...
 
FORCEINLINE void ClearFlags (EObjectFlags NewFlags)
 Clears subset of flags for a specific object
 
FORCEINLINE void ClearInternalFlags (EInternalObjectFlags FlagsToClear) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE void ClearPendingKill ()
 Unmarks this object as PendingKill.
 
virtual void CreateCluster ()
 Called after PostLoad to create UObject cluster
 
void DetachExternalPackage ()
 Utility function to temporarily detach the object external package, if any GetPackage will report the outer's package once detached
 
const UClass * FindNearestCommonBaseClass (const UClass *TestClass) const
 Finds the most-derived class which is a parent of both TestClass and this object's class. 更多...
 
FORCEINLINE EObjectMark GetAllMarks () const
 Returns all of the object marks on a specific object 更多...
 
FString GetFullGroupName (bool bStartWithOuter) const
 Walks up the chain of packages until it reaches the top level, which it ignores. 更多...
 
void GetFullName (const UObject *StopOuter, FString &ResultString, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Version of GetFullName() that eliminates unnecessary copies.
 
FString GetFullName (const UObject *StopOuter=NULL, EObjectFullNameFlags Flags=EObjectFullNameFlags::None) const
 Returns the fully qualified pathname for this object as well as the name of the class, in the format: 'ClassName Outermost[.Outer].Name'. 更多...
 
void * GetInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to this object safely converted to a pointer of the specified interface class. 更多...
 
FORCEINLINE EInternalObjectFlags GetInternalFlags () const
 Gets internal flags. 更多...
 
class FLinkerLoad * GetLinker () const
 Returns the linker for this object. 更多...
 
int32 GetLinkerCustomVersion (FGuid CustomVersionKey) const
 Returns the custom version of the linker for this object corresponding to the given custom version key. 更多...
 
int32 GetLinkerIndex () const
 Returns this object's LinkerIndex. 更多...
 
int32 GetLinkerLicenseeUE4Version () const
 Returns the licensee version of the linker for this object. 更多...
 
int32 GetLinkerUE4Version () const
 Returns the UE4 version of the linker for this object. 更多...
 
FORCEINLINE EObjectFlags GetMaskedFlags (EObjectFlags Mask=RF_AllFlags) const
 Returns object flags that are both in the mask and set on the object. 更多...
 
FORCEINLINE FString GetName () const
 Returns the name of this object (with no path information) 更多...
 
FORCEINLINE void GetName (FString &ResultString) const
 Optimized version of GetName that overwrites an existing string
 
void * GetNativeInterfaceAddress (UClass *InterfaceClass)
 Returns a pointer to the I* native interface object that this object implements. 更多...
 
const void * GetNativeInterfaceAddress (UClass *InterfaceClass) const
 Returns a pointer to the const I* native interface object that this object implements. 更多...
 
UPackage * GetOutermost () const
 Legacy function, has the same behavior as GetPackage use GetPackage instead. 更多...
 
UObject * GetOutermostObject () const
 Walks up the list of outers until it finds the top-level one that isn't a package. 更多...
 
UPackage * GetPackage () const
 Walks up the list of outers until it finds a package directly associated with the object. 更多...
 
void GetPathName (const UObject *StopOuter, FString &ResultString) const
 Versions of GetPathName() that eliminates unnecessary copies and allocations.
 
FString GetPathName (const UObject *StopOuter=NULL) const
 Returns the fully qualified pathname for this object, in the format: 'Outermost[.Outer].Name' 更多...
 
FORCEINLINE TStatId GetStatID (bool bForDeferredUse=false) const
 Returns the stat ID of the object, used for profiling. 更多...
 
template<typename T >
T * GetTypedOuter () const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
UObject * GetTypedOuter (UClass *Target) const
 Traverses the outer chain searching for the next object of a certain type. 更多...
 
FORCEINLINE bool HasAllFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether all of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAllMarks (EObjectMark Marks) const
 Tests an object for having ALL of a set of marks 更多...
 
FORCEINLINE bool HasAnyFlags (EObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in flags are set. 更多...
 
FORCEINLINE bool HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const
 Used to safely check whether any of the passed in internal flags are set. 更多...
 
FORCEINLINE bool HasAnyMarks (EObjectMark Marks) const
 Tests an object for having ANY of a set of marks 更多...
 
template<class T >
bool IsA () const
 Returns true if this object is of the template type.
 
template<typename OtherClassType >
FORCEINLINE bool IsA (OtherClassType SomeBase) const
 Returns true if this object is of the specified type.
 
bool IsDefaultSubobject () const
 Returns whether this component was instanced from a component/subobject template, or if it is a component/subobject template. 更多...
 
bool IsIn (const UObject *SomeOuter) const
 Return the dispatch to IsInOuter or IsInPackage depending on SomeOuter's class. 更多...
 
bool IsIn (const UPackage *SomePackage) const
 Overload to determine if an object is in the specified package which can now be different than its outer chain. 更多...
 
bool IsInA (const UClass *SomeBaseClass) const
 Find out if this object is inside (has an outer) that is of the specified class 更多...
 
bool IsInOuter (const UObject *SomeOuter) const
 Returns true if the object is contained in the specified outer.
 
bool IsInPackage (const UPackage *SomePackage) const
 Returns true if the object is contained in the specified package.
 
FORCEINLINE bool IsNative () const
 Checks if the object is native.
 
FORCEINLINE bool IsPendingKill () const
 Checks the PendingKill flag to see if it is dead but memory still valid
 
FORCEINLINE bool IsPendingKillOrUnreachable () const
 Checks if the object is pending kill or unreachable.
 
FORCEINLINE bool IsRooted () const
 Returns true if this object is explicitly rooted 更多...
 
bool IsTemplate (EObjectFlags TemplateTypes=RF_ArchetypeObject|RF_ClassDefaultObject) const
 Determines whether this object is a template object 更多...
 
FORCEINLINE bool IsUnreachable () const
 Checks if the object is unreachable.
 
FORCEINLINE void Mark (EObjectMark Marks) const
 Adds marks to an object 更多...
 
bool MarkPackageDirty () const
 Finds the outermost package and marks it dirty. 更多...
 
FORCEINLINE void MarkPendingKill ()
 Marks this object as RF_PendingKill.
 
virtual void OnClusterMarkedAsPendingKill ()
 Called during Garbage Collection to perform additional cleanup when the cluster is about to be destroyed due to PendingKill flag being set on it.
 
FORCEINLINE bool operator< (const UObjectBaseUtility &Other) const
 Overloaded < operator. 更多...
 
void ReattachExternalPackage ()
 Utility function to reattach the object external package, if any GetPackage will report the object external package if set after this call
 
FORCEINLINE void RemoveFromRoot ()
 Remove an object from the root set.
 
bool RootPackageHasAnyFlags (uint32 CheckFlagMask) const
 Checks whether this object's top-most package has any of the specified flags 更多...
 
FORCEINLINE void SetFlags (EObjectFlags NewFlags)
 Modifies object flags for a specific object
 
FORCEINLINE void SetInternalFlags (EInternalObjectFlags FlagsToSet) const
 Clears passed in internal flags. 更多...
 
FORCEINLINE bool ThisThreadAtomicallyClearedRFUnreachable ()
 Atomically clear the unreachable flag 更多...
 
FORCEINLINE void UnMark (EObjectMark Marks) const
 Removes marks from and object 更多...
 
- Public 成员函数 继承自 UObjectBase
FORCENOINLINE void AtomicallyClearFlags (EObjectFlags FlagsToClear)
 Atomically clears the specified flags. 更多...
 
FORCENOINLINE void AtomicallySetFlags (EObjectFlags FlagsToAdd)
 Atomically adds the specified flags. 更多...
 
FORCEINLINE UClass * GetClass () const
 Returns the UClass that defines the fields of this object
 
UPackage * GetExternalPackage () const
 Returns the external UPackage associated with this object, if any
 
UPackage * GetExternalPackageInternal () const
 Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting.
 
FORCEINLINE EObjectFlags GetFlags () const
 Retrieve the object flags directly 更多...
 
FORCEINLINE FName GetFName () const
 Returns the logical name of this object
 
FORCEINLINE UObject * GetOuter () const
 Returns the UObject this object resides in
 
FORCEINLINE uint32 GetUniqueID () const
 Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多...
 
bool IsValidLowLevel () const
 Checks to see if the object appears to be valid 更多...
 
bool IsValidLowLevelFast (bool bRecursive=true) const
 Faster version of IsValidLowLevel. 更多...
 
void SetExternalPackage (UPackage *InPackage)
 Associate an external package directly to this object.
 
 UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName)
 Constructor used by StaticAllocateObject 更多...
 
virtual ~UObjectBase ()
 Final destructor, removes the object from the object array, and indirectly, from any annotations
 
- 静态 Public 成员函数 继承自 UObject
static void AddReferencedObjects (UObject *InThis, FReferenceCollector &Collector)
 Callback used to allow object register its direct object references that are not already covered by the token stream. 更多...
 
static bool CanCreateInCurrentContext (UObject *Template)
 Determines if you can create an object from the supplied template in the current context (editor, client only, dedicated server, game/listen) This calls NeedsLoadForClient & NeedsLoadForServer
 
static UObject * GetArchetypeFromRequiredInfo (const UClass *Class, const UObject *Outer, FName Name, EObjectFlags ObjectFlags)
 Return the template that an object with this class, outer and name would be 更多...
 
static const FName & SourceFileTagName ()
 Get the common tag name used for all asset source file import paths
 
static void UpdateClassesExcludedFromDedicatedClient (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated client builds
 
static void UpdateClassesExcludedFromDedicatedServer (const TArray< FString > &InClassNames, const TArray< FString > &InModulesNames)
 Update the list of classes that we should exclude from dedicated server builds
 
- 静态 Public 成员函数 继承自 UObjectBase
static void EmitBaseReferences (UClass *RootClass)
 Emit GC tokens for UObjectBase, this might be UObject::StaticClass or Default__Class
 
static FString RemoveClassPrefix (const TCHAR *ClassName)
 Removes the class prefix from the given string
 
- 静态 Public 属性 继承自 UActorComponent
static const FString ComponentTemplateNameSuffix
 Prefix used to identify template component instances
 
static FActorComponentGlobalCreatePhysicsSignature GlobalCreatePhysicsDelegate
 Create component physics state global delegate.
 
static FActorComponentGlobalDestroyPhysicsSignature GlobalDestroyPhysicsDelegate
 Destroy component physics state global delegate.
 
static FOnMarkRenderStateDirty MarkRenderStateDirtyEvent
 Called When render state is marked dirty
 
- 静态 Protected 成员函数 继承自 UActorComponent
static const FName GetReplicatesPropertyName ()
 Gets the property name for bReplicates. 更多...
 
- 静态 Protected 成员函数 继承自 UObjectBaseUtility
static void CreateClusterFromObject (UObjectBaseUtility *ClusterRootObject, UObjectBaseUtility *ReferencingObject)
 Helper function to create a cluster from UObject
 

详细描述

Movement component updates position of associated PrimitiveComponent during its tick

FloatingPawnMovement is a movement component that provides simple movement for any Pawn class. Limits on speed and acceleration are provided, while gravity is not implemented.

Normally the root component of the owning actor is moved, however another component may be selected (see SetUpdatedComponent()). During swept (non-teleporting) movement only collision of UpdatedComponent is considered, attached components will teleport to the end location ignoring collision.

成员函数说明

◆ ApplyControlInputToVelocity()

virtual void UFloatingPawnMovement::ApplyControlInputToVelocity ( float  DeltaTime)
protectedvirtual

Update Velocity based on input.

Also applies gravity.

类成员变量说明

◆ bPositionCorrected

uint32 UFloatingPawnMovement::bPositionCorrected
protected

Set to true when a position correction is applied.

Used to avoid recalculating velocity when this occurs.

◆ TurningBoost

float UFloatingPawnMovement::TurningBoost

Setting affecting extra force applied when changing direction, making turns have less drift and become more responsive.

Velocity magnitude is not allowed to increase, that only happens due to normal acceleration. It may decrease with large direction changes. Larger values apply extra force to reach the target direction more quickly, while a zero value disables any extra turn force.


该类的文档由以下文件生成: