ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.87k stars 305 forks source link

ImgGui.Button() function is not rendering in my program (.NET 7, ImGui.net ver 1.90.0.1, Veldrid.ImGui ver 5.72.0, ClickableTransparentOverlay ver 9.1.0, SixLabors.ImageSharp ver 3.0.2, Vortice.Mathematics ver 1.7.2) #450

Open DucksterBoo123 opened 10 months ago

DucksterBoo123 commented 10 months ago

Depending on where I place it, a debug panel is instanced with nothing inside it, or nothing happens and the code executes as if the button isn't there.

if (ImGui.Button("Button"))
{
    slide = 100; //this is assigning a number to an integer variable that is shared by a slider.
}
Screenshot 2023-11-21 at 13 03 51

The button should be below the check box and above the "You chose: person1" text output. This version of the code does not instance the debug panel and just runs was if the function was never there.

zaafar commented 10 months ago

sorry, I can not reproduce the issue locally. Looks like something wrong on your side.