Navigation
API > API/Plugins > API/Plugins/GameplayCameras
A simple stack of evaluation contexts. The top one is the active one.
| Name | FCameraEvaluationContextStack |
| Type | struct |
| Header File | /Engine/Plugins/Cameras/GameplayCameras/Source/GameplayCameras/Public/Core/CameraEvaluationContextStack.h |
| Include Path | #include "Core/CameraEvaluationContextStack.h" |
Syntax
struct FCameraEvaluationContextStack
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FCameraEvaluationContextStack() |
Core/CameraEvaluationContextStack.h |
Structs
| Name | Remarks |
|---|---|
| FContextEntry |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Entries | TArray< FContextEntry > | The entries in the stack. | Core/CameraEvaluationContextStack.h | |
| Evaluator | FCameraSystemEvaluator * | The owner evaluator. | Core/CameraEvaluationContextStack.h | |
| OnStackChangedEvent | FSimpleMulticastDelegate | An event raised when the stack changes. | Core/CameraEvaluationContextStack.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AddChildContext
(
TSharedRef< FCameraEvaluationContext > Context, |
Tries to add a context inside the given context. | Core/CameraEvaluationContextStack.h | |
void AddReferencedObjects
(
FReferenceCollector& Collector |
Core/CameraEvaluationContextStack.h | ||
TSharedPtr< FCameraEvaluationContext > GetActiveContext() |
Gets the active (top) context. | Core/CameraEvaluationContextStack.h | |
void GetAllContexts
(
TArray< TSharedPtr< FCameraEvaluationContext > >& OutContexts |
Gets all the contexts in the stack, from bottom to top. | Core/CameraEvaluationContextStack.h | |
bool HasContext
(
TSharedRef< FCameraEvaluationContext > Context |
Returns whether the given context exists in the stack. | Core/CameraEvaluationContextStack.h | |
void Initialize
(
FCameraSystemEvaluator& InEvaluator |
Internal API. | Core/CameraEvaluationContextStack.h | |
int32 NumContexts() |
The number of contexts on the stack. | Core/CameraEvaluationContextStack.h | |
void OnEndCameraSystemUpdate() |
Core/CameraEvaluationContextStack.h | ||
FSimpleMulticastDelegate & OnStackChanged() |
An event raised when the stack changes. | Core/CameraEvaluationContextStack.h | |
void PopContext() |
Pop the active (top) context. | Core/CameraEvaluationContextStack.h | |
void PushContext
(
TSharedRef< FCameraEvaluationContext > Context |
Push a new context on the stack and instantiate its director. | Core/CameraEvaluationContextStack.h | |
bool RemoveContext
(
TSharedRef< FCameraEvaluationContext > Context |
Remove an existing context from the stack. | Core/CameraEvaluationContextStack.h | |
bool RemoveContextsOwnedBy
(
UObject* ContextOwner, |
Remove contexts owned by the given object. | Core/CameraEvaluationContextStack.h | |
void Reset() |
Empties the stack of all contexts. | Core/CameraEvaluationContextStack.h |