dear-imgui-unity icon indicating copy to clipboard operation
dear-imgui-unity copied to clipboard

Possibility of integrating ImPlot?

Open oxysoft opened this issue 5 years ago • 1 comments

https://github.com/cimgui/cimplot

This ImGui extension with various data plotting features would be extremely useful in game development with Unity. Would it be possible to integrate it with this plugin for Unity?

oxysoft avatar Jun 17 '20 16:06 oxysoft

@oxysoft

cimplot uses exact structure as cimgui, and this generator uses it (Imgui.NET). This Unity project uses Imgui.NET.

https://github.com/mellinoe/ImGui.NET/tree/master/src/CodeGenerator

Second, inside generated files, you should rename 'using System.Numerics' to 'UnityEngine'.

Third, you will need to write wrapper around generated wrapper. Shouldn't be too much work.

So, with one/two day work you should be able to get something working.

viliwonka avatar Jul 06 '20 19:07 viliwonka