Navigation
API > API/Runtime > API/Runtime/CoreUObject
Helper struct for dealing with tracking blueprint context and exceptions
| Name | FBlueprintContextTracker |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/Script.h |
| Include Path | #include "UObject/Script.h" |
Syntax
struct FBlueprintContextTracker : public TThreadSingleton< FBlueprintContextTracker >
Inheritance Hierarchy
- FTlsAutoCleanup → TThreadSingleton → FBlueprintContextTracker
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBlueprintContextTracker() |
UObject/Script.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FOnEnterScriptContext | TMulticastDelegate_ThreeParams< void, const struct FBlueprintContextTracker &, const UObject *, const UFunction * > | Delegate called from EnterScriptContext, could be called on any thread! This can be used to detect entries into script from native code | UObject/Script.h |
| FOnExitScriptContext | TMulticastDelegate_OneParam< void, const struct FBlueprintContextTracker & > | Delegate called from ExitScriptContext, could be called on any thread! This can be used to clean up debugging context | UObject/Script.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| OnEnterScriptContext | FOnEnterScriptContext | UObject/Script.h | |
| OnExitScriptContext | FOnExitScriptContext | UObject/Script.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bRanaway | bool | UObject/Script.h | ||
| bScriptTimedOut | bool | UObject/Script.h | ||
| DisplayedWarningsMap | TMap< FName, int32 > | Map of reported access warnings in exception handler. | UObject/Script.h | |
| FFrame | friend | Only FFrame can modify the stack. | UObject/Script.h | |
| Recurse | int32 | UObject/Script.h | ||
| Runaway | int32 | Runaway tracking. | UObject/Script.h | |
| ScriptEntryTag | int32 | Script entry point tracking, enter/exit context. | UObject/Script.h | |
| ScriptStack | TArray< FFrame * > | Stack pointers from the VM to be unrolled when we assert. | UObject/Script.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddRunaway() |
Increments and returns the Runaway counter | UObject/Script.h | |
void EnforceScriptTimeLimit () |
Called periodically when branching occurs. | UObject/Script.h | |
| Called at the start of a script function execution | UObject/Script.h | ||
void ExitScriptContext() |
Called at the end of a script function execution | UObject/Script.h | |
TArrayView< const FFrame *const > GetCurrentScriptStack() |
Returns current script stack frame | UObject/Script.h | |
TArrayView< FFrame *const > GetCurrentScriptStackWritable() |
UObject/Script.h | ||
int32 GetScriptEntryTag() |
Returns how many function executions deep we are, may be higher than ScriptStack size | UObject/Script.h | |
| Returns current script stack frame | UObject/Script.h | ||
bool RecordAccessViolation
(
const UObject* Object |
Record an access violation warning for a specific object, returns true if warning should be logged | UObject/Script.h | |
void ResetRunaway() |
Resets runaway tracking, will unset flag | UObject/Script.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FBlueprintContextTracker & Get() |
UObject/Script.h | ||
static const FBlueprintContextTracker * TryGet() |
UObject/Script.h |