Unable to find function when loading in a custom resource

Godot Version

4.2.1

Question

I’m trying to load a resource from disk and that resource’s script has a function called build When I try to call that I get this error res://addons/gmap/builder/MapBulder.gd:118 - Invalid call. Nonexistent function 'build' in base 'Resource (gmapFile)'.
the gmapFile resource script has this function and the script is attached.

You need to post more info. Post your code. Post the .tres file too. Post the actual error message. Post the context that it’s all happening in.

The idea is to make it easy for others to help you.

Yeah that information is pretty useful, I’ll edit the original post when I have time

no idea what it did but it works now

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