![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | AltoWaltz |
Hello,
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;
call_deferred("DataImport.importdata")
Also not ok:
var load_data_ref = funcref(DataImport,"importdata")
call_deferred("load_data_ref.call_func()")
Any help appreciated.