Navigation
API > API/Plugins > API/Plugins/GameplayCameras > API/Plugins/GameplayCameras/Core
References
| Module | GameplayCameras |
| Header | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Core/CameraVariableTable.h |
| Include | #include "Core/CameraVariableTable.h" |
Syntax
class FCameraVariableTable
Remarks
The camera variable table is a container for a collection of arbitrary values of various types. Only certain basic types are supported (most primitive types).
This table serves both as an implementation of the usual "blackboard" design, where gameplay systems can push any appropriate values into the camera system, and as a place for camera node evaluators to stash various things.
The main function of the variable table is that it is blended along with the camera rig it belongs to. Any matching values between to blended tables with be themselves blended, except for values flagged as "private".
Internally, the variable table is allocated as one continuous block of memory, plus a map of metadata keyed by variable ID. A variable ID can be anything, but will generally be the hash of the variable name.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FCameraVariableTable
(
FCameraVariableTable&& Other |
|||
FCameraVariableTable
(
const FCameraVariableTable& |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddVariable
(
const FCameraVariableDefinition& VariableDefinition |
Adds a variable to the table. | |
| void | |||
| bool | ContainsValue
(
FCameraVariableID VariableID |
||
| const ValueType * | FindValue
(
FCameraVariableID VariableID |
||
| ValueType | GetValue
(
FCameraVariableID VariableID, |
||
| VariableAssetType::ValueType | GetValue
(
const VariableAssetType* VariableAsset |
||
| const ValueType & | GetValue
(
FCameraVariableID VariableID |
||
| void | Initialize
(
const FCameraVariableTableAllocationInfo& AllocationInfo |
Initializes the variable table so that it fits the provided allocation info. | |
| bool | IsValueWritten
(
FCameraVariableID VariableID |
||
| bool | IsValueWrittenThisFrame
(
FCameraVariableID VariableID |
||
| void | Lerp
(
const FCameraVariableTable& ToTable, |
||
| void | Lerp
(
const FCameraVariableTable& ToTable, |
||
| void | LerpAll
(
const FCameraVariableTable& ToTable, |
||
| void | Override
(
const FCameraVariableTable& OtherTable, |
||
| void | Override
(
const FCameraVariableTable& OtherTable, |
||
| void | OverrideAll
(
const FCameraVariableTable& OtherTable |
||
| void | Serialize
(
FArchive& Ar |
||
| void | SetValue
(
FCameraVariableID VariableID, |
||
| void | SetValue
(
const FCameraVariableDefinition& VariableDefinition, |
||
| void | SetValue
(
const VariableAssetType* VariableAsset, |
||
| void | SetValue
(
FCameraVariableID VariableID, |
||
| bool | TryGetValue
(
const VariableAssetType* VariableAsset, |
||
| bool | TryGetValue
(
FCameraVariableID VariableID, |
||
| bool | TryGetVariableDefinition
(
FCameraVariableID VariableID, |
||
| bool | TrySetValue
(
FCameraVariableID VariableID, |
||
| bool | TrySetValue
(
FCameraVariableID VariableID, |
||
| void | |||
| void | UnsetValue
(
FCameraVariableID VariableID |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FCameraVariableTable & | operator=
(
FCameraVariableTable&& Other |
||
| FCameraVariableTable & | operator=
(
const FCameraVariableTable& |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EEntryFlags |