Pass ForgeDocs Product page

Manual

Moment

Add Pass Forge Moment to play shakes, shockwaves, flashes, transitions, short screen looks, hit stops, slow motion, sounds and particles without writing code: an explosion, a hit, a lightning strike, a scene change. Pick one of 174 ready made moments from its Preset list, which you can search, or build one step by step.

Each step plays one effect with its own settings and an optional Delay, and all steps start together when the moment plays. Add Step lists the effects:

StepWhat it plays
Screen ShakeShakes the picture, not the camera.
ShockwaveA refraction ring from the moment's position, moved by Offset.
Flash LightA brief light on the surfaces around the moment's position.
Lightning, FlashbangLightning flickers over the scene. A Flashbang is Aimed when added: it goes off where the moment plays, moved by Offset, and blinds by where the main camera looks when it goes off, after its Delay. Look Away Helps sets how much looking away protects the eyes; 0 blinds the same from any side, for a blast that lights up the whole sky. Switched off, it whites out the whole screen, as Flashbang steps saved before do. Set Range To 25, shown on an aimed step while the moment has no Range, makes far flashes blind less. The preview judges only where you look, from the Scene view, leaving out Range and Blocked By.
Transition: Cover, Reveal, Cover And RevealCovers or uncovers the screen in one of the 11 transition styles, or covers it, holds it and uncovers it.
VHS RewindPlays the picture of the last one and a half seconds backwards; the moment keeps it while it is enabled, as sixteen small pictures (about 15 MB at 1080p). Pause Game, on by default, stops the game while it rewinds, so the player cannot move unseen and the game carries on from where it was. Nothing in the game moves back: to return the player to where they were, call your own code from On Played.
Datamosh KeyframeClears the smear of a Datamosh look shown by a Volume or a Screen Look.
Screen LookShows any of the screen presets, or a look of your own, for the given seconds, with fades. Zero seconds keeps it on until the moment stops. With Center On Moment, effects that spread from a point on screen, such as Time Stop, Impact Frame, Speed Lines and Radial Blur, spread from where the moment plays and stay there as the camera moves.
Highlight FlashFlashes a highlighted object, by default the one on the moment's object.
Hit Stop, Slow MotionFreezes the game for a split second, or slows it for a while and eases it back. They set Time.timeScale, and the fixed time step with it so physics stays smooth, and give back what the game had. Time the game spends paused does not count. PassForgeSlowMotion plays the same from scripts, and the two share one time scale: the slowest wins.
Play SoundPlays a sound at a volume, with a little pitch variation so repeats do not sound the same.
Play ParticlesPlays a particle system in the scene, or spawns a particle prefab where the moment plays and removes it when done.
Afterimage BurstTurns on a switched off Pass Forge Afterimage for a while, then lets its last ghosts fade. Another burst meanwhile makes the trail longer.
Dissolve, MaterializePlays a Pass Forge Dissolve away or back.
Highlight For SecondsShows a switched off Pass Forge Highlight for a while; showing it again adds time.
Transition: From Current PictureTakes the picture on screen and shatters, burns, turns or slides it away onto what comes next.
RumbleRumbles every gamepad (with the Input System package) at its strength for its seconds, and gives phones one short standard vibration that does not follow the strength or seconds, only for a rumble stronger than 0.35, so a far explosion or a rumble the player turned down leaves the phone still. The player's shake setting scales the gamepad rumble, and turning it off stops the phone vibration too.
Lightning BoltFlashes a bolt of lightning from high above down to where the moment plays, flickering as it goes. The Lightning Strike and Lightning Bolt moments use it.
Damage DirectionShows on screen which side a hit came from, at its Strength and fading over its Duration, seen from the object tagged Player or from the camera when there is none. Put the moment on the attacker or its bullet, or play it with PlayAt; Offset moves where the hit comes from.
Lens BloodLands blood on the lens from where the moment plays, as a Graze, Hit, Heavy Hit, Spray or Shot In The Face (Splat), at its Strength. Within keeps far hits off the lens: blood reaches it only within that many meters of the player, found as Damage Direction finds it, less toward the edge. It is 3 when added; zero reaches the lens from any distance, for a moment on the player or played with its attacker. Where It Is On Screen lands it where the moment is on screen, kept off the middle; switched off, it lands on the edge of the lens on the moment's side, for the player being hit. Seconds zero lasts as long as the Lens Blood look says, Own Color gives this blood a color of its own, and Offset moves where it comes from. Range and Blocked By lessen it too. In Edit Mode the step says how far the moment is from the player and how much of its blood reaches the lens.
Damage NumberShows a number or a short word over the object the moment plays at, or over the object PlayAt names, where quick hits add up into one number. Use Played Value shows the number the moment was played with, from PlayWithValue(damage) in a script or a UnityEvent that sends a number, such as a health script's On Damaged; played without one, as by Play() and in the preview, it shows Otherwise. Word shows a word instead, such as CRIT or MISS. Kind sets its color and how it pops, Size scales it, Seconds overrides how long it shows, and Offset moves where it starts. A Pass Forge Damage Numbers component on the object sets where numbers start and their colors, and switched off it turns them off. Range and Blocked By leave numbers alone.
PingMarks where the moment plays on every Compass Bar and Fog of War Radar, in its Color for its Seconds, moved by Offset, even where the fog hides it. On radars its ring spreads to Ring Size meters, and Reveal Enemies also shows the enemies within the ring for its seconds, even out of sight, like a sonar. Eight show at once, a new one replacing the oldest, and one close to a showing ping of the same color starts it again. Range and Blocked By do not apply: far events are what a compass and a radar are for. The Objective Marked, Show The Way, Shot Fired and Sonar Ping moments use it.
Show RouteLeads the player's Pass Forge Route to where the moment plays, moved by Offset, or to Route To, for Seconds, then back to the route's own destination; zero seconds lasts until the player arrives. Played over an object with no Offset, such as an ally's moment played with Play(), the route follows that object. The route's When Arrived and On Arrived stay for its own destination. With Pathing at Waypoints or Points From Script, the way there is found as Auto finds it: on the NavMesh, or a straight line. With no route enabled it does nothing, and the step's inspector says so. The Show The Way moment uses it.
Camera FOV KickWidens the main camera's view by some degrees and lets it settle back, or narrows it with degrees below zero. It changes only the picture, so camera rigs such as Cinemachine keep their own field of view.
Transform PunchPunches an object's position, rotation or scale and lets it spring back. Only the picture moves: physics and scripts keep seeing the object where it is.
Transform TweenMoves, turns or grows an object by its Punch over its Seconds, eased, and leaves it there, where a Transform Punch springs back.
AnimatorSets a parameter of an Animator: fires a trigger, or sets a bool, a number or a whole number to its Amount, by the parameter's own kind, such as a Hit trigger.
Set ActiveSwitches an object on or off, and back after its Seconds when they are not zero.
Spawn PrefabMakes a copy of a prefab where the moment plays, such as debris or a coin, and removes it after its Seconds when they are not zero.
Explosion ForcePushes the rigidbodies within its Radius away from where the moment plays. Range and Blocked By lessen it.
BlinkMakes an object blink on and off for its Seconds, such as while it cannot be hurt.
Color FlashFlashes the color of a sprite or a UI graphic and lets it come back, such as a red hit flash.
Audio Mixer SnapshotMoves an Audio Mixer to a snapshot over its Fade In, such as muffled sound under water.
Cinemachine ImpulseFires the Cinemachine Impulse Source on its object, or on the moment's own, for projects whose cameras shake through Cinemachine. Range and Blocked By lessen it.
Fog ChangeThickens or thins the scene's fog, and changes its color if wanted, for a while or for good.
Light ChangeTakes a light to another intensity, and another color if wanted, and back after its seconds. Zero seconds keeps the change, for lights that go out for good.
Material PropertyTakes a number or a color of one object's material, picked from a list, to another value and back. Other objects sharing the material and the material asset are not touched.
Load SceneCovers the screen with a transition, loads a scene behind the cover and uncovers it once the scene is in. The scene must be in the build's scene list: if it is not, the inspector warns you and offers an Add It To The Scene List button.
Call EventCalls the functions picked in it at its delay, for game logic in step with the moment.
Phone VibrationVibrates the phone for its milliseconds at its strength, where the phone can set one (PassForgeHaptics.Vibrate from scripts). The player's shake setting scales it. Gamepads rumble with the Rumble step.
Canvas Group Fade, Audio Source FadeFades a UI Canvas Group's alpha, or an Audio Source's volume and pitch, to a value and back after its seconds, or keeps it with zero seconds: a menu flashing in, music ducking under a line of dialogue.
Rigidbody ImpulseKicks or spins one Rigidbody or Rigidbody 2D with a force, an impulse or a change of speed, along the moment's object or away from where it plays.
Light Flicker, Toggle ComponentFlickers a light at random and puts it back, or switches a script, renderer, collider or light on or off and back.
Camera Zoom, Transform ShakeZooms a camera by a factor and back, on perspective and orthographic cameras alike and under Cinemachine, or shakes an object's position, rotation or scale where only the picture sees it.
Play Another MomentPlays another moment where this one plays, to chain moments or to share one between many objects. A prefab, which cannot point at an object in the scene, gives the moment's Name instead.

