Files
BladeSmith/Plugins/MiceShaders/Source/MiceShaders/Private/MiceShaders.cpp
T

24 lines
849 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "MiceShaders.h"
#include "Interfaces/IPluginManager.h"
#define LOCTEXT_NAMESPACE "FMiceShadersModule"
void FMiceShadersModule::StartupModule()
{
// This code will execute after your module is loaded into memory; the exact timing is specified in the .uplugin file per-module
FString PluginShaderDir = FPaths::Combine(IPluginManager::Get().FindPlugin(TEXT("MiceShaders"))->GetBaseDir(), TEXT("Shaders"));
AddShaderSourceDirectoryMapping(TEXT("/MiceShaders/Shaders"), PluginShaderDir);
}
void FMiceShadersModule::ShutdownModule()
{
// This function may be called during shutdown to clean up your module. For modules that support dynamic reloading,
// we call this function before unloading the module.
}
#undef LOCTEXT_NAMESPACE
IMPLEMENT_MODULE(FMiceShadersModule, MiceShaders)