This literally took me days, as it turn out that the timing offset between C++ and BP Init of GameIstance caused it to not be added as a GlobalObject to SPUD correctly.
49 lines
1.6 KiB
C#
49 lines
1.6 KiB
C#
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
using UnrealBuildTool;
|
|
using System.IO;
|
|
|
|
public class VRExpPluginExample : ModuleRules
|
|
{
|
|
public VRExpPluginExample(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
|
// PrivatePCHHeaderFile = "Private/WindowsMixedRealityPrecompiled.h";
|
|
|
|
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AdvancedSessions", "VRExpansionPlugin", "SPUD" });
|
|
|
|
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
|
|
}
|
|
}
|
|
|
|
public class SPUDExamples : ModuleRules
|
|
{
|
|
private string PluginsPath
|
|
{
|
|
get { return Path.GetFullPath( Path.Combine( ModuleDirectory, "../../Plugins/" ) ); }
|
|
}
|
|
|
|
protected void AddSPUD() {
|
|
// Linker
|
|
PrivateDependencyModuleNames.AddRange(new string[] { "SPUD" });
|
|
// Headers
|
|
PublicIncludePaths.Add(Path.Combine( PluginsPath, "SPUD", "Source", "SPUD", "Public"));
|
|
}
|
|
|
|
public SPUDExamples(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
|
|
|
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
|
|
|
|
AddSPUD();
|
|
}
|
|
}
|