Pass ForgeDocs Product page

API

Objects and highlights

Components that work on the object they sit on: highlights, dissolve, masks, cross sections and the Reveal Lens.

PassForgeRevealLens

A circle on screen that shows an alternative view: ultraviolet light that makes clues glow, X-ray, thermal or magnification. The objects in its list, or every object carrying a Pass Forge Effect Mask, light up inside it as clues. The lens sets its own look and needs no Volume; a scene Volume whose Reveal Lens overrides a setting takes that setting over.

public sealed class PassForgeRevealLens : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Reveal Lens.

PassForgeRevealLens.current

The lens drawn: the one enabled last.

public static PassForgeRevealLens current { get; }

PassForgeRevealLens.placement

Where the lens sits on screen.

public RevealLensPlacement placement { get; set; }

PassForgeRevealLens.screenPoint

Screen point of the lens from 0 to 1, used when placed at a screen point.

public Vector2 screenPoint { get; set; }

PassForgeRevealLens.radius

Radius of the lens, as a share of the screen height.

public float radius { get; set; }

PassForgeRevealLens.softness

Share of the radius over which the lens edge fades.

public float softness { get; set; }

PassForgeRevealLens.clueSource

Which objects light up as clues: the lens's own list, or every Pass Forge Effect Mask.

public RevealLensClues clueSource { get; set; }

PassForgeRevealLens.clues

The objects the lens looks for. Change them with AddClue and RemoveClue.

public IReadOnlyList<GameObject> clues { get; }

PassForgeRevealLens.showBehindWalls

Light up the clues behind walls and other objects too.

public bool showBehindWalls { get; set; }

PassForgeRevealLens.style

What the lens shows. A scene Volume whose Reveal Lens overrides Style takes it over.

public RevealLensStyle style { get; set; }

PassForgeRevealLens.clueColor

Glow color of objects with a Pass Forge Effect Mask inside the lens.

public Color clueColor { get; set; }

PassForgeRevealLens.dimOutside

Darkening outside the lens, from 0 to 1.

public float dimOutside { get; set; }

PassForgeRevealLens.magnification

How much the Magnifier style enlarges, from 1 to 8.

public float magnification { get; set; }

PassForgeRevealLens.ringWidth

Width of a thin ring around the lens, in pixels. Zero draws none.

public float ringWidth { get; set; }

PassForgeRevealLens.ringColor

Color of the ring around the lens.

public Color ringColor { get; set; }

PassForgeRevealLens.AddClue(GameObject)

Adds an object to look for, with its children.

public void AddClue(GameObject clue)

PassForgeRevealLens.RemoveClue(GameObject)

Stops looking for an object.

public void RemoveClue(GameObject clue)

PassForgeRevealLens.RefreshClues()

Gathers the clues' renderers again, after adding renderers to a clue object or after changing a LOD Group's levels with LODGroup.SetLODs.

public void RefreshClues()

PassForgeCrossSection

Cuts the target objects with this object's plane and shows the inside in a section color, for architecture, product and teaching views. Move and rotate this object to move the cut; its up direction points at the part that is cut away. Works in play mode.

public sealed class PassForgeCrossSection : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Cross Section.

PassForgeCrossSection.targets

Objects to cut, with their children. A change takes effect on the next frame.

public GameObject[] targets { get; set; }

PassForgeCrossSection.sectionColor

Color of the cut surfaces.

public Color sectionColor { get; set; }

PassForgeDissolve

Dissolves an object away or materializes it, without changing its materials by hand: while the effect runs, its meshes show copies of their materials that keep every texture and setting, and its sprites keep their own materials, shown through a hidden sprite mask with a glowing edge drawn above them. A sprite that uses sprite masks of its own, or is bent by bones, shows a copy of its material on the Sprite Effects shader instead. When the object is whole again, everything is as it was. Works in play mode.

public sealed class PassForgeDissolve : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Dissolve.

PassForgeDissolve.amount

How much of the object is gone, from 0 for whole to 1 for gone.

public float amount { get; set; }

PassForgeDissolve.style

How the object goes away.

public DissolveStyle style { get; set; }

PassForgeDissolve.isPlaying

True while Dissolve or Materialize plays.

public bool isPlaying { get; }

PassForgeDissolve.onFinished

Called when Dissolve or Materialize finishes.

public UnityEvent onFinished { get; }

PassForgeDissolve.Dissolve()

Dissolves the object away over 1.2 seconds.

