Jump to content

[SOLVED] 2.17 Template Editor Plugin is not loaded by Editor


photo

Recommended Posts

Hi,

With 2.17, I create a new project with a template Editor plugin (named MyFeature), and compile it. The plugin LocalMyFeature_editorplugin_double_x64.dll is correctly compiled and placed in bin\plugins\Local\MyFeature. But when the editor is launched, the plugin is not loaded (not visible in the Edtior Plugin Manager window).

What am I missing?

Link to comment

The editor_log shows this:

10:12:23 WARNING:    Editor.PluginSystem: Your plugin is ignored by UnigineEditor due to incompatible version/precision.
10:12:23 WARNING:    UnigineEditor v.2.17.0.1 (double precision)
10:12:23 WARNING:    LocalMyFeature_editorplugin_double_x64.dll plugin v.2.17.0.1 (float precision)
10:12:23 WARNING:    
10:12:23 WARNING:    Plugin precision (float) and Editor precision (double) do not match.
10:12:23 WARNING:    Your project seems to be configured improperly. Try adding the UNIGINE_DOUBLE preprocessor definition to your plugin project and rebuilding it.

 

But the plugin IS compiled with UNIGINE_DOUBLE:

image.png.985b612cde764975b5887230fa0dd84f.png

(In fact, no modification has been made from the files installed by the SDKBrowser created project)

Link to comment

Indeed.

So for completeness, the vcxproj contains the MOC step, which uses $(MOC_DOUBLE) which should be evaluated to -DUNIGINE_DOUBLE but for some reason this setting is missing in 2.17.

Simply replacing $(MOC_DOUBLE) with -DUNIGINE_DOUBLE is enough to make it work. But for a more robust fix, where would you set the MOC_DOUBLE variable?

Link to comment
  • silent changed the title to [SOLVED] 2.17 Template Editor Plugin is not loaded by Editor
×
×
  • Create New...