The ready made moments come in ten groups: Combat (hits, criticals, parries, dashes, bullet time), Blood (blood on the lens for the player shot point blank or hit from one side, close hits and kills, green alien blood, black robot oil and party paint), Numbers (damage, critical and heal numbers, Blocked, Miss, gold pickups and level ups over an object), Magic (fireballs, ice, teleports, heals, time stop), Explosions and World (explosions, quakes, storms, landings), Sci-Fi (EMP, hacks, scans, warp jumps), Horror (jump scares, panic, blackouts), Game Flow (level ups, pickups, checkpoints, objective marks and the way to them, scene changes in every transition style, rewinds), Retro and Style, and Object Reactions, which act on the object they are on with nothing to set up: hit reacts for 3D and 2D, squash landings, pickups and coins that pop away, spawns, deaths that blink out, heals, level ups and door slams. Type in the list to search names, groups and descriptions. Picking one replaces the steps and sets how it plays, and everything stays editable. Hit is about the object it is on, with a flash and a ring there; Player Hurt shows the player taking damage wherever it is. When steps act on a component the object and its children lack, such as a Pass Forge Highlight to flash, an Afterimage or a Dissolve, the inspector lists them above the steps, with a button that removes those steps and, when the object has a renderer to draw them on, one that adds the components (a highlight or an afterimage switched off, since the steps switch them on). On an object with nothing to draw, such as a manager, pick the target object in each step instead.

