Review all tutorials and make sure they work with the current engine

Open
#1,355 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript, playwright

Research direction

Start with the tutorial pages and projects under docs/tutorials, then identify how the site builds and launches tutorials in headless Chrome and the Editor launcher. The issue lays out four phases, from smoke testing and code comparisons to link and content checks; track console errors, rendered frames, screenshots, and any project side fixes. Done means the planned checks are reported and follow-up documentation fixes are grouped by area.

Written by the indexing model from the issue text.

Description

The tutorials haven't been checked as a set in a long time. The pc. cleanup (#1352, #1353, #1354) found three tutorial scripts that didn't run as written: mouse-input and video-textures ESM had missing imports, and keyboard-input called preventDefault() on the engine's KeyboardEvent. There are likely more.

Current state (main, 2026-11-16)

There are 147 tutorials in docs/tutorials:

  • About 110 project showcases: an embedded playcanv.as build and a link to an Editor project, with no code on the page. The code lives only in the Editor project, mostly as classic scripts.
  • About 34 with code on the page: 31 have ESM / Classic tabs. Most of the ESM code was added in #669 and #777 and has probably never run in the tutorial projects.
  • 3 Editor walkthroughs with no embed: basic-cameras, basic-materials, importing-first-model-and-animation.

All 138 embedded builds and 143 project links return HTTP 200. That only shows the pages exist. Published builds are frozen with the engine they were built with, so a build can still run while its project is broken on the current engine.

Plan

Phase 1: automated smoke test (report only, no changes)

  • Load every published build in headless Chrome and record console errors, whether a frame renders, and a screenshot. Collect the results in an HTML report.
  • Launch every project in the Editor launcher with the current engine (debug build, so deprecation warnings show) and record the same.

Phase 2: code on the page

  • Compare each page's code with the scripts in its project, to catch drift.
  • For each ESM tab: fork the project, replace the classic scripts with the ESM code from the page, launch it, and check it behaves like the Classic version.

Phase 3: content

  • Find broken internal links (Docusaurus build) and external links.
  • Find deprecated API names in page code.
  • Check that UI steps and screenshots match the current Editor, starting with the 3 walkthroughs and the basics tutorials.

Phase 4: fixes

  • Docs fixes in PRs grouped by area, English and Japanese together.
  • Changes needed inside Editor projects are listed here for whoever owns the projects.

Open question

The tutorial projects belong to PlayCanvas accounts. Phases 1 and 2 can work on forks, with project-side changes listed here, or on the original projects. Only the originals can be converted to ESM scripts, which is what would make the tutorials work end to end with ESM.

Dominant language
JavaScript
Stars
151
Forks
82
Avg merge
10h 29m
Merged PRs (30d)
105

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from playcanvas/developer-site

All issues in playcanvas/developer-site

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.