Unity 2D Pixel Art VFX, URP Bloom and Events
Export a VfxSmith Unity 2D pack, slice sprite sheets cleanly with VfxSmithEffect.cs, bind OnBeat impact callbacks and configure URP 2D emission bloom.
1. Export a Unity 2D pack or Color + Emission archive
Open any effect in the VfxSmith library or AI Remix workspace, adjust its palette, hue, speed or sub-layers, and choose Unity 2D pack from the Export menu (1 free unedited engine pack trial is included on sign-in, or unlimited exports with Vault and Studio AI).
Unzip the downloaded folder into Assets/VFX/<name>/. Every Unity 2D pack includes:
<name>.png: transparent RGBA sprite sheet<name>.json: frame count, column count, FPS, loop flag, frame dimensions, pixel pivot andbeatFrames/beatSecondsVfxSmithEffect.cs: lightweight runtimeSpriteRendererplayback, pivot alignment and impact event scriptREADME.txt,LICENSE.txtandNOTICE.txt: import checklist and source notices
2. Crisp pixel import settings in Unity
Select <name>.png in Unity’s Project window and verify its Texture Importer settings:
- Texture Type: Sprite (2D and UI)
- Filter Mode: Point (no filter)
- Compression: None (prevents DXT/ASTC block artifacts around 1-pixel sparks and soft light ramps)
- Non-Power of 2: None
VfxSmithEffect.cs slices the texture grid at runtime using Sprite.Create with normalized coordinates computed from pivotPixels and your project’s pixelsPerUnit (default 32), so you do not have to manually enter pivots frame by frame in the Sprite Editor.
3. Connect impact beats for damage and camera shake
Create a prefab with a SpriteRenderer and VfxSmithEffect, assign the exported texture, columns, frame count, frame size, pivot pixels, FPS and beatFrames from <name>.json, then spawn it from your combat code:
using UnityEngine;
public class SlashSpawner : MonoBehaviour
{
public VfxSmithEffect slashPrefab;
public void SpawnSlash(Vector3 hitWorldPos, float facingDir, IDamageable target)
{
VfxSmithEffect fx = Instantiate(slashPrefab, hitWorldPos, Quaternion.identity);
fx.facing = facingDir; // -1f mirrors a right-facing effect via SpriteRenderer.flipX
fx.ApplyFacing();
fx.OnBeat += beatIndex =>
{
if (beatIndex == 0 && target != null) target.TakeDamage(10);
};
}
}
Both the C# event Action<int> OnBeat and the Inspector-friendly UnityEvent<int> onBeat emit the zero-based beat ordinal on the exact impact frame. One-shot effects destroy their GameObject automatically when freeOnFinish is enabled; looping auras reset their beat cursor each cycle.
4. Clean URP 2D HDR Bloom with separated Color + Emission sheets
In Unity URP 2D, raising global Bloom threshold on a single-layer sprite sheet either washes out opaque smoke and dark outlines or clips subtle glow ramps. Choose Color + Emission from the Export menu to download isolated textures:
<name>_base.png: clean base pixels without baked additive glow, rendered on your standardSprite-Lit-Defaultor unlit alpha material<name>_emission.png: isolated light pass — assign it as a Secondary Texture (_EmissionMap) in a 2D Shader Graph multiplied by an HDR color, or render it on a childSpriteRendererwith an Additive material
Browse 315+ commercial Vault VFX packs built with separated emission channels, or connect Claude Code, Codex or Cursor via VfxSmith MCP to export Unity packs straight into your repository.