public void Dissolve()

PassForgeDissolve.Dissolve(float)

Dissolves the object away over the given seconds.

public void Dissolve(float duration)

PassForgeDissolve.Materialize()

Builds the object up from nothing over 1.2 seconds, turning it on first if it is off.

public void Materialize()

PassForgeDissolve.Materialize(float)

Builds the object up from nothing over the given seconds, turning it on first if it is off.

public void Materialize(float duration)

PassForgeDissolve.RefreshRenderers()

Gathers the renderers again, after renderers were added to or removed from the object.

public void RefreshRenderers()

PassForgeEffectMask

Marks an object for screen effects whose Mask setting is Only Masked Objects or Except Masked Objects, so a look can apply to chosen objects only, such as keeping the hero in color while the world turns gray, or blurring everything but a tutorial target. Draws Mesh, Skinned Mesh and Sprite Renderers. Rendering layers are the other way to mark objects, with no component on each: every renderer on the layers chosen with renderingLayers or a PassForgeEffectMaskLayers counts as masked too.

public sealed class PassForgeEffectMask : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Effect Mask.

PassForgeEffectMask.activeCount

Number of masks currently enabled.

public static int activeCount { get; }

PassForgeEffectMask.renderingLayers

Rendering layers whose renderers count as masked objects too, as if each carried an Effect Mask, chosen from a script. Put every enemy on a "Thermal" rendering layer and set this to RenderingLayerMask.GetMask("Thermal") instead of adding the component to each. Nothing, the default, adds no renderer and costs nothing. A PassForgeEffectMaskLayers chooses layers from the scene instead, and the layers of both count. The value is not saved: set it again each time the game starts.

public static RenderingLayerMask renderingLayers { get; set; }

PassForgeEffectMask.renderingLayersIncludeHiddenParts

Whether the parts of renderers on renderingLayers hidden behind other geometry count too. Off, the default, masks only what the camera sees, using the scene depth.

public static bool renderingLayersIncludeHiddenParts { get; set; }

PassForgeEffectMask.activeRenderingLayers

Every rendering layer whose renderers count as masked objects now: renderingLayers and the layers of every enabled PassForgeEffectMaskLayers.

public static RenderingLayerMask activeRenderingLayers { get; }

PassForgeEffectMask.anyActive

True while anything is marked for masks: an enabled Effect Mask, or a rendering layer chosen with renderingLayers or an enabled PassForgeEffectMaskLayers. While it is false the masks cost nothing, and effects set to Only Masked Objects show nowhere.

public static bool anyActive { get; }

PassForgeEffectMask.includeChildren

Also mask the renderers on child objects.

public bool includeChildren { get; set; }

PassForgeEffectMask.includeHiddenParts

Mask the parts hidden behind other geometry too.

public bool includeHiddenParts { get; set; }

PassForgeEffectMask.rendererCount

Number of mesh, skinned mesh and sprite renderers the mask draws.

public int rendererCount { get; }

PassForgeEffectMask.RefreshRenderers()

Gathers the renderers to draw again, after adding renderers to a masked object or after changing a LOD Group's levels with LODGroup.SetLODs.

public void RefreshRenderers()

PassForgeEffectMaskLayers

Counts every renderer on the chosen rendering layers as a masked object for screen effects whose Mask setting is Only Masked Objects or Except Masked Objects, with no component on each object: put every enemy on a "Thermal" rendering layer and one of these anywhere in the scene, instead of a Pass Forge Effect Mask on each enemy. Name the layers in Project Settings > Tags and Layers > Rendering Layers and pick them in each renderer's Rendering Layer Mask. Several of these, and PassForgeEffectMask.renderingLayers set from a script, add their layers up. Switch it off, or choose Nothing, and the layers cost nothing.

public sealed class PassForgeEffectMaskLayers : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Effect Mask Layers.

PassForgeEffectMaskLayers.renderingLayers

The rendering layers whose renderers count as masked objects while this component is enabled. Nothing, the default, adds none.

public RenderingLayerMask renderingLayers { get; set; }

PassForgeEffectMaskLayers.includeHiddenParts

Whether the parts of the renderers on renderingLayers hidden behind other geometry count too. Off masks only what the camera sees.

public bool includeHiddenParts { get; set; }

PassForgeHighlight

Marks an object for the Highlight node, which draws the look set in its HighlightProfile. Enable, disable, add or remove the component at runtime to select and deselect objects; nothing else has to change. Flash(Color, float) flashes the object whether the highlight is enabled or not.

