Navigation
API > API/Plugins > API/Plugins/ScriptPlugin
Script context for this component
| Name | FScriptContextBase |
| Type | class |
| Header File | /Engine/Plugins/ScriptPlugin/Source/ScriptPlugin/Classes/ScriptBlueprintGeneratedClass.h |
| Include Path | #include "ScriptBlueprintGeneratedClass.h" |
Syntax
class FScriptContextBase
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FScriptContextBase() |
ScriptBlueprintGeneratedClass.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BeginPlay() |
Sends BeginPlay event to the script | ScriptBlueprintGeneratedClass.h | |
bool CallFunction
(
const FString& FunctionName |
Calls arbitrary script function (no arguments) given its name. | ScriptBlueprintGeneratedClass.h | |
bool CanTick() |
ScriptBlueprintGeneratedClass.h | ||
void Destroy() |
Sends Destroy event to the script and destroys the script. | ScriptBlueprintGeneratedClass.h | |
virtual void FetchScriptPropertyValues
(
UScriptBlueprintGeneratedClass* Class, |
Fetches all property values from script to class instance. | ScriptBlueprintGeneratedClass.h | |
bool GetBoolProperty
(
const FString& PropertyName |
ScriptBlueprintGeneratedClass.h | ||
float GetFloatProperty
(
const FString& PropertyName |
ScriptBlueprintGeneratedClass.h | ||
int32 GetIntProperty
(
const FString& PropertyName |
ScriptBlueprintGeneratedClass.h | ||
| ScriptBlueprintGeneratedClass.h | |||
void GetScriptDefinedFields
(
TArray< FScriptField >& OutFields |
Returns a list of exported fields from script (member variables and functions). | ScriptBlueprintGeneratedClass.h | |
| ScriptBlueprintGeneratedClass.h | |||
| Initializes script context given script code | ScriptBlueprintGeneratedClass.h | ||
void InvokeScriptFunction
(
FFrame& Stack, |
Invokes script function from Blueprint code | ScriptBlueprintGeneratedClass.h | |
virtual void PushScriptPropertyValues
(
UScriptBlueprintGeneratedClass* Class, |
Pushes all property values from class instance to script. | ScriptBlueprintGeneratedClass.h | |
bool SetBoolProperty
(
const FString& PropertyName, |
ScriptBlueprintGeneratedClass.h | ||
bool SetFloatProperty
(
const FString& PropertyName, |
ScriptBlueprintGeneratedClass.h | ||
bool SetIntProperty
(
const FString& PropertyName, |
ScriptBlueprintGeneratedClass.h | ||
| ScriptBlueprintGeneratedClass.h | |||
| ScriptBlueprintGeneratedClass.h | |||
void Tick
(
float DeltaTime |
Sends Tick event to the script | ScriptBlueprintGeneratedClass.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FScriptContextBase * CreateContext
(
const FString& SourceCode, |
Creates a script context object | ScriptBlueprintGeneratedClass.h | |
| Gets supported script file formats (UFactory formats) | ScriptBlueprintGeneratedClass.h |