Files
UnrealEngineUWP/Engine/Source/Runtime/RigVM/Private/RigVMModule.cpp
Thomas Sarkanen 98c834dfd7 Control rig and RigVM changes to allow for data interface prototype to be further developed
This removes some of the dependencies on UControlRigBlueprint and replaces them with 'host' interfaces for URigVMController and URigVMGraph.
Also adds support for TScriptInterfaces in RigVM. This includes a modification of the RigVM parts of UHT.
Some of these changes are due to be reworked later to allow RigVM-hosting systems to not have to be also implemented in terms of control rig.

#rb Helge.Mathee,Sara.Schvartzman
#fyi Helge.Mathee,Sara.Schvartzman
#preflight 624d857aa64871f1a11ef3f9

[CL 19645705 by Thomas Sarkanen in ue5-main branch]
2022-04-06 08:26:45 -04:00

39 lines
1.1 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
/*=============================================================================
RigVM.h: Module implementation.
=============================================================================*/
#include "RigVMModule.h"
#include "Modules/ModuleManager.h"
#include "HAL/IConsoleManager.h"
IMPLEMENT_MODULE(FDefaultModuleImpl, RigVM);
DEFINE_LOG_CATEGORY(LogRigVM);
#if UE_RIGVM_UOBJECT_PROPERTIES_ENABLED
TAutoConsoleVariable<bool> CVarRigVMEnableUObjects(TEXT("RigVM.UObjectSupport"), true, TEXT("When true the RigVMCompiler will allow UObjects."));
#endif
#if UE_RIGVM_UINTERFACE_PROPERTIES_ENABLED
TAutoConsoleVariable<bool> CVarRigVMEnableUInterfaces(TEXT("RigVM.UInterfaceSupport"), true, TEXT("When true the RigVMCompiler will allow UInterfaces."));
#endif
bool RigVMCore::SupportsUObjects()
{
#if UE_RIGVM_UOBJECT_PROPERTIES_ENABLED
return CVarRigVMEnableUObjects.GetValueOnGameThread();
#else
return false;
#endif
}
bool RigVMCore::SupportsUInterfaces()
{
#if UE_RIGVM_UINTERFACE_PROPERTIES_ENABLED
return CVarRigVMEnableUInterfaces.GetValueOnGameThread();
#else
return false;
#endif
}