public sealed class PassForgeHighlight : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Highlight.

PassForgeHighlight.activeCount

Number of highlights currently enabled.

public static int activeCount { get; }

PassForgeHighlight.profile

Look of the highlight, or null for the default outline.

public HighlightProfile profile { get; set; }

PassForgeHighlight.includeChildren

Also highlight the renderers on child objects.

public bool includeChildren { get; set; }

PassForgeHighlight.rendererCount

Number of mesh, skinned mesh and sprite renderers this highlight draws.

public int rendererCount { get; }

PassForgeHighlight.isFlashing

True while a flash started with Flash(Color, float) is still fading.

public bool isFlashing { get; }

PassForgeHighlight.weight

How strongly the highlight shows, from 0 to 1. It is 1 unless FadeIn(float) or FadeOut(float) is bringing it in or out.

public float weight { get; }

PassForgeHighlight.fillAmount

How far this object's fill has grown, from 0 to 1: progress, charging, capture or a state spreading over it. Setting it changes only this object; the first time, the object gets its own copy of the profile. The profile's Fill must be switched on for it to show.

public float fillAmount { get; set; }

PassForgeHighlight.UniqueProfile()

Gives this object its own copy of its profile, the first time it is called, and returns it. Change the copy to animate one object on its own, such as its fill amount or spread point, without touching every object that shares the original. Objects with their own copy are drawn separately.

public HighlightProfile UniqueProfile()

PassForgeHighlight.SetFillAmount(float)

Sets fillAmount. Pick it in a UnityEvent, such as a UI Slider's On Value Changed.

public void SetFillAmount(float amount)

PassForgeHighlight.SetSpreadPoint(Vector3)

Makes a From Point fill on this object spread from a world position, such as where a hit landed.

public void SetSpreadPoint(Vector3 worldPosition)

PassForgeHighlight.SpreadFrom(Vector3)

Grows a From Point fill on this object from a world position, such as ice from where a hit landed: from nothing to the profile's Amount over the Fill's Spread Seconds, slowing as it reaches the edges. Pick it in a UnityEvent that sends a point, such as a Highlight Trigger's On Clicked At. A new one starts again from its own point.

public void SpreadFrom(Vector3 worldPosition)

PassForgeHighlight.SpreadFrom(Vector3, float)

Grows a From Point fill from a world position over the given seconds; zero shows it grown at once.

public void SpreadFrom(Vector3 worldPosition, float seconds)

PassForgeHighlight.FadeIn(float)

Switches the highlight on and brings it in over the given seconds, from wherever a fade out had got to. Zero shows it at once.

public void FadeIn(float seconds)

PassForgeHighlight.FadeOut(float)

Takes the highlight out over the given seconds, then switches it off. Zero hides it at once.

public void FadeOut(float seconds)

PassForgeHighlight.RefreshRenderers()

Gathers the renderers to draw again. Children added or removed are picked up on their own; call this after adding a renderer component to an object that is already highlighted, or after changing a LOD Group's levels with LODGroup.SetLODs.

public void RefreshRenderers()

PassForgeHighlight.Flash(Color, float)

Flashes the object in a color that fades out over the duration, for hits, pickups and confirmations. It works whether the highlight is enabled or not, so a disabled component serves as a flash only. Flashing again restarts the flash.

public void Flash(Color color, float duration = 0.2f)

PassForgeHighlight.Flash()

Flashes the object white for a fifth of a second.

public void Flash()

PassForgeHighlightTrigger

Switches the PassForgeHighlight on the same object on and off without code: on pointer hover, on click or tap, when the screen center aims at it, or when the player comes near. UnityEvents report the changes for sounds, tooltips and game logic.

public sealed class PassForgeHighlightTrigger : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Highlight Trigger.

PassForgeHighlightTrigger.mode

What switches the highlight on.

public HighlightTriggerMode mode { get; set; }

PassForgeHighlightTrigger.pointerCamera

Camera the pointer is measured in, or null for the main camera.

public Camera pointerCamera { get; set; }

PassForgeHighlightTrigger.maxDistance

Farthest distance at which the pointer or the screen center reaches the object.

public float maxDistance { get; set; }

PassForgeHighlightTrigger.ignore

Objects the pointer and the screen center pass through, such as the player in a third person game.

public Transform[] ignore { get; set; }

