Page 1 of 1

Getting information on when the Lua environment has been initialised

Posted: Thu Sep 13, 2018 4:48 pm
by bluebuttongames
At the moment everywhere in my code I have little delays after start before referring to the database, is there a method that returns when the environment is initialised and ready for use?

Thanks again,

BB

Re: Getting information on when the Lua environment has been initialised

Posted: Fri Sep 14, 2018 4:47 am
by Tony Li
There isn't, but I can add it. The environment is initialized in Awake, although some Lua functions are registered in Start. If your script uses Lua functions and your script's Start runs after the DialogueSystemController's Start (e.g., using Script Execution Settings), then you don't need any delay.