• 0 Posts
  • 319 Comments
Joined 1 year ago
cake
Cake day: June 4th, 2023

help-circle

















  • Do you use C# since you’re coming from Unity?

    You can use GetNode<CustomNode>() or GetChild<CustomNode>() to find the node you need just like in Unity. CustomNode will be the type of your script or if there is no script attached to your node you can use the builtin types as well (e.g. Node3D).

    Once you have the node you want, you can either use Godots builtin functions SetMeta() and GetMeta() to set and get metadata on a node or use the C# way and access the public properties set on that CustomComponent class directly.

    I don’t use GDScript but I assume you have the same methods available there.