-
Notifications
You must be signed in to change notification settings - Fork 20
SRCallbacks
veesusmikelheir edited this page Jul 26, 2019
·
1 revision
SRML contains a class called SRCallbacks in SRML.SR.SRCallbacks that provides events for various common Slime Rancher events. This page documents it.
SRCallbacks.OnSaveGameLoaded(SceneContext context)
Called whenever a saved game is loaded. Provides the SceneContext currently in use
SRCallbacks.OnMainMenuLoaded(MainMenuUI mainMenu)
Called whenever the main menu is loaded
SRCallbacks.OnActorSpawn(Identifiable.Id id, GameObject obj, ActorModel model)
Called whenever an actor is spawned