Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | SapientCheeseSteak |
Hello, when I try to export a var in 4.0 with the syntax
export(float) var velocity
export(NodePath) var target_node_1
I get the error
Unexpected “Identifier” in class body.
full class code
extends KinematicBody3D
export(float) var velocity
export(NodePath) var target_node_1
func _ready():
pass
func _on_NavigationAgent3D_navigation_finished():
pass # Replace with function body.