Rethink
Danger
Version below 0.6.1 automatically sets up everything once the module has been required and returns the modules!
This change was introduced to have more control over initialization and to prepare for future support of Rethink's editor.
Properties¶
Self¶
Since: 0.6.2
A reference to the instance itself.
IsInitialized¶
Since: 0.6.2 Read-Only
Tells whether Rethink was initialized or not.
Version¶
Since: 0.6.2 Read-Only
Tells the current version of Rethink.
API¶
.Init()¶
Since: 0.6.2
Returns: Rethink Module
Initializes Rethink. This includes:
- Setting up the game UI elements
- Setting up the physics engine
- Setting up global variables that can be accessed with
Template
After Rethink has initialized successfully it's header will get printed into the console.
This behaviour can be configured in the Settings
file under Settings.Console.LogHeader
(true by default)
.GetModules()¶
Since: 0.6.2
Returns: Modules Dictionary
Returns the modules. Does not check whether if Rethink is initialized or not!
Warning
Modules located in the Prototypes
table are unstable or unfinished!
Using such modules are highly unrecommended due to stability issues!
What Rethink returns
- Collision
module
- Raycast
module
- Animator
module
- Outline
module
- Scene
module
- Template
module
- Physics
module
-
Pool
module
-
Ui
table
- GameFrame
frame
- RenderFrame
frame
- Viewport
frame
- Ui
frame
- GameFrame
- Prototypes
table
- Camera
module
- Camera