PassForgeHighlightTrigger.tracked

Object that has to come near for Proximity, or null for the main camera.

public Transform tracked { get; set; }

PassForgeHighlightTrigger.radius

How near the tracked object has to come for Proximity.

public float radius { get; set; }

PassForgeHighlightTrigger.proximityArea

The area the tracked object has to be in for Proximity.

public ProximityArea proximityArea { get; set; }

PassForgeHighlightTrigger.areaOffset

Where the sphere or the box sits, from the object's position, turned with it.

public Vector3 areaOffset { get; set; }

PassForgeHighlightTrigger.areaSize

Size of the Proximity box in world units, turned with the object.

public Vector3 areaSize { get; set; }

PassForgeHighlightTrigger.facingAngle

How far the tracked object may turn away and still count, in degrees; zero switches the check off.

public float facingAngle { get; set; }

PassForgeHighlightTrigger.fadeIn

Seconds the highlight takes to come in. Zero shows it at once.

public float fadeIn { get; set; }

PassForgeHighlightTrigger.fadeOut

Seconds the highlight takes to go out. Zero hides it at once.

public float fadeOut { get; set; }

PassForgeHighlightTrigger.onHighlighted

Raised when the highlight switches on.

public UnityEvent onHighlighted { get; }

PassForgeHighlightTrigger.onUnhighlighted

Raised when the highlight switches off.

public UnityEvent onUnhighlighted { get; }

PassForgeHighlightTrigger.onClicked

Raised when the object is clicked or tapped in Pointer Click mode.

public UnityEvent onClicked { get; }

PassForgeHighlightTrigger.onClickedAt

Raised with the point on the object that was clicked or tapped in Pointer Click mode, such as for a Moment's PlayAt or a Highlight's SetSpreadPoint, so an effect starts where the hit landed.

public UnityEvent<Vector3> onClickedAt { get; }

PassForgeHighlightTrigger.lastClickPoint

The point on the object the last click or tap landed on, or its position before the first.

public Vector3 lastClickPoint { get; }

PassForgeHighlightTrigger.isHighlighted

True while the trigger holds the highlight on.

public bool isHighlighted { get; }

PassForgeHighlightTrigger.isSelected

True while the object is selected in Pointer Click mode.

public bool isSelected { get; }

PassForgeHighlightTrigger.Select()

Selects the object, deselecting the others first when Only One Selected is on.

public void Select()

PassForgeHighlightTrigger.Deselect()

Deselects the object.

public void Deselect()

PassForgeHighlightTrigger.DeselectAll()

Deselects every selected object.

public static void DeselectAll()

PassForgeHighlightTrigger.RefreshColliders()

Looks for colliders again, after adding or removing some on the object or its children.

public void RefreshColliders()

PassForgeHighlightTrigger.IsHit(Ray)

True when a ray reaches the object: its colliders when it has any, so objects in front block the ray, and otherwise a sprite's own shape or another renderer's bounds, where a sprite with a Collider 2D drawn in front blocks a 2D one.

public bool IsHit(Ray ray)

PassForgeOccluderFade

Put it on the player: walls, roofs and trees between the camera and this object get a soft see-through hole around it, so the player never disappears behind scenery. Sprites drawn over the player fade instead, by the 2D sorting order when the player is a sprite. Needs no colliders. Works in play mode.

public sealed class PassForgeOccluderFade : MonoBehaviour

Namespace PassForge.Effects, assembly PassForge.Runtime. Add Component: Pass Forge > Occluder Fade.

PassForgeOccluderFade.fadedCount

Renderers that currently have a hole, and sprites faded or fading back.

public int fadedCount { get; }

PassForgeOccluderFade.radius

Radius of the hole, as a share of the screen height.

public float radius { get; set; }

OutlineSettings

A line around the object's silhouette.

public sealed class OutlineSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

OutlineSettings.enabled

Draw the outline.

public bool enabled

OutlineSettings.color

Outline color. Alpha fades the whole outline.

public Color color

OutlineSettings.width

Width in pixels.

public float width

OutlineSettings.softness

Anti aliasing width of the outer edge, in pixels.

public float softness

OutlineSettings.scaleWithResolution

Scale the width with the screen height, measured against 1080 pixels.

public bool scaleWithResolution

OutlineSettings.visibility

Which part of the object gets the outline.

public HighlightVisibility visibility

OutlineSettings.style

How the outline is drawn.

public OutlineStyle style

OutlineSettings.secondaryColor

Second color for the Dashed and Energy styles.

public Color secondaryColor

OutlineSettings.patternSize

Size of the dashes or of the energy detail, in pixels.

public float patternSize

OutlineSettings.patternSpeed

How fast the dashes march or the energy moves.

public float patternSpeed

GlowSettings

A soft halo around the object.

public sealed class GlowSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

GlowSettings.enabled

Draw the glow.

public bool enabled

GlowSettings.color

Glow color.

public Color color

GlowSettings.intensity

Brightness of the glow.

public float intensity

GlowSettings.radius

How far the glow spreads, in blur steps.

public int radius

GlowSettings.outsideOnly

Keep the glow off the object itself.

public bool outsideOnly

GlowSettings.visibility

Which part of the object glows.

public HighlightVisibility visibility

GlowSettings.style

How the glow spreads.

public GlowStyle style

GlowSettings.auraHeight

How high aura flames rise, in pixels.

public float auraHeight

GlowSettings.auraSpeed

How fast aura flames rise.

public float auraSpeed

SeeThroughSettings

A silhouette drawn where the object is hidden behind other geometry.

public sealed class SeeThroughSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

SeeThroughSettings.enabled

Draw the silhouette.

public bool enabled

SeeThroughSettings.color

Silhouette color.

public Color color

SeeThroughSettings.opacity

How opaque the silhouette is.

public float opacity

SeeThroughSettings.rim

Fade the silhouette towards its edges.

public float rim

SeeThroughSettings.rimPower

How tightly the rim hugs the edges.

public float rimPower

OverlaySettings

A color laid over the visible surface of the object.

public sealed class OverlaySettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

OverlaySettings.enabled

Draw the overlay.

public bool enabled

OverlaySettings.color

Overlay color.

public Color color

OverlaySettings.intensity

Strength of the overlay.

public float intensity

OverlaySettings.blend

How the overlay combines with the object.

public OverlayBlend blend

OverlaySettings.rim

Concentrate the overlay at the object's edges.

public float rim

OverlaySettings.rimPower

How tightly the rim hugs the edges.

public float rimPower

OverlaySettings.pulseSpeed

Pulses per second. Zero holds the overlay steady.

public float pulseSpeed

OverlaySettings.pulseAmount

How far each pulse dims the overlay.

public float pulseAmount

PatternSettings

An animated pattern laid over the object.

public sealed class PatternSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

PatternSettings.enabled

Draw the pattern.

public bool enabled

PatternSettings.type

Which pattern to draw.

public HighlightPattern type

PatternSettings.color

Pattern color.

public Color color

PatternSettings.intensity

Strength of the pattern.

public float intensity

PatternSettings.blend

How the pattern combines with the object.

public OverlayBlend blend

PatternSettings.scale

Size of one repeat of the pattern: in centimeters on the object's surface, or in screen pixels for scanlines, noise, foil and glint.

public float scale

PatternSettings.speed

How fast the pattern moves.

public float speed

PatternSettings.visibility

Which part of the object gets the pattern.

public HighlightVisibility visibility

StylizeSettings

Restyles the visible surface of the object: pixels, fewer colors, gray or brighter.

public sealed class StylizeSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

StylizeSettings.enabled

Restyle the surface.

public bool enabled

StylizeSettings.pixelSize

Size of the pixels the object is drawn with.

public int pixelSize

StylizeSettings.blur

How far the object is blurred, in pixels of a 1080 pixel high picture. Zero leaves it sharp.

public float blur

StylizeSettings.colorLevels

Tones per color channel, or zero to keep every tone.

public int colorLevels

StylizeSettings.desaturate

How far the object loses its color.

public float desaturate

StylizeSettings.brightness

Brightness multiplier.

public float brightness

StylizeSettings.contrast

Contrast around middle gray.

public float contrast

StylizeSettings.surface

A material look laid over the surface.

public SurfaceStyle surface

StylizeSettings.surfaceAmount

Strength of the material look.

public float surfaceAmount

StylizeSettings.distortion

How much the material look bends and shifts the picture, in pixels.

public float distortion

FillSettings

A fill that grows across the object, for progress, charging and states spreading from a hit.

public sealed class FillSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

FillSettings.enabled

Draw the fill.

public bool enabled

FillSettings.amount

How far the fill has grown, from 0 to 1.

public float amount

FillSettings.direction

Which way the fill grows.

