Navigation
API > API/Plugins > API/Plugins/RigVM
Inheritance Hierarchy
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMHost.h |
| Include | #include "RigVMHost.h" |
Syntax
UCLASS&40;Abstract, EditInlineNew&41;
class URigVMHost :
public UObject,
public IInterface_AssetUserData
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AbsoluteTime | Current delta time | |
| TArray< TObjectPtr< UAssetUserData > > | AssetUserData | Array of user data stored with the asset | |
| bool | bAccumulateTime | True if we should increase the AbsoluteTime | |
| bool | bEnableLogging | ||
| bool | bRequiresInitExecution | ||
| FRigVMDebugInfo | DebugInfo | ||
| float | DeltaTime | Current delta time | |
| FRigVMDrawContainer | DrawContainer | ||
| FRigVMDrawInterface | DrawInterface | The draw interface for the units to use | |
| TArray< FName > | EventQueue | The event name used during an update | |
| TArray< FName > | EventQueueToRun | ||
| TMap< FName, int32 > | EventsToRunOnce | ||
| int32 | ExecuteBracket | ||
| FRigVMExecutedEvent | ExecutedEvent | Broadcasts a notification whenever the RigVMHost is executed / updated. | |
| float | FramesPerSecond | Current delta time | |
| int32 | InitBracket | ||
| FRigVMExecutedEvent | InitializedEvent | Broadcasts a notification whenever the RigVMHost's memory is initialized. | |
| TMap< FString, bool > | LoggedMessages | ||
| TWeakObjectPtr< USceneComponent > | OuterSceneComponent | ||
| FRigVMLog * | RigVMLog | ||
| TObjectPtr< URigVM > | VM | ||
| FRigVMRuntimeSettings | VMRuntimeSettings |
Constructors
| Type | Name | Description | |
|---|---|---|---|
URigVMHost
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AdaptEventQueueForEvaluate
(
TArray< FName >& InOutEventQueueToRun |
Provides the chance to a subclass to modify the event queue as needed | |
| void | AddBreakpoint
(
int32 InstructionIndex, |
Adds a breakpoint in the VM at the InstructionIndex for the Node / Subject | |
| bool | |||
| void | These are needed so that sequencer can have a chance to update its RigVMHost instances after the package is fully end-loaded | ||
| bool | CanExecute () |
Is valid for execution | |
| uint32 | ComputeAndUpdateCDOHash
(
URigVMHost* InCDO |
||
| void | Copy the default values of external variables from the default object | ||
| void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
||
| void | Evaluate at Any Thread | ||
| bool | Execute | ||
| bool | Execute_Internal
(
const FName& InEventName |
ExecuteUnits | |
| bool | ExecuteBreakpointAction
(
const ERigVMBreakpointAction BreakpointAction |
If the VM is halted at a breakpoint, it sets a breakpoint action so that it is applied on the next VM execution | |
| bool | ExecuteEvent
(
const FName& InEventName |
Execute a user defined event | |
| TArray< URigVMHost * > | FindRigVMHosts
(
UObject* Outer, |
||
| float | Gets the current absolute time | ||
| float | Returns the current frames per second (this may change over time) | ||
| FRigVMDebugInfo & | GetDebugInfo () |
||
| float | GetDeltaTime () |
Gets the current delta time | |
| FRigVMDrawContainer & | |||
| const FRigVMDrawContainer & | |||
| const FRigVMDrawInterface & | |||
| FRigVMDrawInterface & | |||
| FCriticalSection & | Locks for the scope of Evaluate_AnyThread | ||
| const TArray< FName > & | Returns the queue of events to run | ||
| FRigVMExtendedExecuteContext & | Provide access to the ExtendedExecuteContext | ||
| const FRigVMExtendedExecuteContext & | Provide access to the ExtendedExecuteContext | ||
| TArray< FRigVMExternalVariable > | Returns the member properties as an external variable array | ||
| TArray< FRigVMExternalVariable > | GetExternalVariablesImpl
(
bool bFallbackToBlueprint |
||
| const FRigVMBreakpoint & | |||
| FRigVMLog * | GetLog () |
||
| const FRigVMLog * | GetLog () |
||
| FString | GetName () |
||
| USceneComponent * | |||
| UScriptStruct * | Returns the public context script struct to use for this owner | ||
| FRigVMExternalVariable | GetPublicVariableByName
(
const FName& InVariableName |
Returns a public variable given its name | |
| FProperty * | GetPublicVariableProperty
(
const FName& InVariableName |
||
| TArray< FRigVMExternalVariable > | Returns the public member properties as an external variable array | ||
| T | GetPublicVariableValue
(
const FName& InVariableName |
||
| TArray< FName > | Returns the names of variables accessible in scripting | ||
| FRigVMExtendedExecuteContext & | |||
| URigVM * | GetSnapshotVM
(
bool bCreateIfNeeded |
Creates the snapshot VM if required and returns it | |
| const TArray< FName > & | |||
| FString | GetVariableAsString
(
const FName& InVariableName |
Returns the value of a given variable as a string | |
| FName | GetVariableType
(
const FName& InVariableName |
Returns the type of a given variable | |
| URigVM * | GetVM () |
||
| UWorld * | GetWorld () |
UObject interface | |
| void | HandleExecutionReachedExit
(
const FName& InEventName |
||
| void | Initialize
(
bool bRequestInit |
Initialize things for the RigVM owner | |
| void | |||
| bool | InitializeVM
(
const FName& InEventName |
Initialize the VM | |
| void | Copy the VM from the default object | ||
| void | |||
| bool | IsExecuting () |
||
| bool | |||
| bool | |||
| bool | IsRunOnceEvent
(
const FName& InEventName |
Returns true if an event is queued to run once | |
| void | LogOnce
(
EMessageSeverity::Type InSeverity, |
||
| FOnEndLoadPackage & | |||
| FRigVMExecutedEvent & | |||
| FRigVMExecutedEvent & | |||
| void | PostInitInstance
(
URigVMHost* InCDO |
||
| void | |||
| bool | RemoveRunOnceEvent
(
const FName& InEventName |
Removes an event running once | |
| void | RequestInit () |
Requests to perform an init during the next execution | |
| void | RequestRunOnceEvent
(
const FName& InEventName, |
Requests to run an event once | |
| void | SetAbsoluteAndDeltaTime
(
float InAbsoluteTime, |
Set the current absolute and delta times | |
| void | SetAbsoluteTime
(
float InAbsoluteTime, |
Set the current absolute time | |
| void | SetBreakpointAction
(
const ERigVMBreakpointAction& Action |
||
| void | SetDeltaTime
(
float InDeltaTime |
Set the current delta time | |
| void | SetEventQueue
(
const TArray< FName >& InEventNames |
Sets the queue of events to run | |
| void | SetFramesPerSecond
(
float InFramesPerSecond |
Set the current fps | |
| void | SetIsInDebugMode
(
const bool bValue |
||
| void | |||
| void | SetPublicVariableValue
(
const FName& InVariableName, |
||
| bool | SetVariableFromString
(
const FName& InVariableName, |
Returns the value of a given variable as a string | |
| bool | |||
| bool | SupportsEvent
(
const FName& InEventName |
||
| void | SwapVMToNativizedIfRequired
(
UClass* InNativizedClass |
||
| void | Update the settings such as array bound and log facilities |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IInterface_AssetUserData
| Type | Name | Description | |
|---|---|---|---|
| void | AddAssetUserData
(
UAssetUserData* InUserData |
||
| const TArray< UAssetUserData * > * | |||
| UAssetUserData * | GetAssetUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
||
| void | RemoveUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnEndLoadPackage | Bindable event for external objects to be notified that a RigVMHost is fully end-loaded | ||
| FRigVMExecutedEvent |