ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.81k stars 298 forks source link

Method System.Numerics.Vector2 ImGuiNET.ImGui.CalcTextSize(System.String) Not Found. #418

Closed gregkwaste closed 1 year ago

gregkwaste commented 1 year ago

After upgrading from 1.88 to 189.6 I get the following error when trying to use Imgui.CalcTextSize :

{"Method not found: 'System.Numerics.Vector2 ImGuiNET.ImGui.CalcTextSize(System.String)'."}

Any ideas?

zaafar commented 1 year ago

you may wanna re-compile the whole project. What we did going from 1.88 to 1.89+ is a backward incompatible change. Following is the code I tested and it works fine on my side.


            string abc = "foo";
            var kkk = ImGui.CalcTextSize(abc);
            ImGui.Text(kkk.ToString());

Please share the code here so I can reproduce the issue on my side.

zaafar commented 1 year ago

image

gregkwaste commented 1 year ago

Crap you are right, I was using a local imgui.net dll on one of my projects. Works as intended.