Skip to content

refactor: Deprecate AnimationComponent - #10105

Merged
mvaligursky merged 1 commit into
mainfrom
mv-deprecate-animation-component
Nov 19, 2026
Merged

mvaligursky merged 1 commit into
mainfrom
mv-deprecate-animation-component

Conversation

@mvaligursky

Copy link
Copy Markdown
Contributor

Deprecates the legacy AnimationComponent, which is superseded by AnimComponent and will be removed in Engine V3. Nothing changes in behaviour.

Changes:

  • AnimationComponent and AnimationComponentSystem are marked @deprecated and point to AnimComponent and AnimComponentSystem.
  • Creating an animation component, including by cloning, logs a single deprecation warning: AnimationComponent is deprecated and will be removed in Engine V3. Use AnimComponent instead. Debug.deprecated logs each message once, so projects with many animation components don't spam the console. Like other deprecation warnings, it's only in debug builds.
  • Tests check that any number of components log the warning once, and that it isn't logged without animation components.

🤖 Generated with Claude Code

AnimationComponent is superseded by AnimComponent and will be removed in Engine V3. Creating an
animation component logs a deprecation warning once per application session, however many
components are created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Build size report

This PR does not change the size of the minified bundles.

Bundle Minified Gzip
playcanvas.min.js — —
playcanvas.min.mjs — —

Measured on a min build with identifier mangling off. In the shipped build esbuild renames identifiers by use count across the whole bundle, so any change reshuffles names file-wide and moves gzip/brotli by hundreds of bytes regardless of the actual change.

Shipped bundle sizes with this PR
Bundle Minified Gzip Brotli
playcanvas.min.js 2901.2 KB 754.6 KB 585.3 KB
playcanvas.min.mjs 2897.8 KB 753.7 KB 584.8 KB

@mvaligursky
mvaligursky merged commit 6bd3c97 into main Nov 19, 2026
9 checks passed
@mvaligursky
mvaligursky deleted the mv-deprecate-animation-component branch November 19, 2026 16:54

This branch was successfully deployed

2 active deployments
Preview – engine — 0e583a59 Deployed Nov 19, 2026 by vercel[bot]
Preview – engine-api-docs — 0e583a59 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: animation Animation related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant