-
Notifications
You must be signed in to change notification settings - Fork 55
Home
Rofli "psydack" Sanches edited this page Apr 4, 2022
·
8 revisions
Welcome to the UImGui wiki!
Thanks for using the project.
If you have any suggestion or feedback, please feel free to comment on Issues
You can't build using Linux because the project use the UnityEngine.dll
.
Install Unity
- The project is using the version 2020.3.29f1. If you want to change the version of the unity you need change every csproj file in
ImGui.Net/src
Install LuaJIT
- Mac you could use https://formulae.brew.sh/formula/luajit
- Windows you could use binary
- Linux (not tested)
Install Visual Studio
- It's necessary only .NET Framework SDK. If you already have VS Studio installed, instsall .NET only
- It could be done using only NET.Core, but I didn't tested. If you could run without VS Studio, please leave a comment
- Install dotnet 2.0 https://dotnet.microsoft.com/en-us/download/dotnet/2.0
You’ll need GCC (or other as clang)
- https://gcc.gnu.org/install/binaries.html
- Mac you could use
brew install gcc
- Windows you could use MinGW
- Don’t forget to put
MinGW\bin
into your PATH
- Don’t forget to put
Install Freetype
- For mac users, you could use
brew install freetype
Clone repos below recursively
-
update submodules
-
imgui
insidecimgui
with docking (or any branch you want to)- probably you'll need to change some declarations
-
-
Ensure
-std=c++11
is onImGui.Net-nativebuild/cimgui/makefile
CXXFLAGS -
ImGui.Net-nativebuild/cimgui/imgui/misc/freetype/imgui_freetype.[cpp and h]
change pathimgui.h
to../../imgui.h
,imgui_internal.h
andimstb_rectpack.h
-
Enable on
ImGui.Net-nativebuild/cimgui/imgui/imguiconfig.h
- #define IMGUI_USE_WCHAR32
- #define IMGUI_ENABLE_FREETYPE
- #define IMGUI_ENABLE_STB_TRUETYPE
-
Generate definitions running
ImGui.NET-nativebuild/generate-all.[sh or bat]
-
Copy new definitions to ImGui.NET project running
ImGui.NET-nativebuild/copy-jsons-to-generatecode-csharp.[sh or bat]
-
Generate code from new definitions and add to the project
-
MAC: Run
ImGui.NET/ci.sh
-
Windows run
dotnet run
insideImGui.NET/src/CodeGenerator
or open the.sln
into Visual Studio and run the project CodeGenerator.- Something like:
Outputting generated code files to ...
must to appear - Copy generated code to each project src running
CopyGenCodeToSrc.[sh or bat]
- Something like:
-
MAC: Run