dear-imgui-unity icon indicating copy to clipboard operation
dear-imgui-unity copied to clipboard

Fails to import via git URL with 9 errors and 1 warning logged to the Console.

Open BrainSlugs83 opened this issue 5 years ago • 4 comments

Using Unity 2019.4.4 or 2019.3.15, and importing the package via the following URL: https://github.com/realgamessoftware/dear-imgui-unity.git

The import logs several errors regarding missing files, and there is a warning regarding not being able to load a "native plugin", please see below for more information.

image

Plain text version follows:

[DearImGui] Could not check data layout, native plugin not loaded.
UnityEngine.Debug:LogWarning(Object)
ImGuiNET.Unity.Editor.PluginFeatures:DoPluginChecks() (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity.Editor/PluginFeatures.cs:64)
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/crossed_circle.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/sb_v_double_arrow.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/hand2.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/sb_h_double_arrow.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/bd_double_arrow.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/fd_double_arrow.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/left_ptr.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/xterm.png: File could not be read
Could not create asset from Packages/com.realgames.dear-imgui/Resources/Cursors/dmz-white/move.png: File could not be read

. . .

Additionally, adding the "Dear Im Gui" component to a game object, logs an additional 3 errors: image

Plain text version follows:

Failed to load 'D:/Projects.Unity/DearImGUI/Library/PackageCache/com.realgames.dear-imgui@561339c07f/Plugins/win/x64/cimgui.dll', expected x64 architecture, but was Unknown architecture. You must recompile your plugin for x64 architecture.
ImGuiNET.Unity.IOConfig:SetDefaults() (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity/Data/IOConfig.cs:55)
ImGuiNET.Unity.DearImGui:Reset() (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity/DearImGui.cs:122)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Failed to load 'D:/Projects.Unity/DearImGUI/Library/PackageCache/com.realgames.dear-imgui@561339c07f/Plugins/win/x64/cimgui.dll', expected x64 architecture, but was Unknown architecture. You must recompile your plugin for x64 architecture.
ImGuiNET.ImGui:CreateContext() (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET/Wrapper/Generated/ImGui.gen.cs:2046)
ImGuiNET.Unity.IOConfig:SetDefaults() (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity/Data/IOConfig.cs:55)
ImGuiNET.Unity.DearImGui:Reset() (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity/DearImGui.cs:122)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
DllNotFoundException: cimgui
ImGuiNET.ImGui.CreateContext () (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET/Wrapper/Generated/ImGui.gen.cs:2046)
ImGuiNET.Unity.IOConfig.SetDefaults () (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity/Data/IOConfig.cs:55)
ImGuiNET.Unity.DearImGui.Reset () (at Library/PackageCache/com.realgames.dear-imgui@561339c07f/ImGuiNET.Unity/DearImGui.cs:122)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

. . .

And of course, in this state, the Example code does nothing. 😟

BrainSlugs83 avatar Aug 10 '20 19:08 BrainSlugs83

I have errors as well, though not quite the same. Mine would fail to import using https. So I tried to import using http and I received shader errors: image

lifeforce-dev avatar Aug 14 '20 21:08 lifeforce-dev

I am having checkout issues when trying to import with these errors : image

Nolram12345 avatar Sep 23 '21 18:09 Nolram12345

The PNG files size is 128 bytes. Their contents are as follows:

version https://git-lfs.github.com/spec/v1
oid sha256:846647a7c19da5669ff91780ea1a398be08e97a0da5effe60d564153d0f8c61a
size 948

rekcah1986 avatar Sep 24 '21 05:09 rekcah1986

I see, we need "git lfs".

rekcah1986 avatar Sep 24 '21 05:09 rekcah1986