@export not working as expected, variables not appearing in Inspector

Godot Version

4.2.1

Question

I am not sure what is going on but all of the sudden my @exported lines are not showing up anymore for my CharacterBody3D Node.
Is this a known bug? I have done read the documentation at GDScript exported properties β€” Godot Engine (stable) documentation in English and from what I gather everything is done correctly?

the code in question (example) is:

extends CharacterBody3D

# MOVEMENT VARIABLES
@export_group("Movement Modifiers")
@export var default_speed = 5.0
@export var crouching_speed = 2.0
@export var jump_velocity = 4.5
var is_crouching : bool = false
var _speed : float

yet I do not see the variables in the Inspector:

:smiling_face_with_tear: Thank you for any assistance!

If your script has parser errors @export vars will not show up.

2 Likes

Thanks, I will make my new issue it’s own topic, you did answer the question I posed here so thank you for that, I did not see that anywhere when looking; that parser errors block @export from working, but that is wonderful to know!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.