Skip to content

Methods_T_MSCLoader_Mod

piotrulos edited this page Apr 7, 2023 · 2 revisions

Mod Methods

The Mod type exposes the following members.

Methods

 

Name Description
Public method FixedUpdate Called once every fixed frame (standard unity FixedUpdate()).
Public method ModSettings All settings should be created here.
Public method ModSettingsLoaded Called after saved settings habe been loaded from file.
Public method ModSetup Setup your mod.
Public methodCode example OnGUI Standard unity OnGUI().
Public method OnLoad Called once, after GAME scene is fully loaded.
Public method OnMenuLoad Called once in main menu (only when LoadInMenu is true).
Public method OnModDisabled Called once when mod has been disabled in settings
Public method OnModEnabled Called once when mod has been enabled in settings
Public method OnNewGame Called once after starting "New Game" You can reset/delete your saves here
Public method OnSave Called once, when save and quit.
Public method PreLoad Called once as soon as GAME scene is loaded.
Public method SecondPassOnLoad Called once, after ALL mods has finished OnLoad() and when SecondPass is set to true (Executed still before first pass of Update(), but NOT exectued if OnLoad() failed with error)
Public method SetupFunction Setup selected function for your mod
Public method Update Called once every frame (standard unity Update()).
  Back to Top

See Also

Reference

Mod Class
MSCLoader Namespace

Clone this wiki locally