Files
shinyobjectz 668ae2eb08 Docs: every SDK prop, field and member described on raea.io/docs, and the reference check fails on a missing one
The SDK reference's tables had 1,476 empty cells. Each prop, field and class member the pages table now has a doc
comment in its source, or Bevy's own field doc where the SDK mirrors a Bevy type:

- doc comments on 773 declarations across 84 SDK files (song maps, goo and rigid bodies, matchmove, the clock and
  timeline, state machines, materials and their extensions, the 2D shapes, bevy_ui and feathers wrappers, colours)
- inline prop types pulled out as named, documented interfaces (EchoesProps, DaylightProps, UiScaleProps, ...), so
  each prop can carry its own doc
- types raea-bevy-sdk generates from raea's crates (/** raea_core_animate::spec::AnimKey */) take their field docs
  from the Rust source, shown as raea's ("Rust: ..."), not Bevy's; core/animate's spec.rs gains the missing ///
- a props type (StandardMaterialProps) takes its component's @bevy fields; the colour classes gain their @bevy tags
- tools/manual-ref/sdk.ts check now fails on any prop, field or member without a description, as cli.ts does for
  flags; tools/manual-ref.sh links an export's node_modules (RAEA_MODULES) so it can run in L1's lane export
2026-11-08 20:18:08 -08:00

3.1 KiB

title, summary, order, sources
title summary order sources
raea/gizmos Lines drawn for looking: Bevy's gizmos and debug overlays. 70
sdk/raea/src/gizmos.ts

<Gizmo> draws debug lines with Bevy's gizmo renderer: a path, a box, an axis, a ray. They take and cast no light. <Overlay> and overlays draw the debug overlays raea's checks use, such as safe areas and element boxes, over a frame you're looking at.

import { Gizmo, Overlay, overlays } from "raea/gizmos"

raea/gizmos exports 2 components, 1 function, 3 types. Bevy's counterpart: bevy_gizmos. Source: sdk/raea/src/gizmos.ts.

Components

Gizmo

Debug lines drawn by Bevy's gizmo renderer (a retained bevy_gizmos Gizmo and its GizmoAsset), placed like a part: a path, a bounding box, an axis, a ray. They cast and take no light, and draw over nothing unless depthBias says.

Bevy: bevy_gizmos::retained::Gizmo.

Takes GizmoProps's props.

Used in: 3d/mesh_ray_cast, 3d/rect_light, transforms/align.

Overlay

Its children only in a render asked for the overlay name.

Prop Type What it does
name (required) string the overlay's name, as the render asks for it
children ReactNode what the overlay draws

Functions

overlays

The overlays this render was asked for ([] in a clean render and in live play).

function overlays(): string[]

Types

GizmoColor

a gizmo point's colour: "#rrggbb", linear [r, g, b, a], or Bevy's LinearRgba / Srgba (bevy3d's colours)

type GizmoColor = string | [number, number, number, number] | { red: number; green: number; blue: number; alpha?: number }

GizmoProps

Field Type What it is
lines [Vec3, Vec3][] segments, each [from, to]
strip (Vec3 | null)[] one line through these points (null breaks it)
color GizmoColor | GizmoColor[] one colour for every point, or one per point of lines (two per segment) then strip: "#rrggbb", Bevy's LinearRgba (above 1 for HDR, as bevy_gizmos takes it) or Srgba, or linear [r, g, b, a]
width number line width in pixels (Bevy's default 2)
depthBias number -1 always in front of geometry, 0 depth-tested as it is (Bevy's GizmoLineConfig and depth_bias)
position Vec3 where it stands, metres (x, y, z)
rotation Vec3 its rotation, Euler angles in radians (x, y, z)
scale Vec3 | number its scale: one number, or x, y and z
name string the entity's name, for picking, the inspector and world.*

OverlayProps

The props of Overlay, tabled there.