Firefly74
(Firefly74)
October 17, 2016, 9:57am
1
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 !
Saxanth
(Saxanth)
October 17, 2016, 3:06pm
2
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");
Firefly74
(Firefly74)
October 17, 2016, 4:34pm
3
Thanks for the reply ! But shouldn’t it be the other way arround ? (refferencing my game , so my edotir got access to the data ? )
Saxanth
(Saxanth)
October 17, 2016, 5:35pm
4
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.
Firefly74
(Firefly74)
October 17, 2016, 9:14pm
5
ok, that make sens ! i will try that towmorow ! thanks for the reply !