engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
FActorTickFunction结构体 参考

Tick function that calls AActor::TickActor 更多...

#include <EngineBaseTypes.h>

+ 类 FActorTickFunction 继承关系图:

Public 成员函数

virtual ENGINE_API FName DiagnosticContext (bool bDetailed) override
 Function to give a 'context' for this tick, used for grouped active tick reporting
 
virtual ENGINE_API FString DiagnosticMessage () override
 Abstract function to describe this tick. 更多...
 
virtual ENGINE_API void ExecuteTick (float DeltaTime, ELevelTick TickType, ENamedThreads::Type CurrentThread, const FGraphEventRef &MyCompletionGraphEvent) override
 Abstract function actually execute the tick. 更多...
 
- Public 成员函数 继承自 FTickFunction
void AddPrerequisite (UObject *TargetObject, struct FTickFunction &TargetTickFunction)
 Adds a tick function to the list of prerequisites...in other words, adds the requirement that TargetTickFunction is called before this tick function is 更多...
 
 FTickFunction ()
 Default constructor, intitalizes to reasonable defaults
 
TEnumAsByte< enum ETickingGroup > GetActualEndTickGroup () const
 Gets the action tick group that this function will be required to end in. 更多...
 
TEnumAsByte< enum ETickingGroup > GetActualTickGroup () const
 Gets the action tick group that this function will be elligible to start in. 更多...
 
FGraphEventRef GetCompletionHandle () const
 Gets the current completion handle of this tick function, so it can be delayed until a later point when some additional tasks have been completed. 更多...
 
TArray< struct FTickPrerequisite > & GetPrerequisites ()
 
const TArray< struct FTickPrerequisite > & GetPrerequisites () const
 
bool IsCompletionHandleValid () const
 Returns whether it is valid to access this tick function's completion handle
 
bool IsTickFunctionEnabled () const
 Returns whether the tick function is currently enabled
 
bool IsTickFunctionRegistered () const
 See if the tick function is currently registered
 
void RegisterTickFunction (class ULevel *Level)
 Adds the tick function to the master list of tick functions. 更多...
 
void RemovePrerequisite (UObject *TargetObject, struct FTickFunction &TargetTickFunction)
 Removes a prerequisite that was previously added. 更多...
 
void SetPriorityIncludingPrerequisites (bool bInHighPriority)
 Sets this function to hipri and all prerequisites recursively 更多...
 
void SetTickFunctionEnable (bool bInEnabled)
 Enables or disables this tick function.
 
void UnRegisterTickFunction ()
 Removes the tick function from the master list of tick functions.
 
void UpdateTickIntervalAndCoolDown (float NewTickInterval)
 Update tick interval in the system and overwrite the current cooldown if any.
 
virtual ~FTickFunction ()
 Destructor, unregisters the tick function
 

Public 属性

class AActor * Target
 AActor that is the target of this tick
 
- Public 属性 继承自 FTickFunction
uint8 bAllowTickOnDedicatedServer:1
 If we allow this tick to run on a dedicated server
 
uint8 bCanEverTick:1
 If false, this tick function will never be registered and will never tick. 更多...
 
uint8 bHighPriority:1
 Run this tick first within the tick group, presumably to start async tasks that must be completed with this tick group, hiding the latency.
 
uint8 bRunOnAnyThread:1
 If false, this tick will run on the game thread, otherwise it will run on any thread in parallel with the game thread and in parallel with other "async ticks"
 
uint8 bStartWithTickEnabled:1
 If true, this tick function will start enabled, but can be disabled later on.
 
uint8 bTickEvenWhenPaused:1
 Bool indicating that this function should execute even if the game is paused. 更多...
 
TEnumAsByte< enum ETickingGroup > EndTickGroup
 Defines the tick group that this tick function must finish in. 更多...
 
TEnumAsByte< enum ETickingGroup > TickGroup
 Defines the minimum tick group for this tick function. 更多...
 
float TickInterval
 The frequency in seconds at which this tick function will be executed. 更多...
 

详细描述

Tick function that calls AActor::TickActor

成员函数说明

◆ DiagnosticMessage()

virtual ENGINE_API FString FActorTickFunction::DiagnosticMessage ( )
overridevirtual

Abstract function to describe this tick.

Used to print messages about illegal cycles in the dependency graph

重载 FTickFunction .

◆ ExecuteTick()

virtual ENGINE_API void FActorTickFunction::ExecuteTick ( float  DeltaTime,
ELevelTick  TickType,
ENamedThreads::Type  CurrentThread,
const FGraphEventRef &  MyCompletionGraphEvent 
)
overridevirtual

Abstract function actually execute the tick.

参数
DeltaTime- frame time to advance, in seconds
TickType- kind of tick for this frame
CurrentThread- thread we are executing on, useful to pass along as new tasks are created
MyCompletionGraphEvent- completion event for this task. Useful for holding the completetion of this task until certain child tasks are complete.

重载 FTickFunction .


该结构体的文档由以下文件生成: