Manual
Samples
Tools > Pass Forge > Samples > Build Arena Scene builds a small game in which Pass Forge's parts work together. Walk with a click or a tap on the ground, or with WASD, to collect the four crystals the off-screen indicators and a compass bar point to, under a fog of war with line of sight that hides the enemies until you see them. A gold route of arrows on the ground, the minimap and the compass leads to the nearest crystal left, stopping where you have not explored. A minimap with a radar on it shows what you have explored, the enemies in sight, where the crystals lie, and a ping where an enemy out of sight notices you. Enemies warn of their attacks with ground markers that fill up under you and slam with a moment, so step out of them. Click an enemy you can see to zap it with a lightning tether: it flashes and dissolves. Space dashes with afterimages. Hits, zaps and pickups show damage numbers; hits, low health, pickups, victory and defeat each play a moment, the first crystal starts in a spotlight, and Esc opens a frosted pause menu with the accessibility options. The minimap, its radar, the compass bar and the frosted backdrop behind the pause menu need the Unity UI package, com.unity.ugui, which new Unity 6 projects include; without it the scene has no minimap, radar or compass, and the pause menu still opens, just without the frosted backdrop. It reads input through IMGUI, so it works with either input backend, on touch screens and in a web build.
Tools > Pass Forge > Samples > Build 2D Effects Showcase Scene builds a 2D scene on the URP 2D Renderer: a walking hero that flips to face its way with an outline and afterimages, slimes that glow, freeze and burn and flash in turn as if hit, each hit showing a damage number over the slime with one call to PassForgeDamageNumbers.Spawn, and a gem that lights up when the hero comes near. Damage numbers in the bar at the top switches the numbers off and on. It has the same panels as the effects showcase: a list of every screen preset that works on the 2D Renderer with sliders for its key settings, and a list of highlight styles for the hero with sliders for the style. Hover the slimes and click the hero to see Highlight Triggers at work, and use Hide panels for a clear view. When the URP asset has no 2D Renderer yet, the builder creates one in Assets/Pass Forge Effects and adds it to the renderer list; only the showcase camera uses it. The sprites are drawn in code, so the sample ships no art.
Sprites work the same as meshes: Highlight, Afterimage and flashes draw Sprite Renderers, following their flip, their sprite's shape and 2D Animation skinning. A flat sprite has no surface turning away from the camera, so Rim settings on overlays, see-through and afterimages are measured from the sprite's own outline instead, which keeps rim lit looks such as Hologram and Target Lock working on sprites. Sprites write no depth, so on the 2D Renderer a highlighted sprite counts as hidden where a sprite drawn after it in the sorting order covers it, at least half opaque: Visible Only, Hidden Only and the see-through part follow that order as they follow depth in 3D.
The Getting Started sample comes with three graphs in its folder that you can read and pull apart; they are the graphs the graph editor demo switches between, and building the demo puts back any that you delete:
- PassForge Outline Sample renders a layer into a private mask buffer and reads it back in a full screen edge detect. The clearest example of what a chained graph does that a stock feature cannot.
- PassForge Blur Sample blurs the screen with a single Blur Chain node that expands into a pass per pyramid level.
- PassForge Volume Sample tints the screen from a Volume, showing the artist-facing workflow.