I have created an export variable in my C# script, but it does not want to show up in godot. I've tried restarting godot, building the game, running the game, deleting the config folder, gecloning. Other teammembers also seem to have problems getting the export variable to show up in godot.
You can access the whole code here. (/src/microbe_stage/editor/MicrobeEditorCheatMenu.tscn
)
I've also tried the code without the extra layer of inheritance, but it still doesn't work.
My script:
using Godot;
public class MicrobeEditorCheatMenu : CheatMenu
{
[Export]
public NodePath InfiniteMPPath;
private CheckBox infiniteMP;
public MicrobeEditorCheatMenu()
{
infiniteMP = GetNode<CheckBox>(InfiniteMPPath);
}
// More code...
}
using Godot;
public abstract class CheatMenu : Popup
{
// More code...
}