public FillDirection direction

FillSettings.spreadPoint

World position a From Point fill spreads from.

public Vector3 spreadPoint

FillSettings.color

Color of the filled part.

public Color color

FillSettings.colorStrength

How strongly the filled part takes the fill color.

public float colorStrength

FillSettings.edgeColor

Color of the band along the fill's front.

public Color edgeColor

FillSettings.edgeWidth

Width of the band along the front, in pixels.

public float edgeWidth

FillSettings.limitOthers

Keeps the surface style, overlay and pattern to part of the object.

public FillLimit limitOthers

FillSettings.spreadSeconds

Seconds a From Point fill takes to spread when a hit starts it: a click on a Highlight Trigger, a Moment's Highlight For Seconds, or PassForgeHighlight.SpreadFrom(Vector3). Zero shows it at once.

public float spreadSeconds

BeamSettings

A column of light rising from the object, like loot rarity beams.

public sealed class BeamSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

BeamSettings.enabled

Draw the beam.

public bool enabled

BeamSettings.color

Beam color.

public Color color

BeamSettings.intensity

Brightness of the beam.

public float intensity

BeamSettings.width

Width of the beam, as a share of the object's width on screen.

public float width

BeamSettings.height

How high the beam rises, as a share of the screen height.

public float height

BeamSettings.pulseSpeed

Pulses per second.

public float pulseSpeed

BeamSettings.shimmer

Light rippling up the beam.

public float shimmer

BracketSettings

Corner brackets around the object on screen, like a targeting reticle.

public sealed class BracketSettings

Namespace PassForge.Effects, assembly PassForge.Runtime.

BracketSettings.enabled

Draw the brackets.

public bool enabled

BracketSettings.color

Bracket color. Alpha fades them.

public Color color

BracketSettings.thickness

Line thickness in pixels.

public float thickness

BracketSettings.length

Length of each bracket arm, as a fraction of the box's shorter side.

public float length

BracketSettings.padding

Space between the object and the brackets, in pixels.

public float padding

BracketSettings.pulseSpeed

Pulses per second. Zero holds the brackets still.

public float pulseSpeed

BracketSettings.pulseDistance

How far the brackets move out on each pulse, in pixels.

public float pulseDistance

HighlightProfile

The look of a highlight: outline, glow, see-through silhouette, overlay, pattern, surface style and brackets, each switched on separately. Objects that share a profile are drawn together, so reuse one profile for every object that should look the same.

public sealed class HighlightProfile : ScriptableObject

Namespace PassForge.Effects, assembly PassForge.Runtime. Create: Pass Forge > Highlight Profile.

HighlightProfile.fill

Fill growing across the object.

public FillSettings fill { get; }

HighlightProfile.beam

Column of light rising from the object.

public BeamSettings beam { get; }

HighlightProfile.outline

Line around the silhouette.

public OutlineSettings outline { get; }

HighlightProfile.glow

Soft halo around the object.

public GlowSettings glow { get; }

HighlightProfile.seeThrough

Silhouette shown through geometry in front of the object.

public SeeThroughSettings seeThrough { get; }

HighlightProfile.overlay

Color laid over the visible surface.

public OverlaySettings overlay { get; }

HighlightProfile.pattern

Animated pattern laid over the object.

public PatternSettings pattern { get; }

HighlightProfile.stylize

Pixels, tones and color of the visible surface.

public StylizeSettings stylize { get; }

HighlightProfile.brackets

Corner brackets around the object on screen.

public BracketSettings brackets { get; }

HighlightProfile.drawsAnything

True when at least one part of the highlight is switched on.

public bool drawsAnything { get; }

RevealLensPlacement

Where a PassForgeRevealLens sits on screen.

public enum RevealLensPlacement

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
FollowObjectWhere this object points: a flashlight, a scanner, a magnifying glass in the world.
ScreenCenterIn the middle of the screen, like a scope or a held lens.
ScreenPointAt a screen point set from a script.
MousePointerUnder the mouse pointer, or the first touch: a magnifying glass or a detective's lamp.

RevealLensClues

Which objects light up as clues inside a PassForgeRevealLens.

public enum RevealLensClues

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
TheseObjectsThe objects in the lens's own list, and their children.
EffectMasksEvery object carrying a Pass Forge Effect Mask.

HighlightVisibility

Which part of an object an effect applies to.

