You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The engine's scripts folder, published in the npm package as playcanvas/scripts/*, mixes two generations of scripts:
ESM scripts (scripts/esm/, about 45 files) are the modern, maintained set: camera controls and character controllers, XR, gsplat effects, camera frame, sky, water and more. Most are flat in scripts/esm/, and some are grouped in subfolders (gsplat, xr, vat, parsers).
Classic scripts (scripts/camera, physics, posteffects, utils, animation, textmesh, spine) are older pc.createScript scripts. Some are superseded:
Removing classic scripts can lead to some problems. Specifically for users who use classic scripts as main script format. Adding ESM scripts to Editor's project will switch the way engine is loaded and scripts are loaded, and often it breaks many things.
Activity
Maksims commentedon Nov 20, 2026
Removing classic scripts can lead to some problems. Specifically for users who use classic scripts as main script format. Adding ESM scripts to Editor's project will switch the way engine is loaded and scripts are loaded, and often it breaks many things.