0 votes


I have a singleton script DataImport.gd and there is an importdata() function within the script. I am trying to get the timing of importing data right with call_deferred on this function within GameRoot node(and game options).

Can I do this and what is the syntax ? Tried with funcref but unable to make it work.

Not ok;


Also not ok:

var load_data_ref = funcref(DataImport,"importdata")

Any help appreciated.

in Engine by (44 points)

1 Answer

+1 vote
Best answer
by (5,200 points)
selected by

Hello, thank you for a reply. Still errors out:
E 0:00:06.791 callfunction: Error calling deferred method: 'Node(DataImport.gd)::loaddataref': Method not found..
<C++ Source> core/messagequeue.cpp:253 @ _callfunction()

Typo, the function name is importdata, try that.

Great, thank you.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.