Access cutom Component data in pluggin

Hey, i’m quite new to UE, and here my question :

I want to make an editor for objects having a custom Component ( call it CompoMain )

Thing is ,in pluggin, i don’t succed to have access to said component data, any idea how to do that ?

additional : ‘CompoMain’ will call methods on secondary components.

Currently i have my editor ui working for “selected Actors”

Thanks ! :slight_smile:

You need to add the component as a PublicDependencyModuleName || PrivateDependencyModuleName to the project.

In your Projects Build.cs file, add

PublicDependencyModuleNames.Add("NAMEOFYOURPLUGIN");
PublicIncludePaths.Add("NAMEOFYOURPLUGIN/Public");

if you require private access

PrivateDependencyModuleNames.Add("NAMEOFYOURPLUGIN");
PrivateIncludePlaths.Add("NAMEOFYOURPLUGIN/Private");

Thanks for the reply ! But shouldn’t it be the other way arround ? (refferencing my game , so my edotir got access to the data ? )

Plugins should not reference Applications, only other modules. Your editor will only understand the datatypes provided by the Plugin, just the same as the application.

To have both the Editor and the Application understand CompoMain, it needs to be in the plugin, and the plugin needs to be referenced by the Application and Editor.

ok, that make sens ! i will try that towmorow ! thanks for the reply !