The Timeline above the steps shows when each one plays and for how long, colored by what it acts on: the screen, time, the object, or sounds and particles. Drag a step sideways to change its Delay, in twentieths of a second. In Play Mode a red line runs along it while the moment plays.

Save, next to the Preset list, keeps a moment's steps and how it plays as a preset under My Moments, at the top of the list, to use on other objects and in other scenes. It is a Unity preset of the component, saved in Assets/Pass Forge Effects/Presets/Moments, so Unity's own preset menu on the component offers it too. Steps that point at an object in the scene keep no object in the preset and act on the moment's own object where it is used.

SettingWhat it does
NameOptional. PassForgeMoment.PlayNamed("Explosion") plays every enabled moment with this name, without a reference, and PlayNamedAt("Explosion", position) plays it somewhere else, so one moment in the scene serves every enemy spawned from a prefab. PlayNamedAt("Enemy Hit", enemy.transform, damage) plays it over an enemy, with its Damage Number steps showing the damage there.
Play OnScript Or Event plays when Play() is called. Enable plays each time the component is enabled. Trigger Enter and Collision Enter play when an object with the chosen Tag touches this one; At Contact Point, on by default, plays where the other object touched rather than at this object, so a hit's ring, sparks and spreading ice start where it struck. Repeat plays again and again at random intervals, for a storm.
CooldownSeconds after a play during which it does not play again. A moment with a Damage Number step usually needs none, since quick hits add up into one number.
ChanceThe chance it plays each time it is asked to, for variety: 0.3 plays about one time in three.
Max PlaysHow many times it plays at most, such as once for a first discovery; ResetPlayCount() starts over. Zero has no limit.
RangeMeters from the camera at which the shake, flashbang, screen look, rumble, Phone Vibration, Camera FOV Kick, Lens Blood, Explosion Force and Cinemachine Impulse steps fade to nothing, so a far explosion barely shakes the screen. Zero plays them at full strength anywhere. An aimed flashbang is judged when it goes off, after its Delay.
Blocked ByThose steps do not play when something on these layers stands between the camera and the moment, such as a wall in front of a flashbang. An aimed flashbang is judged when it goes off, after its Delay.
Unscaled TimeCount delays in real time, so the moment plays while the game is paused.
On PlayedCalled each time the moment plays, for sounds and game logic.
On FinishedCalled when a play has run to its end, after its last step. Scripts can wait for it with yield return moment.WaitUntilFinished().

