-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImPlot support? #2
Comments
Hello! Yes, I'm trying to compile ImGui.NET libs like implot, imnodes, etc, but seems to be very unstable and crash often even on ImGui.NET. So, yeah, I'm planning to add the ImPlot. Thank you. |
It's possible to do, check out https://github.com/TillAlex/ImGui.NET-nativebuild/tree/additional_libraries . I use it all the time inside of unity. It's a bit of a pain to set up, but I can send you the package I made to make it work inside of unity if need be. |
It will be great. I'm trying to recompile each library with the most stable version but it's not working. Thank you =) |
Hm, unfortunately I don't have them running on the most recent version... Sorry about that! Though, it seems that ImGuiNET/ImGui.NET#218 (comment) will help quite a bit! |
I'm following that but isn't work yet. I will try a little more before bothering them. Thanks. |
I got Implot working in Unity. |
Files for current package (including dlls) |
Example code, hopefully all this will be sufficient.
|
Main modifications was in |
I managed to work with the most recent commit, but I wondering if I wait they release the new version - probably 1.84 - or if I make a branch to 1.82 with implot, etc without docking support, etc. The last option has some impact to rewrite a lot of code and that imply to not have freetype too. =/ |
My version I uploaded has docking support, works with ImPlot too (since it is part of window anyway). As for rewriting Imgui.NET, in my experience just consists of changing vector2/3 to unity's vector2/3 afaik, but I believe u had more work done in it. |
Had a more code to rewrite because I choose to work with Freetype and WCHAR. But we're having some progress. =) If someone want to test use this branch: https://github.com/psydack/uimgui/tree/feature/add-support-implot-imnodes-imguizmos |
Now you can use imnodes and imguizmo. private void OnLayout(UImGui uImGui)
{
if (ImGui.Begin("ImNodes window"))
{
imnodes.BeginNodeEditor();
imnodes.BeginNode(1);
imnodes.BeginNodeTitleBar();
ImGui.TextUnformatted("simple node :)");
imnodes.EndNodeTitleBar();
imnodes.BeginInputAttribute(2);
ImGui.Text("input");
imnodes.EndInputAttribute();
imnodes.BeginOutputAttribute(3);
ImGui.Indent(40);
ImGui.Text("output");
imnodes.EndOutputAttribute();
imnodes.EndNode();
imnodes.EndNodeEditor();
ImGui.End();
}
} I'm studying the best way to deploy and distribute these tools as addons. |
Cool :D How is with imnodes support, afaik it requires tons of libraries (sdl ?) |
It didn't require any lib to run but cimgui at least. If you want to see it what changes, check this comparison: main...feature/add-support-implot-imnodes-imguizmos |
Hi there!
Good work on this repo btw! It's so nice to have ImGui working in Unity without a hassle.
One question I have is, have you considered adding ImPlot to this package?
I actually compiled
cimgui
,cimplot
andImPlot.NET
from scratch yesterday and added it touimgui
, but the end result was just having Unity crash when I try to use anyImPlot
functions in Unity. I'm guessing the problem is that my compiler environment is not set up properly (compiler flags, etc.). Or maybe ImPlot won't work since it uses GPU acceleration?Anyway, I was just curious if adding ImPlot is something you would consider for this repo?
Thanks
The text was updated successfully, but these errors were encountered: