Navigation
API > API/Runtime > API/Runtime/Core
This struct allows you to cache a value for a frame, and automatically invalidates when the frame advances. If the value was set this frame, IsSet() returns true and GetValue() is valid.
| Name | TFrameValue |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/FrameValue.h |
| Include Path | #include "Misc/FrameValue.h" |
Syntax
template<typename ValueType>
struct TFrameValue
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TFrameValue () |
Construct an OptionalType with no value; i.e. unset | Misc/FrameValue.h | |
TFrameValue
(
const ValueType& InValue |
Construct an OptionalType with a valid value. | Misc/FrameValue.h | |
TFrameValue
(
ValueType&& InValue |
Misc/FrameValue.h | ||
TFrameValue
(
const TFrameValue& InValue |
Copy/Move construction | Misc/FrameValue.h | |
TFrameValue
(
TFrameValue&& InValue |
Misc/FrameValue.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FrameSet | uint64 | Misc/FrameValue.h | ||
| Value | TOptional< ValueType > | Misc/FrameValue.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ValueType & GetValue() |
Misc/FrameValue.h | ||
bool IsSet() |
Misc/FrameValue.h | ||
ValueType TryGetValue
(
ValueType UnsetValue |
Misc/FrameValue.h | ||
ValueType TryGetValue
(
ValueType UnsetValue |
Misc/FrameValue.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TFrameValue & operator=
(
const TFrameValue& InValue |
Misc/FrameValue.h | ||
TFrameValue & operator=
(
TFrameValue&& InValue |
Misc/FrameValue.h | ||
TFrameValue & operator=
(
const ValueType& InValue |
Misc/FrameValue.h | ||
TFrameValue & operator=
(
ValueType&& InValue |
Misc/FrameValue.h |