In my AActor derived class, I want to create a function that takes a FLiveLinkSubjectName as an argument.
According to the official documentation, LiveLinkTypes.h and ‘LiveLinkInterface’ module are required to use FLiveLinkSubjectName.
So I wrote the header file and .Build.cs file of my class as below.
#include "LiveLinkTypes.h"
UFUNCTION(BlueprintCallable, Category = "AnimBP Variable")
void SetLiveLinkSubjectNameInAnimBP(UClass* AnimBP, FString VariableName, FLiveLinkSubjectName Data);
///////////////////////////////
public class Test0803 : ModuleRules
{
public Test0803(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "LiveLink", "LiveLinkInterface", });
PrivateDependencyModuleNames.AddRange(new string[] { });
// Uncomment if you are using Slate UI
// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
// Uncomment if you are using online features
// PrivateDependencyModuleNames.Add("OnlineSubsystem");
// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
}
}
I made sure the LiveLink plugin in my UE project was also turned on.
After compiling, I got an error (C2079, C2664) that FLiveLinkSubjectName is not recognized. How can I solve this problem? ;_;…