How do I
Change scene with a transition
Add a Load Scene step to a Pass Forge Moment, or call PassForgeTransition.LoadScene(scene, style, seconds), to cover the screen, load the scene behind the cover and uncover it.
You want
The player walks through a door and the screen wipes, ink splashes or irises shut, the next level loads behind the cover, and the new level opens up.
Steps
- Add Add Component > Pass Forge > Moment to the door.
- To start from a ready made moment in the Preset list, such as one with a sound or a shake, pick it now. A preset replaces the steps and sets Play On back to Script Or Event, so it comes before everything below. The Scene Change moments under Game Flow only cover the screen and uncover it again; none of them loads a scene, so a scene change needs no preset.
- Press Add Step and pick Load Scene. Drop the scene asset into Scene and pick the Style: Mask with a heart, star or clouds picked in Mask under it, or Iris with On Moment ticked to close on the door. The step covers the screen, loads the scene behind the cover and uncovers it by itself, so it needs no Transition step beside it.
- If the scene is not in the build's scene list, the step warns you and offers Add It To The Scene List. Press it.
- Set Play On to Trigger Enter and Tag to Player, and give the door a collider with Is Trigger on.
- Enter Play Mode and walk through the door. Load Scene waits for Play Mode, so it does not play in the Moment's Preview.
From a script, PassForgeTransition.LoadScene(scene, style, seconds) does the same in one call, as below.

What you should see
The screen covers, the scene loads behind the cover, and the cover lifts once the scene is in. A moment that has started plays to the end even when its object is destroyed, so the door can carry its own scene change.
If it does not work
- Walking through the door does nothing. Look at Play On. Picking a preset sets it back to Script Or Event, so set Trigger Enter again after any preset.
- The screen covers and uncovers, but the scene stays the same. The Moment plays a Scene Change preset, whose Transition: Cover And Reveal step loads nothing. Remove that step and add a Load Scene step in its place, which covers and uncovers in the same styles.
- The Console says Pass Forge cannot load the scene. It is not in the build's scene list. Add it in File > Build Profiles, under Scene List, or press Add It To The Scene List on the step.
- The next scene stays black. A cover stays on through a scene load until something calls
PassForgeTransition.Reveal. After loading a scene under a cover of your own, reveal it from that scene. In a scene that never covers the screen itself, such as a menu reached from a Death moment's fade to black, callPassForgeTransition.RevealLeftoverCover()from Start. - The cover should come off at once. Call
PassForgeTransition.Stop(). - A death moment's fade covers the next scene. When a moment's scene unloads, its steps that have not started yet are dropped, so leaving before its fade starts never covers the next scene. Steps already playing finish.
From a script
using System.Collections;
using PassForge.Effects;
using UnityEngine;
using UnityEngine.SceneManagement;
public class LevelExit : MonoBehaviour
{
[SerializeField] string m_Scene = "Level 2"; // in File > Build Profiles, Scene List
void OnTriggerEnter(Collider other)
{
if (other.CompareTag("Player") && !PassForgeTransition.isPlaying)
PassForgeTransition.LoadScene(m_Scene, TransitionStyle.Iris, 0.5f);
}
// A loading screen of your own: cover, load while covered, reveal.
public IEnumerator LoadUnderCover(string scene)
{
DontDestroyOnLoad(gameObject);
PassForgeTransition.Cover(TransitionStyle.Fade, 0.4f);
yield return PassForgeTransition.WaitUntilCovered();
yield return SceneManager.LoadSceneAsync(scene);
PassForgeTransition.Reveal(TransitionStyle.Fade, 0.4f);
Destroy(gameObject);
}
}
PassForgeTransition.onCovered and onRevealed are static events raised when a cover is fully on and when the scene shows again; subscribe in OnEnable and unsubscribe in OnDisable. To take the picture on screen and pass from it to what comes next, call PassForgeTransition.FromCurrentPicture(style, seconds), and wait one frame before loading a scene behind it.