Play(), Stop(), PlayAt(Transform) and SetPlaying(bool) can be picked in any UnityEvent: a button's On Click, a Highlight Trigger's events, an animation event. PlayAt puts the shockwaves and flash lights at another object, and its Damage Number steps over it, so one moment serves every explosion; scripts can also call PlayAt(position). PlayWithValue plays the moment with a number its Damage Number steps show, such as the damage dealt: pick it in a UnityEvent that sends a float or an int, such as a health script's On Damaged, or call it from a script. PlayAt(enemy.transform, damage) does the same over another object, and PlayAt(position, damage) at a point, where numbers never add up. SetPlaying suits a toggle: true plays, false stops, and a Screen Look step with zero seconds stays on in between, as the Low Health moment does. Stop() drops the steps still waiting, stops repeating until the next Play(), and uncovers a held transition once its cover is complete. In Play Mode the inspector has Play and Stop buttons to try a moment. In Edit Mode, Preview plays the steps that only draw at their delays, without entering Play Mode: shakes, shockwaves, flash lights, lightning, lightning bolts, flashbangs, damage directions, pings, damage numbers (showing the step's own number, as a preview has no played value), lens blood, Cover, Reveal and Cover And Reveal transitions, highlight flashes, Datamosh Keyframes and Screen Looks with their fades. A Screen Look with zero seconds shows for two seconds in the preview. Lightning, flashbangs, flash lights and highlight flashes also show in the Scene view. The rest show in the Game view. Of a Screen Look, the world, weather and lens effects show in the Scene view too; the other steps and effects show there only with Run In Scene View on (see Previewing in Edit Mode). Steps that change the game's time, play sounds or particles, or change objects, lights, cameras, materials or the scene wait for Play Mode, From Current Picture and Load Scene among them, and so does Show Route, which leads the player's route. The inspector names them. Nothing in the scene is changed. MomentPresetUtility.Apply(moment, "Explosion") fills a moment with a ready made one from your own editor scripts.

A moment that has started plays to the end even when its object is destroyed or switched off, so a projectile can carry its own explosion and a door can carry its own scene change. Only a Screen Look held until Stop fades out with its object. When the moment's scene unloads, though, its steps that have not started yet are dropped, so leaving a scene before its Death moment's fade to black never covers the next scene; steps already playing finish, and a Reveal step still lifts a cover that is on.

A moment held back by its Cooldown, Chance or Max Plays plays none of its steps, so a Damage Number step that shows the played value shows no number for that hit. The step's inspector says so, with a button that sets Cooldown to 0, and so does the Overview. To show a number for every hit and a flash or shake only sometimes, put the number in a moment of its own, or call PassForgeDamageNumbers.Spawn. Playing a moment allocates nothing for its delays and its On Finished, nor for Damage Number, Screen Shake, Shockwave, Flash Light, Ping, Show Route and Lens Blood steps, so a moment made of them can play on every hit.