Skip to main content
UNITY PACKAGE

Dynamic Target Framer

Pixel-tight UI framing for whatever the player is looking at.

Puts a clean, dynamic bounding box on screen around whatever 3D object the player is aiming at. The frame is built from the object’s real mesh or MeshCollider vertices, not a loose world-space box, so it stays as tight as possible from every camera angle. The Runtime only measures and publishes the result as data — how it’s drawn is entirely up to you, with a drop-in reference view included.

Features

  1. Mesh-Accurate Fit

    Projects the target’s real mesh or MeshCollider vertices to screen space — not a loose world-space AABB — so the frame hugs the silhouette from every angle.

  2. Presentation-Agnostic Core

    The Runtime component only measures and publishes a TargetFrame (a screen-space rectangle). It never references uGUI, so any renderer — yours or ours — can consume it.

  3. Drop-In Reference View

    The included TargetFrameView sample reproduces padding, smoothing and idle states in one component — copy it as a starting point for your own look.

  4. Zero Steady-State GC

    Mesh vertices are cached once per mesh and the box is only recalculated when the camera or target actually moves — built for low-end and mobile.