realgamessoftware / dear-imgui-unity

Unity package for Dear ImGui
MIT License
465 stars 115 forks source link

Possibility of integrating ImPlot? #13

Open oxysoft opened 4 years ago

oxysoft commented 4 years ago

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?

viliwonka commented 4 years ago

@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.