New to programming so I followed a tutorial a while back on Godot 3.X and after downloading and upgrading the project to beta. Exporting NodePaths changed and gives errors when trying to use them the same way. in 3.X it looked like this:
export(NodePath) onready var some_node
and after assigning a node to the variable in the instector. I could use the shorthand variable and . to change properties and whatever. But in 4, it looks like this:
@export_node_path(Node2D) @onready var some_node
But whenever I try to use the variable in any way, Godot gives me errors like this:
Cannot find property "modulate" on base "NodePath".
I've looked at the docs and tried to find information but can't find straight answers.