Skip to content

⚠️ 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. The flutter_gpu (Impeller) backend is used only when the run switches flutter_gpu on (flutter run --enable-flutter-gpu, plus --enable-impeller on Android). The default auto probes for it and falls back to Canvas without a message, and so does SpriteStudioBackend.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_gpu Canvas
    Mix, Add exact exact
    Screen, Exclusion exact exact
    Screen2 drawn as Screen drawn as Screen
    Mul exact over opaque content exact over opaque content
    Mulalpha, Mul2 drawn as Mul drawn as Mul
    Sub, Invert exact exact over opaque content (4 / 3 draws)
    Div2, Overlay2 renders as Mix renders as Mix

    flutter_gpu sets each mode's own blend state directly, so every mode with a state of its own is reproduced as-is. On the Canvas backend, Sub and Invert have no single ui.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 for Sub and three for Invert. The reconstruction costs three or two extra draws per part and prevents those parts from batching, which matters only if an animation uses Sub / Invert on many parts at once. On Impeller, the pixels a Sub / Invert part's edge crosses come out slightly off — a one-pixel fringe where the edge does not fall on a pixel boundary.

    Div2 / Overlay2 draw as Mix: 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, while flutter_gpu blends 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 / hitTestPart do 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 (isPartSkinnedMesh flags such a part, without blocking it). A rigid, deform-only mesh follows correctly. This is libssruntime behaviour.
  • 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.fill sibling in one Stack), 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 = true parts (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 / Audio events 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 — onAudio still fires and the gate is yours: read isPlayingForward and 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 does 0.) 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.