Skip to content

Samples

AssetStoreDemo

Open Samples/AssetStoreDemo/AssetStoreDemo.unity and enter Play Mode. It uses a standard camera and Sprites/Default, verified in Built-in (no URP installed) and URP 17.0.4. Left: VfxPlayer with a document asset and cached CPU frames. Center: VfxSheetPlayer with PNG/JSON. Right: an Animator using an exported AnimationClip. The three objects use the same exported Campfire document.

This is the smallest end-to-end example of assets created by the Maker's Export action. The AnimationClip targets SpriteRenderer on the same GameObject as the Animator; its controller is provided in the sample.

RuntimePlayers

Open optional Samples/URP/RuntimePlayers.unity only in the URP 2D setup and enter Play Mode. This is not a Built-in demo: its URP camera components/materials are unavailable without that package. Campfire and Sword slash are shown side by side. Left: VfxPlayer loads a document asset and caches CPU Core frames. Right: VfxSheetPlayer plays the corresponding PNG and JSON. A small indicator is connected to its On Event callback.

The same seed, origin and frame rate are used by each pair. Blue guides mark the origin. The camera uses the existing VfxPixelCamera wrapper around URP's PixelPerfectCamera, 640 x 360 art resolution, integer upscale and Windowbox letterboxing.

Select a player to change Play On Awake, Source/Once/Loop, Time Scale, unscaled time, sorting, flip and pixel snapping. Play/Pause/Stop/Reload controls are available in Play Mode in its Inspector. The Transform is the authored effect origin. Snapping rounds world X/Y to a 1/PPU grid and preserves Z.

The sample metadata includes optional markers such as:

"events": [{ "frame": 8, "name": "pulse", "data": { "effectId": "fire/campfire" } }]

Forward playback emits crossed markers in order, including skipped frames and multiple loops. Frame-zero markers fire on fresh Play/Stop-to-Play and each wrap. Seeking is silent. Completion fires once on natural one-shot completion; Stop is silent. User callback code may allocate.

The separate Samples/AssetStoreDemo/AssetStoreDemo.unity scene compares a project-exported document asset, sheet player and Animator/AnimationClip. It demonstrates the output generated by the Editor window's Export action.