utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
560 stars 38 forks source link

Exported properties doesn't hold its value on the inspector after closing and opening the project #652

Open Serutab opened 3 weeks ago

Serutab commented 3 weeks ago

This is something that I noticed when I set an exported TextureButton on my script. At the begining I thought I forgot to save the project before closing. Then I set again the value and this time I made sure I saved the project before closing it.

Oddly enough this only happens on my project, I tried with the GDQuest's sample project and its not happening. This makes me think I'm doing something wrong which is causing the issue.

Having this said, I made a bit of research trying to find a "pattern" to discover when this happens without success because it always happens. This were the tests:

All of them were exported correctly into de Godot's inspector and I was able to change its value. Everything works fine until I save the scene, close the project then open it again.

I'm using IntelliJ IDEA 2024.1.3 (Ultimate Edition) with the plugin version 0.9.1-4.2.2 and the latest Godot build v4.2.2.stable.custom_build [15073afe3] (0.9.1-4.2.2) which was released on May 7.