You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
929 B

  1. using UnityEngine.SceneManagement;
  2. namespace IllusionPlugin {
  3. public interface IPluginNew : IPlugin{
  4. /// <summary>
  5. /// Gets invoked whenever a scene is loaded.
  6. /// </summary>
  7. /// <param name="scene">The scene currently loaded</param>
  8. /// <param name="sceneMode">The type of loading</param>
  9. void OnSceneLoaded(Scene scene, LoadSceneMode sceneMode);
  10. /// <summary>
  11. /// Gets invoked whenever a scene is unloaded
  12. /// </summary>
  13. /// <param name="scene">The unloaded scene</param>
  14. void OnSceneUnloaded(Scene scene);
  15. /// <summary>
  16. /// Gets invoked whenever a scene is changed
  17. /// </summary>
  18. /// <param name="prevScene">The Scene that was previously loaded</param>
  19. /// <param name="nextScene">The Scene being loaded</param>
  20. void OnActiveSceneChanged(Scene prevScene, Scene nextScene);
  21. }
  22. }