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

Abstract Base class for all tick functions. 更多...

#include <EngineBaseTypes.h>

+ 类 FTickFunction 继承关系图:

Public 成员函数

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 属性

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. 更多...
 

详细描述

Abstract Base class for all tick functions.

成员函数说明

◆ AddPrerequisite()

void FTickFunction::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

参数
TargetObject- UObject containing this tick function. Only used to verify that the other pointer is still usable
TargetTickFunction- Actual tick function to use as a prerequisite

◆ GetActualEndTickGroup()

TEnumAsByte< enum ETickingGroup > FTickFunction::GetActualEndTickGroup ( ) const
inline

Gets the action tick group that this function will be required to end in.

Only valid after TG_PreAsyncWork has started through the end of the frame.

◆ GetActualTickGroup()

TEnumAsByte< enum ETickingGroup > FTickFunction::GetActualTickGroup ( ) const
inline

Gets the action tick group that this function will be elligible to start in.

Only valid after TG_PreAsyncWork has started through the end of the frame.

◆ GetCompletionHandle()

FGraphEventRef FTickFunction::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.

Only valid after TG_PreAsyncWork has started and then only until the TickFunction finishes execution

◆ GetPrerequisites() [1/2]

TArray< struct FTickPrerequisite > & FTickFunction::GetPrerequisites ( )
inline
返回
a reference to prerequisites for this tick function.

◆ GetPrerequisites() [2/2]

const TArray< struct FTickPrerequisite > & FTickFunction::GetPrerequisites ( ) const
inline
返回
a reference to prerequisites for this tick function (const).

◆ RegisterTickFunction()

void FTickFunction::RegisterTickFunction ( class ULevel *  Level)

Adds the tick function to the master list of tick functions.

参数
Level- level to place this tick function in

◆ RemovePrerequisite()

void FTickFunction::RemovePrerequisite ( UObject *  TargetObject,
struct FTickFunction &  TargetTickFunction 
)

Removes a prerequisite that was previously added.

参数
TargetObject- UObject containing this tick function. Only used to verify that the other pointer is still usable
TargetTickFunction- Actual tick function to use as a prerequisite

◆ SetPriorityIncludingPrerequisites()

void FTickFunction::SetPriorityIncludingPrerequisites ( bool  bInHighPriority)

Sets this function to hipri and all prerequisites recursively

参数
bInHighPriority- priority to set

类成员变量说明

◆ bCanEverTick

uint8 FTickFunction::bCanEverTick

If false, this tick function will never be registered and will never tick.

Only settable in defaults.

◆ bTickEvenWhenPaused

uint8 FTickFunction::bTickEvenWhenPaused

Bool indicating that this function should execute even if the game is paused.

Pause ticks are very limited in capabilities.

◆ EndTickGroup

TEnumAsByte<enum ETickingGroup> FTickFunction::EndTickGroup

Defines the tick group that this tick function must finish in.

These groups determine the relative order of when objects tick during a frame update.

参见
ETickingGroup

◆ TickGroup

TEnumAsByte<enum ETickingGroup> FTickFunction::TickGroup

Defines the minimum tick group for this tick function.

These groups determine the relative order of when objects tick during a frame update. Given prerequisites, the tick may be delayed.

参见
ETickingGroup
FTickFunction::AddPrerequisite()

◆ TickInterval

float FTickFunction::TickInterval

The frequency in seconds at which this tick function will be executed.

If less than or equal to 0 then it will tick every frame


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