How to access types defined in runtime module from editor module without depending on it
I've got a runtime & editor module in my plugin. My runtime module defines a custom actor component & a struct. The runtime module uses static functions from the editor module ( #if WITH_EDITOR) by adding a dependency to the editor module if (target.build == target.editor). It does that to react to changes made to the actor component in the details panel.
It works as intended this way. But my static functions defined in the editor module need to work on types defined in the runtime module. If I add the runtime module as dependency to my editor module and include the type defining classes I won't be able to start a project with the plugin enabled since the modules can't be loaded. I assume it's due to circular dependecy?
Is there a way to access the types defined in the runtime module without depending on it? Can I export them somehow?
Solved it by implementing a third module that only declares the necessary types. The other modules add it as dependency and no circular depedency occurs.
answered Jun 25 '18 at 01:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here