FTickPrerequisite

This is small structure to hold prerequisite tick functions

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/EngineBaseTypes.h

Include

#include "Engine/EngineBaseTypes.h"

Syntax

struct FTickPrerequisite

Remarks

This is small structure to hold prerequisite tick functions

Variables

Name Description

Public variable

TWeakObjectPtr<...

 

PrerequisiteObject

Tick functions live inside of UObjects, so we need a separate weak pointer to the UObject solely for the purpose of determining if PrerequisiteTickFunction is still valid.

Public variable

FTickFunction &...

 

PrerequisiteTickFunction

Pointer to the actual tick function and must be completed prior to our tick running.

Constructors

Name Description

Public function

FTickPrerequisite()

Noop constructor.

Public function

FTickPrerequisite

(
    UObject* TargetObject,
    FTickFunction& TargetTickFunction
)

Constructor

Functions

Name Description

Public function

FTickFunctio...

 

Get()

Return the tick function, if it is still valid.

Public function Const

const FTickF...

 

Get()

Operators

Name Description

Public function Const

bool

 

operator==

(
    const FTickPrerequisite& Other
)

Equality operator, used to prevent duplicates and allow removal by value.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss