# dear-imgui-unity **Repository Path**: FlyKOO/dear-imgui-unity ## Basic Information - **Project Name**: dear-imgui-unity - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-08 - **Last Updated**: 2023-12-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dear ImGui for Unity UPM package for the immediate mode GUI library, Dear ImGui (https://github.com/ocornut/imgui). ### Usage - [Add package](https://docs.unity3d.com/Manual/upm-ui-giturl.html) from git URL: https://github.com/realgamessoftware/dear-imgui-unity.git . - Add a `DearImGui` component to one of the objects in the scene. - When using the Universal Render Pipeline, add a `Render Im Gui Feature` render feature to the renderer asset. Assign it to the `render feature` field of the DearImGui component. - Subscribe to the `ImGuiUn.Layout` event and use ImGui functions. - Example script: ```cs using UnityEngine; using ImGuiNET; public class DearImGuiDemo : MonoBehaviour { void OnEnable() { ImGuiUn.Layout += OnLayout; } void OnDisable() { ImGuiUn.Layout -= OnLayout; } void OnLayout() { ImGui.ShowDemoWindow(); } } ``` ### See Also This package uses Dear ImGui C bindings by [cimgui](https://github.com/cimgui/cimgui) and the C# wrapper by [ImGui.NET](https://github.com/mellinoe/ImGui.NET). The development project for the package can be found at https://github.com/realgamessoftware/dear-imgui-unity-dev .