⚠️ Limitations & Scope¶
Constraints and platform caveats to be aware of when shipping with the current SpriteStudio Player for Flutter. For what is supported, see the Key Features and the workflow guides.
Not Yet Implemented¶
Warning
- Text parts — not drawn on either backend. The runtime supplies the authored string (and a bitmap font's glyph atlas) and keeps the part's place in the draw order; glyph layout and rasterization are the player's job, and the player has no Flutter text pass yet.
- 9-slice parts — not drawn on either backend. The runtime computes the stretched grid, but the player does not draw it yet, so the part renders as nothing rather than as a stretched cell.
Both part types still occupy their place in the draw order, so an animation that uses them plays with those parts missing rather than failing. They are also skipped as mask writers: a text or 9-slice part authored as a mask contributes no coverage. If you ship one, replace it with an ordinary part at authoring time.
Platforms¶
Runs on macOS, Windows, Linux, iOS, Android, and Web (developer preview).
The native runtime (libssruntime) is delivered per target by the native assets build hook — no
CocoaPods, no manual linking. On the Web the runtime is a WebAssembly module bundled as a Flutter
asset. The preview there means: the Canvas backend only, and live reload only in flutter run -d chrome
debug builds.
Rendering¶
- Two render backends. The dart:ui Canvas (
Canvas.drawVertices) is always available. Theflutter_gpu(Impeller) backend is used only when the run switches flutter_gpu on (flutter run --enable-flutter-gpu, plus--enable-impelleron Android). The defaultautoprobes for it and falls back to Canvas without a message, and so doesSpriteStudioBackend.gpu. Web is always Canvas. -
Blend modes. SpriteStudio realises every blend as a fixed-function GPU blend state, so how closely a mode can be reproduced depends on the backend:
SpriteStudio mode flutter_gpuCanvas Mix,Addexact exact Screen,Exclusionexact exact Screen2drawn as Screendrawn as ScreenMulexact over opaque content exact over opaque content Mulalpha,Mul2drawn as Muldrawn as MulSub,Invertexact exact over opaque content (4 / 3 draws) Div2,Overlay2renders as Mixrenders as Mixflutter_gpusets each mode's own blend state directly, so every mode with a state of its own is reproduced as-is. On the Canvas backend,SubandInverthave no singleui.BlendMode— Flutter's fixed enum has no reverse-subtract and no destination-replace — so the player reconstructs them exactly from stock passes over the same geometry, four forSuband three forInvert. The reconstruction costs three or two extra draws per part and prevents those parts from batching, which matters only if an animation usesSub/Inverton many parts at once. On Impeller, the pixels aSub/Invertpart's edge crosses come out slightly off — a one-pixel fringe where the edge does not fall on a pixel boundary.Div2/Overlay2draw asMix: no formula for either with a source exists to draw them by. -
Blends read an opaque backdrop. The modes that sample the destination (
Mul,Sub,Screen,Exclusion,Invert) match the editor where the pixels underneath are opaque — the case SpriteStudio itself assumes, since it renders onto an opaque target. Over transparency they differ, and the two backends differ from each other: the Canvas backend blends against whatever your app already painted behind the widget, whileflutter_gpublends inside its own offscreen and so sees only the animation's own pixels. Give a blend-heavy animation an opaque background layer if you need the two to agree.
Masks¶
Warning
- At most 96 masks at once in one animation, counting both mask parts and parts that write a
clipping mask (
writeMask), and counting the animations it plays through instance parts. An instance's masks count again every time the instance is placed; a hidden mask, or one whose mask value is 0, does not count. Past 96 the rest are ignored and a warning is printed once — restructure the data rather than raising the count. - Effect parts are not clipped by masks.
Neither backend uses a stencil buffer: the player draws every mask of an animation — its instances included — into one offscreen bitmap, one bit per mask, and each masked part tests that bitmap. Up to 24 fit at full resolution; past that the bitmap is split into two or four tiles of the same total size, so an animation with many masks gets coarser mask edges rather than taking more memory.
Part Following¶
Sticking a widget to a part (see Part Following) is currently limited to the following scope.
- Top-level parts only. A part inside an Instance part lives in the child animation's own player:
it cannot be followed, and
partQuad/hitTestPartdo not see it. The Instance part itself can be followed. - Skinned mesh parts cannot be followed onto their art. A bone-bound mesh part is drawn by bone
skinning, but its own transform stays at the setup node (usually the character root), so a follower
snaps there rather than onto the visible art. Target a NULL / bone-point part at that spot instead
(
isPartSkinnedMeshflags such a part, without blocking it). A rigid, deform-only mesh follows correctly. This islibssruntimebehaviour. - Transform only, not draw order. The following widget paints above the whole animation — it cannot be interleaved between the character's own parts.
- The anchor must cover the same box as the view (a
Positioned.fillsibling in oneStack), since both derive their centring from their own constraints.
Playback Feature Constraints¶
These come from the shared libssruntime and therefore apply on every platform and backend — and
to every official player, so the full explanations and the rest of the shared constraints
(embedded mode, unvalidated .ssab input, and so on) live in the portal:
Shared Limitations.
Warning
independent = trueparts (Instance / Effect) do not reverse or seek correctly. Only forward playback (including forward frame-skips) is correct.- Seeking does not fire the events it skips over. Only the destination frame's
UserData/Signal/Audioevents fire. - No reverse audio. A sound key crossed while the effective direction is backward (a reverse
direction, or a ping-pong return leg) is not meant to sound. This player reports audio
rather than playing it, so it does not drop those keys —
onAudiostill fires and the gate is yours: readisPlayingForwardand return early. (A negative speed is not one of those cases: speed is a multiplier, and a negative one stops the playhead rather than turning it around, as does0.) See Playback & Events. - Motion blending does not reach Instance / Effect children. The tracks blend the character whose player you hold; a child runs its own playback from the character's frame. Which key drives a child across a crossfade on track 0 is outside motion blending too. See Motion Blending.