Navigation
API > API/Plugins > API/Plugins/UAF
Trait Event Lifetime
This encapsulates a specific lifetime duration.
| Name | FTraitEventLifetime |
| Type | struct |
| Header File | /Engine/Plugins/Experimental/UAF/UAF/Source/UAF/Public/TraitCore/TraitEventLifetime.h |
| Include Path | #include "TraitCore/TraitEventLifetime.h" |
Syntax
struct FTraitEventLifetime
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FTraitEventLifetime () |
Creates an expired lifetime. | TraitCore/TraitEventLifetime.h | |
constexpr FTraitEventLifetime
(
uint32 InLifetimeCount |
TraitCore/TraitEventLifetime.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| EXPIRED_LIFETIME | uint32 | Expired lifetime duration. | TraitCore/TraitEventLifetime.h |
| INFINITE_LIFETIME | uint32 | Infinite lifetime duration. | TraitCore/TraitEventLifetime.h |
| TRANSIENT_LIFETIME | uint32 | Transient lifetime duration. | TraitCore/TraitEventLifetime.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LifetimeCount | uint32 | TraitCore/TraitEventLifetime.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Decrement() |
Decrements the lifetime count and returns whether or not it has expired in the process. | TraitCore/TraitEventLifetime.h | |
bool IsExpired() |
Returns whether or not this lifetime has expired. | TraitCore/TraitEventLifetime.h | |
bool IsInfinite() |
Returns whether or not this lifetime is infinite. | TraitCore/TraitEventLifetime.h | |
bool IsTransient() |
Returns whether or not this lifetime is transient. | TraitCore/TraitEventLifetime.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FTraitEventLifetime MakeInfinite() |
Creates a lifetime that extends forever. | TraitCore/TraitEventLifetime.h | |
static FTraitEventLifetime MakeTransient() |
Creates a lifetime that extends until the next graph update terminates. | TraitCore/TraitEventLifetime.h | |
static FTraitEventLifetime MakeUntil
(
uint32 LifetimeCount |
Creates a lifetime that extends for the specified number of graph updates. | TraitCore/TraitEventLifetime.h |