An Inquiry about Framework

Hello developers,
I have seen a lot of game frameworks and most of them contains this function called ‘Init’.
I do not understand what does Init do, what does it mean and what is it use for.
Any answers will be appreciated. :smiling_face_with_three_hearts:

1 Like

It should be explained in the documentation pages for whatever framework you’re using.

It’s probably short for “initialize”, which means to set something up in preparation for using it. It’s impossible to say more precisely when talking about frameworks in general because it’s going to be specific to each framework.

1 Like

Depends on the framework, but this is wt Init does:

A framework is essentially a large amount of modulescripts, so when each if this module script is required, u mite need to do smth such as setup some class vars, so each module will have an Init func, which will get called the moment the framework requires that module. Yielding in Init is not recommended as Init is called on modules one by one rather than all at once, so it will slow down the process.

1 Like