Getting information on when the Lua environment has been initialised

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
bluebuttongames
Posts: 91
Joined: Tue Jul 14, 2015 8:22 am

Getting information on when the Lua environment has been initialised

Post 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
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
Post Reply