pkdawson / imgui-godot

Dear ImGui plugin for Godot 4
MIT License
327 stars 20 forks source link

Parser Error: Could not find type "ImGuiFont" in the current scope. #72

Open Yahkub-R opened 1 week ago

Yahkub-R commented 1 week ago

Triggers when launching game within editor. When a C# code change takes place, after first error launching again works fine. Using "imgui-godot-6.0.1-csharp-only.zip" on Godot 4.3.beta2.mono

Specifically this happens after c# code change and the use of "Run Project hotkey". Works fine if you Build project and then use hotkey

on line 4 of ImGuiConfig.gd:

@export var Fonts: Array[ImGuiFont]
pkdawson commented 1 week ago

Those two simple resource scripts are a self-contained unit, they don't depend on anything else, so this is almost certainly a Godot bug.

But good news, a PR was recently merged to address similar issues, and that fix will be in 4.3-beta3.