Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.88 KB

README.md

File metadata and controls

55 lines (44 loc) · 1.88 KB

Dear ImGui for Unity - ImGUI v1.85

UPM package for the immediate mode GUI library, Dear ImGui (https://github.com/ocornut/imgui).

Usage

image

  • Subscribe to the ImGuiUn.Layout event and use ImGui functions.
  • Example script:
    using UnityEngine;
    using ImGuiNET;
    
    public class DearImGuiDemo : MonoBehaviour
    {
        void OnEnable()
        {
            ImGuiUn.Layout += OnLayout;
        }
    
        void OnDisable()
        {
            ImGuiUn.Layout -= OnLayout;
        }
    
        void OnLayout()
        {
            ImGui.ShowDemoWindow();
        }
    }

Supported platforms

  • Windows (64 bit only)
  • MacOS
  • Linux
  • Android
  • TODO: iOS (maybe)

See Also

This package uses Dear ImGui C bindings by cimgui and the C# wrapper by ImGui.NET.

The development project for the package can be found at https://github.com/GuybrushThreepwood-GitHub/dear-imgui-unity-dev (forked from: https://github.com/realgamessoftware/dear-imgui-unity-dev ) .