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

FScopedMovementUpdate creates a new movement scope, within which propagation of moves may be deferred until the end of the outermost scope that does not defer updates. 更多...

#include <SceneComponent.h>

+ 类 FScopedMovementUpdate 继承关系图:

Public 成员函数

void AppendBlockingHitAfterMove (const FHitResult &Hit)
 Add blocking hit that will get processed once the move is committed. 更多...
 
void AppendOverlapsAfterMove (const TOverlapArrayView &NewPendingOverlaps, bool bSweep, bool bIncludesOverlapsAtEnd)
 Add overlaps to the queued overlaps array. 更多...
 
void ForceOverlapUpdate ()
 Force full overlap update once this scope finishes.
 
const FScopedMovementUpdate * GetOuterDeferredScope () const
 Get the scope containing this scope. 更多...
 
const TScopedBlockingHitArray & GetPendingBlockingHits () const
 Returns the list of pending blocking hits, which will be used for notifications once the move is committed.
 
const TScopedOverlapInfoArray & GetPendingOverlaps () const
 Returns the pending overlaps within this scope.
 
bool HasMoved (EHasMovedTransformOption CheckTransform) const
 Returns whether movement has occurred at all during this scope, optionally checking if the transform is different (since changing scale does not go through a move). 更多...
 
bool HasPendingOverlaps () const
 Returns true if there are pending overlaps queued in this scope.
 
void InvalidateCurrentOverlaps ()
 Clear overlap state at current location, we don't know what it is.
 
bool IsDeferringUpdates () const
 Return true if deferring updates, false if updates are applied immediately.
 
bool IsTransformDirty () const
 Returns true if the Component's transform differs from that at the start of the scoped update.
 
void KeepCurrentOverlapsAfterRotation (bool bSweep)
 Keep current pending overlaps after a move but make note that there was movement (just a symmetric rotation).
 
bool RequiresOverlapsEventFlag () const
 Returns true if we require GetGenerateOverlapEvents() on both the moving object and the overlapped object to add them to the pending overlaps list. 更多...
 
void RevertMove ()
 Revert movement to the initial location of the Component at the start of the scoped update. 更多...
 
void SetHasTeleported (ETeleportType InTeleportType)
 Registers that this move is a teleport
 

Protected 成员函数

template<typename AllocatorType >
TOptional< TOverlapArrayView > GetOverlapsAtEnd (class UPrimitiveComponent &PrimComponent, TArray< FOverlapInfo, AllocatorType > &OutEndOverlaps, bool bTransformChanged) const
 Fills in the list of overlaps at the end location (in EndOverlaps). 更多...
 

友元

class USceneComponent
 

详细描述

FScopedMovementUpdate creates a new movement scope, within which propagation of moves may be deferred until the end of the outermost scope that does not defer updates.

Moves within this scope will avoid updates such as UpdateBounds(), OnUpdateTransform(), UpdatePhysicsVolume(), UpdateChildTransforms() etc until the move is committed (which happens when the last deferred scope goes out of context).

Note that non-deferred scopes are not allowed within outer scopes that defer updates, and any attempt to use one will change the inner scope to use deferred updates.

成员函数说明

◆ AppendBlockingHitAfterMove()

FORCEINLINE_DEBUGGABLE void FScopedMovementUpdate::AppendBlockingHitAfterMove ( const FHitResult &  Hit)

Add blocking hit that will get processed once the move is committed.

This is intended for use only by SceneComponent and its derived classes.

◆ AppendOverlapsAfterMove()

void FScopedMovementUpdate::AppendOverlapsAfterMove ( const TOverlapArrayView &  NewPendingOverlaps,
bool  bSweep,
bool  bIncludesOverlapsAtEnd 
)

Add overlaps to the queued overlaps array.

This is intended for use only by SceneComponent and its derived classes whenever movement is performed.

◆ GetOuterDeferredScope()

FORCEINLINE const FScopedMovementUpdate * FScopedMovementUpdate::GetOuterDeferredScope ( ) const

Get the scope containing this scope.

A scope only has an outer scope if they both defer updates.

◆ GetOverlapsAtEnd()

template<typename AllocatorType >
TOptional< TOverlapArrayView > FScopedMovementUpdate::GetOverlapsAtEnd ( class UPrimitiveComponent &  PrimComponent,
TArray< FOverlapInfo, AllocatorType > &  OutEndOverlaps,
bool  bTransformChanged 
) const
protected

Fills in the list of overlaps at the end location (in EndOverlaps).

Returns pointer to the list, or null if it can't be computed.

◆ HasMoved()

FORCEINLINE bool FScopedMovementUpdate::HasMoved ( EHasMovedTransformOption  CheckTransform) const

Returns whether movement has occurred at all during this scope, optionally checking if the transform is different (since changing scale does not go through a move).

RevertMove() sets this back to false.

◆ RequiresOverlapsEventFlag()

FORCEINLINE bool FScopedMovementUpdate::RequiresOverlapsEventFlag ( ) const

Returns true if we require GetGenerateOverlapEvents() on both the moving object and the overlapped object to add them to the pending overlaps list.

These flags will still be required when dispatching calls to UpdateOverlaps(), but this allows some custom processing of queued overlaps that would be otherwise missed along the way.

◆ RevertMove()

void FScopedMovementUpdate::RevertMove ( )

Revert movement to the initial location of the Component at the start of the scoped update.

Also clears pending overlaps and sets bHasMoved to false.


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