Skip to content

Instantly share code, notes, and snippets.

@BenVlodgi
Last active January 4, 2024 21:00
Show Gist options
  • Save BenVlodgi/22fe263672386832505422310702f939 to your computer and use it in GitHub Desktop.
Save BenVlodgi/22fe263672386832505422310702f939 to your computer and use it in GitHub Desktop.
Unreal Engine Plugin Module Startup to support GameplayTags

Add this code to your plugin module's startup if you want GameplayTag .ini files to be searched for and found in your plugin. This isn't nessessary for Modular GameFeature Plugins.

#include "Interfaces/IPluginManager.h"
#include "GameplayTagsManager.h"

void FSupraCoreModule::StartupModule()
{
	TSharedPtr<IPlugin> ThisPlugin = IPluginManager::Get().FindPlugin(TEXT("SupraCore"));
	check(ThisPlugin.IsValid());
	UGameplayTagsManager::Get().AddTagIniSearchPath(ThisPlugin->GetBaseDir() / TEXT("Config") / TEXT("Tags"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment