Class GlobalEvents
Inherited Members
Namespace: RedLoader
Assembly: RedLoader.dll
Syntax
public static class GlobalEvents
Fields
OnApplicationDefiniteQuit
Called before the Application is closed. It is not possible to prevent the game from closing at this point.
Declaration
public static readonly MelonEvent OnApplicationDefiniteQuit
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnApplicationEarlyStart
Called after Game Initialization, before OnApplicationStart and before Assembly Generation on Il2Cpp games.
Declaration
public static readonly MelonEvent OnApplicationEarlyStart
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnApplicationLateStart
Called when the first 'Start' Unity Messages are invoked.
Declaration
public static readonly MelonEvent OnApplicationLateStart
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnApplicationQuit
Called on a quit request. It is possible to abort the request in this callback.
Declaration
public static readonly MelonEvent OnApplicationQuit
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnApplicationStart
Called after all RedLoader components are fully initialized (including all MelonMods).
Don't use this event to initialize your Melons anymore! Instead, override OnInitializeMod().
Declaration
public static readonly MelonEvent OnApplicationStart
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnFixedUpdate
Called every 0.02 seconds, unless Time.fixedDeltaTime has a different Value. It is recommended to do all important Physics calculations inside this Callback.
Declaration
public static readonly MelonEvent OnFixedUpdate
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnGUI
Called at every IMGUI event. Only use this for drawing IMGUI Elements.
Declaration
public static readonly MelonEvent OnGUI
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnLateUpdate
Called once per frame, after OnUpdate.
Declaration
public static readonly MelonEvent OnLateUpdate
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnPreInitialization
Called after all MelonPlugins are initialized.
Declaration
public static readonly MelonEvent OnPreInitialization
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnPreModsLoaded
Called before MelonMods are loaded from the Mods folder.
Declaration
public static readonly MelonEvent OnPreModsLoaded
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnPreSupportModule
Called after all MelonMods are initialized and before the right Support Module is loaded.
Declaration
public static readonly MelonEvent OnPreSupportModule
Field Value
| Type | Description |
|---|---|
| MelonEvent |
OnSceneWasInitialized
Called once a Scene is initialized.
Arguments:
int: Build Index of the Scene.
string: Name of the Scene.
Declaration
public static readonly MelonEvent<int, string> OnSceneWasInitialized
Field Value
| Type | Description |
|---|---|
| MelonEvent<int, string> |
OnSceneWasLoaded
Called when a new Scene is loaded.
Arguments:
int: Build Index of the Scene.
string: Name of the Scene.
Declaration
public static readonly MelonEvent<int, string> OnSceneWasLoaded
Field Value
| Type | Description |
|---|---|
| MelonEvent<int, string> |
OnSceneWasUnloaded
Declaration
public static readonly MelonEvent<int, string> OnSceneWasUnloaded
Field Value
| Type | Description |
|---|---|
| MelonEvent<int, string> |
OnUpdate
Called once per frame.
Declaration
public static readonly MelonEvent OnUpdate
Field Value
| Type | Description |
|---|---|
| MelonEvent |