Navigation
API > API/Plugins > API/Plugins/RigVM
Inheritance Hierarchy
- UObject
- IInterface_AssetUserData
- URigVMHost
- UControlRig
- UAdditiveControlRig
- UFKControlRig
- UModularRig
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMHost.h |
| Include | #include "RigVMHost.h" |
Syntax
UCLASS (Abstract, EditInlineNew)
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 | |
| TArray< TObjectPtr< UAssetUserData > > | AssetUserDataEditorOnly | 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 not ification 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. | |
| FRigVMInstructionVisitInfo | InstructionVisitInfo | ||
| TMap< FString, bool > | LoggedMessages | ||
| TWeakObjectPtr< USceneComponent > | OuterSceneComponent | ||
| FRigVMProfilingInfo | ProfilingInfo | ||
| FRigVMLog * | RigVMLog | ||
| TMap< FString, FSoftObjectPath > | UserDefinedEnumToPathName | ||
| TMap< FString, FSoftObjectPath > | UserDefinedStructGuidToPathName | ||
| 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 | AddAssetUserData
(
UAssetUserData* InUserData |
||
| void | AddBreakpoint
(
int32 InstructionIndex, |
Adds a breakpoint in the VM at the InstructionIndex for the Node / Subject | |
| bool | |||
| void | BeginDestroy () |
||
| 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 | |
| void | Copy the default values of external variables from the default object | ||
| void | CopyVMMemory
(
FRigVMExtendedExecuteContext& TargetContext, |
||
| void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
||
| bool | |||
| void | DrawIntoPDI
(
FPrimitiveDrawInterface* PDI, |
||
| void | Evaluate at Any Thread | ||
| bool | Execute
(
const FName& InEventName |
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, |
||
| void | |||
| float | Gets the current absolute time | ||
| const TArray< UAssetUserData * > * | |||
| UAssetUserData * | GetAssetUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
||
| float | Returns the current frames per second (this may change over time) | ||
| const FRigVMDebugInfo & | GetDebugInfo () |
||
| FRigVMDebugInfo & | GetDebugInfo () |
||
| const FRigVMMemoryStorageStruct * | |||
| FRigVMMemoryStorageStruct * | The instanced debug watch memory. | ||
| const FRigVMMemoryStorageStruct * | GetDefaultMemoryByType
(
ERigVMMemoryType InMemoryType |
Returns the compiler generated VM memory storage by type. | |
| float | GetDeltaTime () |
Gets the current delta time | |
| const FRigVMDrawContainer & | |||
| FRigVMDrawContainer & | |||
| FRigVMDrawInterface & | |||
| const FRigVMDrawInterface & | |||
| FCriticalSection & | Locks for the scope of Evaluate_AnyThread | ||
| const TArray< FName > & | Returns the queue of events to run | ||
| const FRigVMExtendedExecuteContext & | Provide access to the ExtendedExecuteContext | ||
| FRigVMExtendedExecuteContext & | Provide access to the ExtendedExecuteContext | ||
| TArray< FRigVMExternalVariable > | Returns the member properties as an external variable array | ||
| TArray< FRigVMExternalVariable > | GetExternalVariablesImpl
(
bool bFallbackToBlueprint |
||
| const FRigVMBreakpoint & | |||
| FRigVMMemoryStorageStruct * | The default const literal memory. | ||
| const FRigVMMemoryStorageStruct * | |||
| FRigVMLog * | GetLog () |
||
| const FRigVMLog * | GetLog () |
||
| const FRigVMMemoryStorageStruct * | GetMemoryByType
(
ERigVMMemoryType InMemoryType |
||
| FRigVMMemoryStorageStruct * | GetMemoryByType
(
ERigVMMemoryType InMemoryType |
Returns an instanced VM memory storage by type. | |
| FString | GetName () |
||
| USceneComponent * | |||
| const FRigVMProfilingInfo & | |||
| FRigVMProfilingInfo & | |||
| 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 |
||
| FRigVMExtendedExecuteContext & | |||
| const FRigVMExtendedExecuteContext & | |||
| 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 > & | |||
| TArray< const UObject * > | GetUserDefinedDependencies
(
const TArray< const FRigVMMemoryStorageStruct* > InMemory |
||
| 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 () |
||
| const FRigVMMemoryStorageStruct * | |||
| FRigVMMemoryStorageStruct * | The instanced mutable work memory. | ||
| UWorld * | GetWorld () |
UObject interface | |
| void | HandleExecutionReachedExit
(
const FName& InEventName |
||
| void | Initialize
(
bool bRequestInit |
Initialize things for the RigVM owner | |
| bool | Initialize the CDO VM | ||
| void | |||
| bool | InitializeVM
(
const FName& InEventName |
Initialize this Host VM Instance | |
| void | Copy the VM from the default object | ||
| void | |||
| bool | IsEvaluating () |
Returns true if Evaluate_AnyThread is currently executing | |
| bool | IsExecuting () |
||
| bool | IsGarbageOrDestroyed
(
const UObject* InObject |
||
| bool | |||
| bool | |||
| bool | Returns true if this host requires the VM memory to be initialized | ||
| bool | |||
| bool | IsRunOnceEvent
(
const FName& InEventName |
Returns true if an event is queued to run once | |
| void | |||
| FOnEndLoadPackage & | |||
| FRigVMExecutedEvent & | |||
| FRigVMExecutedEvent & | |||
| void | PostInitInstance
(
URigVMHost* InCDO |
||
| void | |||
| void | PostLoad () |
||
| void | PreSave
(
FObjectPreSaveContext ObjectSaveContext |
||
| void | Regenerates cached handles after a structural change (i.e. new UUserStruct) | ||
| bool | RemoveRunOnceEvent
(
const FName& InEventName |
Removes an event running once | |
| void | RemoveUserDataOfClass
(
TSubclassOf< UAssetUserData > InUserDataClass |
||
| void | RequestInit () |
Requests to perform an init during the next execution | |
| void | RequestRunOnceEvent
(
const FName& InEventName, |
Requests to run an event once | |
| UObject * | ResolveUserDefinedTypeById
(
const FString& InTypeName |
||
| void | Serialize
(
FArchive& Ar |
||
| 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, |
||
| void | SetRigVMExtendedExecuteContext
(
FRigVMExtendedExecuteContext* InRigVMExtendedExecuteContext |
||
| 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 |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FOnEndLoadPackage | Bindable event for external objects to be notified that a RigVMHost is fully end-loaded | ||
| FRigVMExecutedEvent |