realgamessoftware / dear-imgui-unity

Unity package for Dear ImGui
MIT License
455 stars 108 forks source link

Error when importing package into Unity #32

Open pentiumslayer opened 1 year ago

pentiumslayer commented 1 year ago

I get the following two errors when importing into Unity 2020.3.37f1, any direction on resolving this?:

Shader error in 'DearImGui/Procedural': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl'. at /DevFiles-Git/Junk/DearIMGui/Library/PackageCache/com.realgames.dear-imgui@561339c07f/Resources/Shaders/PassesUniversal.hlsl(3)

Shader error in 'DearImGui/Mesh': Couldn't open include file 'Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl'. at /DevFiles-Git/Junk/DearIMGui/Library/PackageCache/com.realgames.dear-imgui@561339c07f/Resources/Shaders/PassesUniversal.hlsl(3)

fanhexin commented 1 year ago

This error can be fixed by importing unity offical package 'Universal RP'.