find-examples
Official examples
Use official examples as version-matched recipes. Engine and Web Components examples are standalone applications to adapt, not modules to import.
Use the reuse-scripts skill instead when the installed Engine ships a production script for the
required behavior.
Find the matching example
When node_modules/playcanvas is a local source checkout or linked build — a symlink, a workspace,
or a path dependency — its examples/src/examples/** are already on disk. Read them directly and
skip the GitHub fetch below. A linked engine can sit ahead of any published tag, and a pre-release
version (-alpha, -beta) may have no matching public tree, so the on-disk source is the ground
truth. Fall back to GitHub only when the examples are absent locally; the published npm package
omits examples/.