public enum HighlightVisibility

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
AlwaysThe whole object, whether something is in front of it or not.
VisibleOnlyOnly the parts of the object the camera can see.
HiddenOnlyOnly the parts of the object hidden behind other geometry.

OverlayBlend

How an overlay combines with the object.

public enum OverlayBlend

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
TintPaint the object towards the overlay color.
AdditiveAdd the overlay color on top, which brightens.

OutlineStyle

How an outline is drawn.

public enum OutlineStyle

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
SolidOne solid color.
DashedStripes of the two colors marching along, like a selection marquee.
EnergyA flickering band that wavers in width and shifts between the two colors, like fire or electricity.
BrushA brush stroke that swells and tapers along the silhouette and is redrawn a few times a second.

GlowStyle

How a glow spreads.

public enum GlowStyle

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
SoftA soft halo all around.
AuraFlat bands of toon flame rising from the silhouette, like an anime power aura.

SurfaceStyle

A material look laid over the visible surface.

public enum SurfaceStyle

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
NoneNo change beyond pixels, tones and color.
GlassGlass or ice: the scene behind bends through the object.
CloakAn invisibility cloak: the object nearly vanishes into what surrounds it, with shimmering edges.
GhostA see-through, cold, wavering ghost.
GlitchSliced bands jumping sideways, split colors and dropped blocks.

FillDirection

Which way a fill grows across an object.

public enum FillDirection

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
UpFrom the bottom of the object up.
DownFrom the top of the object down.
LeftToRightFrom the left side across.
RightToLeftFrom the right side across.
FromPointOutward from a point in the world, such as where a hit landed.

FillLimit

Which part of an object the other highlight layers keep to while a fill is on.

public enum FillLimit

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
WholeObjectThe whole object, whatever the fill.
FilledPartOnly the filled part, so a look spreads with the fill.
UnfilledPartOnly the part not filled yet, so a look recedes as the fill grows.

HighlightPattern

A pattern laid over an object. Most lie on the object's surface; scanlines, noise, foil and glint belong to the screen.

public enum HighlightPattern

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
ScanlinesHorizontal lines with a slow sweep, for holograms and scanners.
StripesDiagonal stripes, for warnings and barriers.
GridA square grid, for wireframe and blueprint looks.
DotsRound dots that breathe, for poison, magic and print looks.
HexagonsA shimmering hexagon mesh, for shields and force fields.
NoiseFlickering static, for electricity and interference.
CircuitCircuit traces with pulses of light running along them, for tech and cyber looks.
RunesFlickering glyphs, for magic marks and curses.
CamouflageTwo tone blotches, for camouflage.
ScalesOverlapping rows of scales, for dragons and armor.
VeinsCrawling branching veins, for curses, corruption and leaves.
HeartsBeating hearts, for charm and love.
DripsA coat running down from the top in drips, for slime, paint and blood.
GrimeGrime building up from the bottom, for mud, rust and dirt.
WetSheenGlossy streaks running down, for wet and oily surfaces.
CracksA web of cracks, for stone, ice and damage.
FoilRainbow sheen that shifts with the view, for holographic foil and collectibles.
GlintA bright band sweeping across now and then, for loot and pickups.
EmbersGlowing cracks that flicker like embers, for burnt and charred things.

DissolveStyle

How a PassForgeDissolve removes the object.

public enum DissolveStyle

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
DissolveBurns away in noisy patches with a glowing edge.
ScanA glowing line scans down from the top; played backwards it builds the object up from the bottom.
DisintegrateCrumbles from the top in fine grains that blow up and away.

HighlightTriggerMode

What switches on the highlight of a PassForgeHighlightTrigger.

public enum HighlightTriggerMode

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
PointerHoverHighlight while the mouse, a pen or a finger is over the object.
PointerClickSelect and deselect the object with a click or a tap; the highlight shows while selected.
ScreenCenterHighlight while the middle of the screen aims at the object, for first person interaction.
ProximityHighlight while the tracked object, such as the player, is near.

ProximityArea

The area the tracked object has to be in for HighlightTriggerMode.Proximity.

public enum ProximityArea

Namespace PassForge.Effects, assembly PassForge.Runtime.

ValueMeaning
AroundObjectWithin the radius of the box around the object's renderers, so a bigger object reaches farther.
SphereWithin the radius of a point on the object, whatever its shape.
BoxInside a box placed and turned with the object, such as the space in front of a door.
TriggerCollidersInside the trigger colliders on the object and its children, in whatever shape they have.