StickerLab 2D documentation
Set up interactive 2D stickers in Unity. This guide covers installation, Profiles, peeling, placement, visual effects and runtime integration.
QUICK START Create your first Sticker Right-click in the Hierarchy, create a Sticker, assign a Profile and press Play.Explore the system
The main StickerLab 2D features at a glance. Each area links directly to the guide that explains how to set it up and use it.
Peel, lift and restick
Peel naturally from the edge, lift the Sticker into Held state, rotate or resize it, then place it again.
Peeling & placement
Scratch, wear and residue
Add persistent scratches, progressive wear and optional adhesive residue so Stickers can visibly change through use.
Finishes & damage
Holographic foil and sparkles
Create foil, shimmer and sparkle finishes with per-Sticker masks, colour presets and custom gradients.
Holographic effects
Animated Stickers
Use frame-based animated artwork while peeling, scratching, holding and placing without losing Sticker effects.
Animation guide
Reusable Profiles
Build a behaviour once, reuse it across many Stickers, then keep artwork-specific controls on the individual Sticker.
Profiles & inspector
Surfaces and categories
Control where Stickers can be placed, limit capacity and organise compatible placement areas using reusable categories.
Placement categories
Sticker interactions
Turn Stickers into gameplay objects with reusable tags, targets, rules and outcomes such as keep held, place or remove.
Sticker interactions
Spawn, events and scripting
Spawn prepared Stickers from UI or code and connect peel, placement, scratch and gameplay events to your own systems.
Runtime & APIDetails that make a difference
StickerLab is designed to feel complete out of the box while still giving you room to build your own experience around it.
Directional peeling, reverse-side visuals, snap-back, placement animation and fold shading make every interaction feel tactile rather than like a simple drag-and-drop object.
Mix clean, worn, scratched, holographic and animated artwork without needing a separate system for every style.
Spawn Stickers from menus, inventories or your own gameplay and place them directly into the player's hands.
Use Unity Events, Interaction Tags and public scripting controls to trigger sounds, puzzles, collectibles, status effects and more.
Profiles keep shared behaviour consistent while individual Stickers retain their own artwork, animation, masks and visual adjustments.
Bake transparent Sticker thumbnails and use the same finished look in drawers, inventories, palettes and selection screens.
Place Stickers on configured surfaces, moving objects and category-restricted targets while keeping placement behaviour predictable.
Common interactions such as spawning, peeling, animation and placement are built to remain smooth even when optional visual features are combined.
StickerProfile
owns reusable behaviour. The
Sticker
owns artwork-specific content and overrides such as its main Sprite, animation frames, holographic mask and Sticker Back Scale.
Basic workflow
The
Sticker
component is your main entry point. Assign artwork and a Profile; StickerLab builds the required modules and keeps them in sync.
Use a transparent sprite.
Reuse your behaviour settings.
Peel, hold and place.
Adding your screenshots and GIFs
Every screenshot and GIF block already contains a real img element pointing to its expected file inside the media folder. Replace the referenced PNG or GIF with your own capture and reload the page. The media frame keeps its intended aspect ratio and the explanation remains underneath.
Installation
Import StickerLab 2D into your Unity project and confirm the package is ready before creating your first Sticker.
Import the package
Keep the
StickerLab2D
folder and its internal structure together. The complete folder may be nested inside another parent folder under
Assets
; StickerLab resolves its Editor paths automatically.
Welcome window
After import, StickerLab opens a small welcome window with a direct link to this documentation. Show this window on start-up is enabled by default and can be disabled from the window. Reopen it at any time from Tools → StickerLab 2D → Welcome .
Use Unity's New Input System
The default mouse interaction path reads from
UnityEngine.InputSystem.Mouse
. Make sure the Input System package is available in the project.
Open the included demo
Run the example scene before changing anything. It is the fastest way to confirm the package imported correctly.
Open this page from the Sticker inspector
The
Documentation ↗
link on the Sticker component opens this local
Documentation/index.html
file in your browser.
Quick start
The quickest way to make a Sticker is from the Hierarchy. Create it, assign the artwork and Profile, then press Play.
Create a Sticker
Right-click in the Hierarchy and choose StickerLab 2D → Create Sticker . StickerLab creates a new Sticker GameObject and selects it automatically.
Assign your artwork
In Quick Setup, assign the transparent Sprite you want to use as the Sticker artwork.
Assign a Sticker Profile
Choose one of the included Sticker Profiles or create your own. The Profile controls the shared peel, placement and visual behaviour.
Check any Sticker-specific settings
If the Profile uses features that need artwork-specific data, set them here. Examples include Holographic Mask, animation frames and manual backside adjustments when Auto Match is disabled.
Press Play
That is enough for the normal workflow. Enter Play Mode, hover the Sticker and peel from an edge. Once fully peeled, it enters the Held state and can be placed again.
Profiles and inspector
Profiles store reusable behaviour settings. The Sticker Inspector assigns a Profile to each sticker and manages artwork-specific settings such as its Sprite, holographic mask, backside scale, animation content and setup status.
Finish type versus enabled features
Finish labels describe the material, such as Paper, Matte Vinyl, Glossy Vinyl, Holographic, Metallic, Transparent, Foil or Custom. The feature checkboxes determine which modules the Sticker uses.
Sticker inspector
The Sticker component is a facade over the internal runtime modules. Most users should not need to edit those generated components directly.
| Area | Purpose |
|---|---|
| Setup | The Sticker is missing required authored data such as a Sprite or Profile. |
| Needs Sync | The object exists but its generated modules no longer match the selected Profile. |
| Ready | The Sticker is configured and generated modules match the current Profile. |
Quick Setup
Contains the common Sticker settings: Sprite, Sticker Profile, Category and context-sensitive controls. Category is the Sticker's placement category and is used by Sticker Surfaces to decide whether the Sticker may be placed there. Holographic Profiles also expose the shared Holographic Blend mode alongside the per-Sticker Holographic Mask, while Sticker Back Scale appears when backside fitting is relevant.
Animation Frames
Appears for animated Profiles. Frames belong to this Sticker, not the shared Profile. The main Sprite is automatically used as frame 0 when appropriate.
Profile Overview
A quick read-only summary of the finish and enabled features so you can understand the Sticker without opening the Profile asset.
Advanced
Shows generated module status, validation information and internal components for debugging or package development.
Holographic Blend in Quick Setup
When the assigned Profile uses Holographic / Foil, Quick Setup shows a Holographic Blend dropdown. This edits the selected Sticker Profile , not only the current Sticker, so every Sticker using that Profile will share the same blend behaviour. After changing it, confirm the Profile changes so the generated holographic module is synced.
Per-Sticker artwork settings
Some values intentionally live on the individual
Sticker
instead of the shared Profile. These settings describe the artwork itself, so two Stickers can reuse the same behaviour Profile without being forced to share the same mask, reverse-side fit or animation content.
| Sticker setting | Purpose |
|---|---|
| Sprite | The unique front artwork used by this Sticker. |
| Holographic Mask | Assigned independently for each holographic Sticker. The mask texture overrides the legacy Profile mask while the Profile continues to control shared foil behaviour such as strength, threshold, channel selection, alignment, shimmer and sparkles. |
| Sticker Back Scale X / Y | Fine-tunes the generated or custom backside for this artwork. X and Y are independent values so unusually wide, tall or tightly trimmed stickers can align correctly during peeling without changing the shared Profile. |
| Animation content | Frames, Frames Per Second and Playback Mode belong to the individual Sticker so different animations can reuse one animated Profile. |
Bake Sticker Thumbnail
Use Bake Sticker Thumbnail in the Sticker Inspector to create a transparent preview Sprite that already contains the Sticker's visual finish. This is useful for sticker drawers, inventory slots, palette buttons and other UI where the user should see the finished Sticker before spawning it.
Finish and sync the Sticker
Assign the Sprite, Profile and any per-Sticker artwork settings such as its holographic mask and Sticker Back Scale, then make sure the Sticker reports Profile Synced .
Click Bake Sticker Thumbnail
StickerLab briefly enters Play Mode so runtime-only materials and effects are captured from the real rendered result. Holographic foil, shimmer and sparkles therefore appear much closer to their actual in-game appearance.
Use the generated Sprite in your UI
The transparent PNG is imported as a Sprite under
StickerLab2D/Sprites/Thumbnails
inside the installed StickerLab folder. Assign it to a Unity UI Image, Button, sticker drawer entry or your own inventory interface.
Animated stickers
Animation is split into shared behaviour and unique artwork so an Animated Profile can be reused across many completely different stickers.
Shared animation behaviour
The Profile enables Sprite Animation and stores reusable state behaviour such as whether animation continues while attached, peeling, held or placing.
Unique animation content
The Sticker stores its own Frames, Frames Per Second and Playback Mode. Assigning an animated Profile automatically seeds the main Sprite as frame 0 where appropriate.
Playback modes
Animation follows the playback mode and state rules configured on the Sticker and Profile.
The reverse side and secondary effects follow the current artwork frame.
Peeling and placement
Configure how stickers peel, move and attach to surfaces. The standard interaction moves through Attached or Placed, Peeling, Held and Placing states.
Directional peel
Pointer movement defines the peel distance and direction. Angled peeling can be enabled for a more physical diagonal crease.
Automatic backside
If no backside artwork is supplied, StickerLab generates a clean white silhouette from the authored front Sprite. Use the per-Sticker Back Scale X and Y controls when that reverse silhouette needs artwork-specific fitting.
Held feedback
Optional marching-ants contour, placement validity colours, cursor following, rotation and scale mode clearly communicate that a Sticker is in hand.
Placement surfaces
A held Sticker can be placed freely or restricted to configured StickerSurface2D targets, depending on Profile settings.
Sticker Back Scale
The backside often needs a small artwork-specific adjustment because transparent padding, silhouette proportions and sprite trimming can differ between Sticker images. Sticker Back Scale X and Sticker Back Scale Y are stored on the individual Sticker and override the shared backside scale from the Profile.
Release a partial peel to let the sticker return to its surface.
Fully peel a sticker, adjust its rotation and scale, then place it again.
Default mouse controls
Most interaction settings are Profile controlled, so these describe the standard workflow rather than hard-coded rules.
| Gesture | Default result |
|---|---|
| Hover | Shows hover feedback when enabled. |
| Left click + drag from / toward an edge | Peels the Sticker. |
| Hold, then drag | Scratches when Scratch and hold-to-scratch are enabled. |
| Double click | Optional automatic lift when Quick Pickup is enabled. |
| Mouse wheel while held | Rotates the Sticker when wheel rotation is enabled. |
| Right click while held | Toggles Scale Mode; while active, the wheel scales instead of rotating. |
| Left click while held | Places the Sticker if the current target is valid. |
StickerSurface2D
Sticker Surfaces define where held Stickers are allowed to land and which categories they accept.
| Setting | Purpose |
|---|---|
| Accept Stickers | Enables or disables placement onto the surface at runtime. |
| Accepted Categories | Filters by StickerCategory such as General, Decoration, Warning, Graffiti and Quest. |
| Maximum Stickers | Limits how many Stickers can be registered. 0 means unlimited. |
| Placement Root | Optional child Transform used as the parent for newly placed Stickers. |
Finishes and damage
Scratch, wear and residue are optional Profile features. Damage belongs to each Sticker instance and persists through peeling and placement. Persistent wear also stays aligned with animated artwork without rebuilding a separate wear texture for every frame.
Direct damage
Hold and drag to scratch when enabled. Each spawned Sticker owns its own scratch state; scratching one does not affect another instance.
Accumulated ageing
Wear can build over repeated peels with configurable strength, edge bias, stamp count and maximum amount.
Surface history
Optional residue remains on the surface during removal and follows the original surface if that surface moves.
Scratch damage remains independent for each sticker instance.
Repeated peeling can accumulate wear and leave residue on the source surface.
Holographic foil and sparkles
The holographic module overlays animated foil without replacing the authored Sticker artwork. The Profile stores reusable foil behaviour, while each Sticker can supply its own mask texture so different artwork can share the same holographic Profile.
Per-Sticker holographic mask
Assign the Holographic Mask on the Sticker Inspector. The mask belongs to that Sticker and overrides the legacy mask stored on the shared Profile. This lets one Rose Gold, Rainbow or Sparkle Profile be reused across many completely different sticker shapes without forcing them to share one mask image.
Mask values
| Mask colour | Meaning |
|---|---|
| White | Full holographic effect. |
| Grey | Partial / softer holographic effect. |
| Black | No holographic effect. |
Holographic Blend modes
The Holographic Blend setting controls how the animated foil colour is combined with the Sticker's original artwork. It is a Profile setting and is also exposed in the Sticker Inspector's Quick Setup when the selected Profile uses holographic foil.
| Blend mode | Result |
|---|---|
| Normal | Applies the holographic colour normally. Use this for the original StickerLab foil appearance. |
| Multiply | Darkens the result by combining the foil with the underlying artwork. |
| Screen | Lightens the artwork and is useful for brighter reflective foil. |
| Overlay | Combines Multiply and Screen behaviour according to the underlying artwork, preserving shadows while strengthening highlights and contrast. |
| Soft Light | A gentler contrast blend for a more subtle foil finish. |
| Hard Light | A stronger contrast blend for a more pronounced foil effect. |
| Darken | Keeps the darker value from the artwork or foil. |
| Lighten | Keeps the lighter value from the artwork or foil. |
| Color Dodge | Produces strong bright highlights and a more intense reflective look. |
| Color Burn | Deepens colours and shadows for a darker, richer foil treatment. |
| Linear Dodge (Add) | Adds the foil colour to the artwork for a bright additive result. |
| Linear Burn | Produces a stronger subtractive darkening effect. |
| Difference | Creates a high-contrast colour difference between the artwork and foil. |
| Exclusion | A softer, lower-contrast alternative to Difference. |
Placement Categories
Categories control where a Sticker is allowed to be placed. They work together with Sticker Surface placement rules and do not change the Sticker's appearance or interaction behaviour.
How categories work
When a held Sticker is placed over a Sticker Surface, StickerLab checks whether the Sticker's Category overlaps with one of the Surface's Accepted Categories. If there is no match, that Surface rejects the placement.
| Sticker Category | Example use |
|---|---|
| General | Default all-purpose Stickers that are allowed on ordinary Sticker Surfaces. |
| Decoration | Decorative artwork, collectables, cosmetic decals or room customisation. |
| Warning | Hazard labels, warning signs, safety decals or restricted placement areas. |
| Graffiti | Graffiti, tags or street-art Stickers that should only be accepted by suitable surfaces. |
| Quest | Quest items, mission clues, noticeboard Stickers or gameplay-specific placement. |
Categories can be combined
Sticker categories use Unity's flags system, so a Sticker or Sticker Surface can use more than one category at the same time.
Sticker example
A mission poster could be both Decoration and Quest , allowing it on decorative surfaces as well as quest boards.
Surface example
A bedroom wall could accept General , Decoration and Graffiti , while a quest board accepts only Quest .
Using categories with Sticker Surface
On a Sticker Surface, configure Accepted Categories to control which Sticker types can be placed there. This works alongside the Surface's other placement settings such as Accept Stickers and Maximum Stickers.
| Step | Action |
|---|---|
| 1 | Select the Sticker and choose one or more values in Category . |
| 2 | Select the target Sticker Surface. |
| 3 | Enable the matching values under Accepted Categories . |
| 4 | At runtime, StickerLab only allows placement when at least one category matches. |
What categories currently affect
Categories currently serve as placement permissions . They do not automatically change Profiles, peel behaviour, scratching, holographic rendering, sorting, thumbnails or Sticker inventory organisation.
Sticker Interactions
Use Stickers as gameplay objects by giving them reusable Interaction Tags and dropping them onto Collider2D-backed Interaction Targets.
Interaction Tags
Create reusable tag assets from Assets → Create → StickerLab 2D → Interaction Tag , then assign them from the Sticker Inspector under Sticker Interactions .
- A Fire Sticker can carry the Fire tag.
- A key Sticker can carry Key or several project-specific key tags.
- A Sticker may carry more than one Interaction Tag.
Sticker Interaction Target 2D
Add Sticker Interaction Target 2D to any object with a Collider2D on itself or a child. Targets contain ordered rules. The first rule that matches the held Sticker is used.
| Outcome | Behaviour |
|---|---|
| Keep Held | Run the interaction and leave the Sticker attached to the pointer. |
| Place Normally | Run the interaction, then continue through the normal Sticker placement rules. |
| Remove Sticker | Run the interaction, then remove the Sticker through the public Sticker.Remove() API. |
Example: dust bin
Add a Collider2D
The bin only needs a Collider2D covering the area that should accept the Sticker.
Add Sticker Interaction Target 2D
Leave Accept Any Sticker enabled on the default rule.
Choose Remove Sticker
Set After Interaction to Remove Sticker . Dropping any held Sticker onto the bin removes it cleanly and still fires the Sticker's OnRemoved event.
Example: Fire Sticker on a card
Create a Fire tag
Create a Fire Interaction Tag asset and assign it to the fire Sticker.
Add a target to the card
Add Sticker Interaction Target 2D to the card and create a rule that accepts the Fire tag.
Connect the event
Use the rule's Accepted event to call your own card or status controller, for example ApplyFire. StickerLab detects the interaction; your game decides what Fire actually does.
Overlapping targets
Use Priority when several targets overlap. Higher values win. For example, a dust bin sitting on a normal Sticker Surface can have a higher target priority so dropping onto the bin removes the Sticker instead of placing it on the table underneath.
Target events
- Sticker Hover Enter
- Sticker Hover Exit
- Sticker Accepted
- Sticker Rejected
- Per-rule Accepted events
Advanced scripting
For code-driven projects, implement
IStickerInteractionReceiver
on a MonoBehaviour attached to the same GameObject as the target. Receivers can reject an otherwise matching interaction and can change the final Keep Held, Place Normally or Remove Sticker disposition before StickerLab commits it.
Unity Events
Connect Sticker interactions to gameplay, audio, UI and effects directly from the Sticker Inspector without writing a custom listener script.
Peel Events
| Inspector event | Runtime event | When it fires |
|---|---|---|
| Peel Started |
OnPeelStarted
|
Invoked when a peel interaction begins. |
| Peel Progress |
OnPeelChanged(float)
|
Invoked while peeling and passes progress from 0 to 1. |
| Peel Complete |
OnPeelComplete
|
Invoked when the Sticker becomes fully peeled and enters Held state. |
| Peel Cancelled |
OnPeelCancelled
|
Invoked when the peel returns to the surface instead of completing. |
Placement Events
| Inspector event | Runtime event | When it fires |
|---|---|---|
| Sticker Placed |
OnStickerPlaced
|
Invoked after a held Sticker finishes being placed. |
Scratch Events
Scratch Events are shown when the selected Sticker Profile has scratching enabled.
| Inspector event | Runtime event | When it fires |
|---|---|---|
| Scratch Started |
OnScratchStarted
|
Invoked when a scratch interaction begins. |
| Scratch Progress |
OnScratchChanged(float)
|
Invoked as scratching changes and passes progress from 0 to 1. |
| Scratch Ended |
OnScratchEnded
|
Invoked when the current scratch interaction ends. |
Common uses
Audio
Play peel, placement or scratch sounds at the exact interaction point you need.
Visual effects
Trigger particles, animation, screen feedback or UI when peeling starts, completes or a Sticker is placed.
Gameplay
Advance objectives, award points, unlock content or react to scratch progress without changing StickerLab runtime code.
Progress values
OnPeelChanged
and
OnScratchChanged
expose a float from 0 to 1, making them useful for meters, audio parameters or other continuous feedback.
Runtime scripting and API
Spawn prepared Sticker prefabs, inspect runtime state and connect StickerLab to your own gameplay. The component reference below explains what each runtime component owns, which public members are useful and when you would normally call them.
Recommended: StickerSpawner
using StickerLab2D;
using UnityEngine;
public class StickerPalette : MonoBehaviour
{
[SerializeField] private StickerSpawner spawner;
[SerializeField] private Sticker fishStickerPrefab;
public void SpawnFish()
{
spawner.Spawn(fishStickerPrefab);
}
}
StickerSpawner.Spawn(...)
instantiates the prefab and attempts to put the new Sticker directly into Held state. This works well with UI palette buttons. For a visual palette or sticker drawer, use the Sticker Inspector's baked thumbnail as the Button or Image artwork so the UI can show the finished effect before the Sticker is spawned.
Direct API
Sticker instance = Instantiate(stickerPrefab);
if (!instance.BeginHeld())
{
Destroy(instance.gameObject);
}
Components and scripting API
StickerLab is built from a public Sticker facade plus focused runtime modules. For most gameplay code, start with Sticker. Reach into a module only when you need feature-specific control such as animation playback, scratch progress, wear or holographic settings.
Sticker, use its state and module properties, and let the assigned Profile manage the internal modules. Manually adding or removing Profile-managed modules should not be the normal runtime workflow.
Component map
Sticker
Main facadeThe main component your gameplay code should normally use. It owns per-Sticker artwork and Profile references, exposes high-level state, and provides safe access to optional runtime modules.
| Public member | Responsibility |
|---|---|
bool BeginHeld() | Moves the Sticker directly into Held / follow-cursor state. Useful for inventories, palettes and custom pickup logic. |
void Remove() | Removes the Sticker through its public lifecycle and invokes OnRemoved before destruction. |
void SetSprite(Sprite) | Changes the authored Sprite and applies it to the main renderer. |
void SetProfile(StickerProfile) | Changes the active Profile. In Play Mode, StickerProfileRuntime reconciles required modules and applies the new settings. |
void ReapplyProfile() | Re-applies the current runtime Profile without changing the Profile reference. |
SetCategory(...) | Changes the placement category used by Sticker Surfaces. |
HasInteractionTag(...) | Checks whether the Sticker contains a specific Interaction Tag asset. |
AddInteractionTag(...) / RemoveInteractionTag(...) | Adds or removes interaction identity at runtime. |
ClearInteractionTags() | Removes all runtime interaction tags. |
RefreshModuleReferences() | Refreshes cached module references after components have changed. Profile switching already does this automatically. |
Useful state: IsHeld IsPeeling IsPlaced PeelAmount HasRequiredModules RemovalRequested. Module access: PeelModule ScratchModule WearModule HolographicModule ResidueModule AnimationModule.
Sticker sticker = GetComponent<Sticker>();
if (sticker.BeginHeld())
{
Debug.Log("Sticker is now held");
}
sticker.SetProfile(alternateProfile);
StickerSpawner
Runtime helperSpawns prepared Sticker prefabs and immediately attempts to enter Held state. Designed for UI buttons, Sticker drawers and inventory-style workflows.
| Public member | Responsibility |
|---|---|
Sticker SpawnHeld() | Spawns the configured default prefab and returns the new instance. |
void SpawnDefault() | Unity UI Button friendly wrapper for the default prefab. |
void Spawn(Sticker) | UnityEvent / Button friendly wrapper for a supplied prefab. |
Sticker SpawnHeld(Sticker) | Spawns a supplied prefab, enters Held state and returns the created Sticker for code use. |
SetDefaultStickerPrefab(...) | Changes the default prefab used by no-argument spawning. |
SetDisplaySprite(...) / SetStickerLabel(...) | Updates optional child UI presentation. |
RefreshUI() | Forces the spawner's child UI to refresh. |
Event: OnStickerSpawned(Sticker). Properties: DefaultStickerPrefab DisplaySprite StickerLabel.
PeelableSprite2D
Core moduleOwns the interaction state machine for pressing, scratching, peeling, returning, Held movement and placement. Direct access is mainly useful for state queries and advanced integrations.
| Public member | Responsibility |
|---|---|
bool BeginHeld() | Direct module equivalent of Sticker.BeginHeld(). |
void ResetPeel() | Stops active interaction, restores the original transform/surface, resets visuals and returns to Attached state. |
void BringStickerToFront() | Requests a new front-most sorting order when automatic sorting is enabled. |
TryGetCurrentPeelGeometry(out crease, out normal) | Returns the live crease and peel normal in Sticker-local space for custom visual modules. |
RefreshRuntimeModuleReferences() | Refreshes Scratch and Animator references after runtime module changes without resetting peel state. |
Useful state: State PeelAmount CurrentSurface IsDragging IsFollowingCursor IsScaleModeActive CanStartPeel.
Its animation frame receiver methods are integration hooks and are not normal gameplay calls.
ScratchableSticker2D
Optional moduleOwns the per-instance scratch mask and scratch progress. It can be driven by StickerLab's normal pointer logic or manually with Sticker-local coordinates.
| Public member | Responsibility |
|---|---|
BeginScratch(Vector2, bool) | Starts a programmatic scratch at a Sticker-local point. |
ScratchToLocal(Vector2) | Continues the current scratch to another Sticker-local point. |
EndScratch() | Ends the current scratch interaction. |
ResetScratch() | Restores the scratch mask to its untouched state. |
SetBaseColor(Color) | Changes the base/reveal colour. |
SetScratchable(bool) | Enables or disables scratching at runtime. |
State: IsScratchable IsScratching IsInitialized ScratchAmount. Events: OnScratchStarted OnScratchChanged(float) OnScratchEnded.
StickerWear2D
Optional moduleOwns persistent wear that accumulates over successful peels. Wear is instance-owned and reused across animated frames.
| Public member | Responsibility |
|---|---|
RegisterPeel() | Manually counts one peel and adds wear when configured thresholds allow it. |
SetWearEnabled(bool) | Enables or disables the wear system. |
ToggleWearSystem() | Toggles the current wear-enabled state. |
ResetWear() | Clears wear and optionally resets peel count according to the Profile setting. |
AddTestWear() | Development helper that forces a test wear pass. |
State: WearEnabled PeelCount WearAmount HasVisibleWear.
StickerSpriteAnimator2D
Optional moduleAdvances authored Sprite frames and keeps animation-aware Sticker modules synchronized. Use it when gameplay needs to control playback or select frames directly.
| Public member | Responsibility |
|---|---|
Play() / Pause() / Resume() / Stop() | Controls playback without needing to change the Profile. |
RestartAnimation() | Returns to frame 0 and applies it immediately. |
SetFrame(int) | Clamps and displays a specific frame. |
NextFrame() / PreviousFrame() | Steps the animation manually. |
RefreshFrameReceivers() | Rebuilds the frame receiver/preloader cache after runtime component changes. |
State: CurrentFrame FrameCount IsPlaying CurrentSprite DisplayedSprite. Runtime setters: FramesPerSecond Speed.
StickerSpriteAnimator2D animator = sticker.AnimationModule;
if (animator != null)
{
animator.Speed = 0.5f;
animator.RestartAnimation();
}
StickerHolographicOverlay2D
Optional moduleOwns holographic / foil presentation. Most values come from the Profile, while these methods support runtime toggles and colour changes.
| Public member | Responsibility |
|---|---|
SetOverlayEnabled(bool) / ToggleOverlay() | Enables, disables or toggles the foil overlay. |
SetColourPreset(...) | Switches to a built-in foil colour preset. |
SetCustomGradient(Gradient) | Copies a custom runtime Gradient and selects Custom mode. |
CopyCurrentPresetToCustom() | Copies the current preset into an editable custom Gradient. |
RandomiseSparkleLayout() | Generates a new sparkle seed. |
ResetMaskAlignment() | Restores mask scale, offset and flip settings. |
RefreshNow() | Immediately resynchronizes the runtime overlay. |
State: OverlayEnabled ColourPreset BlendMode CurrentSparkleShape.
StickerSurface2D
World componentDefines a valid placement surface. It checks categories and capacity, exposes a Placement Root and tracks registered Stickers.
| Public member | Responsibility |
|---|---|
AcceptStickers | Runtime get/set switch for whether placement is currently accepted. |
CanAcceptSticker(PeelableSprite2D) | Checks surface enabled state, category and capacity without registering. |
TryRegisterSticker(...) | Registers an accepted Sticker and fires OnStickerAdded when newly added. |
UnregisterSticker(...) | Removes a Sticker and fires OnStickerRemoved when applicable. |
ContainsSticker(...) | Checks whether a Sticker is registered on this surface. |
State: AcceptedCategories PlacementRoot StickerCount.
if (surface.CanAcceptSticker(sticker.PeelModule))
{
Debug.Log("Surface accepts this Sticker");
}
StickerInteractionTarget2D
World componentMakes a Collider2D-backed object react to held Stickers using ordered rules and reusable StickerInteractionTag assets. Standard Held placement calls this automatically.
| Public member | Responsibility |
|---|---|
CanAcceptSticker(Sticker, out disposition) | Checks the configured rules without committing an interaction. |
TryInteract(Sticker, Vector3, StickerSurface2D, out disposition) | Runs rule matching, advanced receivers and target events, then returns the final Keep Held, Place Normally or Remove Sticker disposition. |
State: Priority BlockPlacementWhenRejected.
TryInteract() yourself only when building a custom input or placement flow.StickerProfileRuntime
Runtime serviceHidden runtime owner for the active Profile and its module instances. It performs the Play Mode / player equivalent of Profile reconciliation when the Profile changes.
| Public member | Responsibility |
|---|---|
ApplyProfile(StickerProfile) | Applies a Profile and reconciles the required optional modules. |
ReapplyActiveProfile() | Re-applies the current runtime Profile. |
State: ActiveProfile.
Sticker.SetProfile() and Sticker.ReapplyProfile() unless you specifically need the runtime service. Profile switching is intended as an occasional gameplay action, not a per-frame operation.StickerFoldShading2D and StickerPeelResidue2D
Profile-drivenStickerFoldShading2D follows the active fold with front shadow and backside highlight bands. StickerPeelResidue2D manages the adhesive / silhouette trace left on the source surface. Neither currently exposes a normal gameplay control API. Configure them through the Profile and access their references through Sticker only when needed for advanced inspection.
Extension interfaces
AdvancedUse these when building custom systems that need to participate in StickerLab's animation or interaction pipeline.
IStickerInteractionReceiver
Add a MonoBehaviour implementing this interface to the same GameObject as a StickerInteractionTarget2D. CanReceiveSticker(context) can reject an otherwise matching rule. ReceiveSticker(context) runs after all receivers approve and may change context.Disposition.
public class CustomStickerReceiver : MonoBehaviour, IStickerInteractionReceiver
{
public bool CanReceiveSticker(StickerInteractionContext context)
{
return context.Sticker != null;
}
public void ReceiveSticker(StickerInteractionContext context)
{
context.Disposition = StickerInteractionDisposition.KeepHeld;
}
}IStickerSpriteFrameReceiver and IStickerSpriteFramePreloader
ApplyStickerSpriteFrame(Sprite frame) is called when the authored animation frame changes. Return true only if your receiver owns the main artwork renderer for that frame. PrepareStickerSpriteFrames(Sprite[] frames) is the optional preloading hook used when Preload Frame Receivers is enabled.
StickerSorting2D
GetNextOrder(minimumOrder) returns a new front-most order, RegisterExistingOrder(order) keeps the allocator aware of externally assigned orders, and CurrentHighestOrder reports the current maximum.
StickerInteractionTag
A ScriptableObject identity asset rather than a string or enum. Create project-specific tags such as Fire, Ice or Key, assign them to Stickers, then match those assets in StickerInteractionTarget2D rules.
Events
For Inspector-driven callbacks and the full Peel, Placement and Scratch event list, see Unity Events. You can mix scripting and UnityEvents in the same project.
Performance and best practices
StickerLab's common visual path is built to stay lightweight, but some authoring controls deliberately trade more processing for denser effects, higher detail or more frequent updates.
Settings that can change performance
Some controls change only the look of a Sticker, while others directly change how much pixel work, geometry or animation updating StickerLab performs. The bands below are practical authoring guidance, not hard hardware limits. Always profile the final combination on the target device.
| Setting | Lower cost | Watch | Heavier | Why it matters |
|---|---|---|---|---|
| Animation effective FPSFrames Per Second × Speed Multiplier | 1 to 12 | 13 to 30 | 31+ | Each displayed frame change notifies animation-aware modules. More frame changes mean more synchronization work. The Profile supports up to 60 FPS before the Speed Multiplier is applied. |
| Scratch Brush RadiusSlider range: 2 to 200 px | 2 to 40 | 41 to 90 | 91 to 200 | A larger brush touches more pixels per stamp. Cost grows quickly as the brush area gets larger. |
| Scratch Brush SpacingSlider range: 0.5 to 30 px | 5 to 30 | 2 to 4.9 | 0.5 to 1.9 | Lower spacing creates more brush stamps while dragging. Very small spacing combined with a large radius is the expensive combination. |
| Wear Stamps Per PeelSlider range: 1 to 40 | 1 to 8 | 9 to 18 | 19 to 40 | Each wear stamp runs its own bounded pixel pass. StickerLab can also add more stamps as wear progression increases, so high base values multiply quickly. |
| Wear Maximum Stamp RadiusSlider range: 2 to 200 px | 2 to 40 | 41 to 90 | 91 to 200 | Larger wear marks scan a larger ellipse. The optimized Wear path avoids wasted square bounds, but pixel work still rises with mark area. |
| Visual Outline Simplification | OnSpacing 2 to 6 px Corner Vertices 0 to 2 |
OnSpacing below 2 px Corners 3 to 4 |
Offor Corners 5 to 8 | Complex silhouettes can contain many contour points. Simplification reduces LineRenderer geometry and the amount of outline data that animated frames need to carry. |
| Holographic Sparkle AmountSlider range: 0 to 1 | 0 to 0.35 | 0.36 to 0.75 | 0.76 to 1 | The shader can exit early for pixels that do not contain a sparkle. Higher Amount allows more pixels through the sparkle calculation. Setting Sparkle Strength or Amount to 0 disables that branch. |
| Preload Frame Receivers | Timing controlOff is the recommended starting point for runtime-spawned Stickers. | This moves compatible frame preparation to startup/spawn. It can make later playback smoother, but may create a spawn hitch when a receiver has expensive preparation. | ||
| Source Sprite resolutionImportant for Scratch and Wear | Up to 512² | Around 1024² | 2048²+ | Scratch and Wear own runtime textures sized from the Sticker artwork. Larger source Sprites increase memory, pixel processing and texture upload size. |
Feature combinations to profile
Animation frame changes and scratch presentation both update the active artwork. Higher effective FPS and high-resolution frames make this combination more demanding.
Residue may prepare silhouette information for animation frames. Large frame sets are worth testing carefully, especially when frame preloading is enabled.
Wear generation is optimized, but the final wear texture upload still scales with the Sticker's pixel dimensions. Large art plus many stamps is the main stress case.
The foil overlay adds another shader-driven visual pass. Sparkles add more fragment work when enabled, so profile scenes containing many large on-screen holographic Stickers.
Highly detailed Sprite silhouettes create more outline points. Keep Simplify Visual Outline enabled unless you genuinely need every contour detail.
The core interaction path is mostly transform, mask and pointer work. Optional damage, animation and finish modules are usually the first places to look when profiling a heavier Sticker.
| System | Cost profile |
|---|---|
| Core peel / placement | Mostly transform, mask and pointer math. |
| Hover / held contour | Cached contour data; animated frames swap cached geometry rather than rebuilding every Update. |
| Holographic overlay | Persistent mesh overlay plus shader work. Animated frames reuse the runtime overlay and update the bound Sprite source while peel / placement clipping is handled in the shader. |
| Scratch | Runtime texture is created lazily on first scratch. Updates use dirty tiles rather than rebuilding the full texture every pointer step. |
| Persistent wear | One instance-owned runtime texture is reused across animation frames. Spawn and frame changes avoid source-Sprite readbacks; the live Sprite silhouette clips wear in the shader. Wear stamping uses bounded scan regions and direct texture uploads. |
| Generated backside | Animated fallback backsides use the current Sprite with a shader-driven silhouette instead of generating a new CPU texture for every frame. |
| Peel residue | Optional residue can require additional silhouette data, especially on animated Stickers. Enable it only on Profiles that need the effect and test large animation sets on the target hardware. |
| Animation | Secondary systems update when the displayed Sprite frame changes. Preload Frame Receivers can move compatible one-time preparation to spawn, so leave it disabled for normal runtime spawning unless deliberate prewarming is preferred. |
| Placement audio | Keep short placement SFX ready in memory. Unity AudioClips used for immediate interaction are best imported with Preload Audio Data enabled and a suitable Decompress On Load format such as PCM or ADPCM. |
Best practices
Use Profiles for behaviour
Reuse a Profile across artwork that shares the same behaviour. Keep artwork-specific data such as the Holographic Mask, Sticker Back Scale and animation content on the Sticker itself. Create a separate Profile only when the shared behaviour needs to differ.
Keep artwork clean
Transparent PNGs with clean alpha give better silhouettes for backside generation, contours, wear and residue.
Build prefabs before runtime
Use the Editor builder to generate the correct modules, then spawn those prepared prefabs in-game.
Enable only what you need
Scratch, wear, residue and holographic effects are modular. A Sticker that only needs peeling should not carry every optional feature.
Match animation geometry
For scratchable animated Stickers, keep frame pixel dimensions, pivot and Pixels Per Unit compatible.
Keep frame preloading deliberate
For runtime-spawned animated Stickers, keep Preload Frame Receivers disabled unless a specific receiver benefits from being prepared at spawn. This avoids moving avoidable one-time work onto the spawn click.
Test the target platform
WebGL, mobile and low-end hardware have different memory and shader constraints. Test with the number of Stickers and feature combinations expected during gameplay.
Troubleshooting and FAQ
Practical checks for artwork, setup, interaction and builds. Start with the symptom that matches your project.
No matching answers. Try a shorter term, such as “back”, “input” or “surface”.
Artwork and alignment
My sticker’s back is offset from the front
Start by checking the artwork alignment and the Sticker hierarchy. Moving only the generated back renderer can hide the symptom while leaving the setup inconsistent.
- If you assigned a custom backside Sprite, export it on the same canvas as the front. Match the artwork position and transparent padding.
- In Unity, compare the front and back Sprite pivots and Pixels Per Unit. Apply any import changes.
- Temporarily remove the custom backside Sprite and sync the Sticker to test its generated white back. If that aligns, inspect the custom artwork and its import settings.
- Use Sticker Back Scale X / Y on the Sticker Inspector to fine-tune the reverse-side fit for this artwork. Adjust each axis independently while checking a partial peel.
- Check for manually moved, rotated or scaled generated child objects. Rebuild or sync through the Sticker Inspector rather than compensating by editing generated children.
- Test a duplicate under an unscaled parent. If alignment changes, inspect the original parent hierarchy for non-uniform or negative scale.
Compare the sticker before and during a partial peel. If the offset remains, include both Sprite import settings and the hierarchy when reporting it.
Unity reference: Sprite import settings
The custom back is a different size from the front
Check artwork dimensions and scale before adjusting the renderer.
- Match the front and back canvas dimensions and Pixels Per Unit. Different transparent borders can make equal-sized images look misaligned.
- Confirm that both images were sliced to the intended Sprite rectangles.
- Apply the import settings and resync the Sticker. If the back still needs fitting, adjust Sticker Back Scale X / Y on the Sticker rather than scaling the generated back renderer directly.
My sticker has an unwanted rectangle or coloured background
The artwork needs a transparent background for a clean silhouette.
- Inspect the exported PNG against a transparency checkerboard in your image editor. A white painted background is not transparency.
- Check that Unity imports the texture as Sprite (2D and UI) and retains its alpha channel.
- Assign the corrected Sprite in the Sticker’s Quick Setup and sync the object.
The edges look blurry, jagged or have a light fringe
Check the source edge and texture import settings at the size used in the game.
- Inspect the original alpha edge for stray pixels or a white colour fringe.
- Compare filtering and compression on a duplicate texture. Point filtering suits pixel art; bilinear filtering smooths interpolated edges.
- Check that the platform’s texture size limit is not reducing the image below the resolution you need.
Use the smallest texture that remains clear at the intended display size.
Animation frames shift position or change size
Frame artwork must use a consistent alignment.
- Keep the canvas, artwork registration point, pivot and Pixels Per Unit consistent across frames.
- Check that sprite-sheet slicing has not trimmed each frame differently.
- Apply import changes, check the frame list on the Sticker and sync it again.
The sticker is stretched after I place it on another object
Inspect the transform hierarchy of the destination surface.
- Check the scale of the Surface’s Placement Root and its parents.
- Test the same placement with an unscaled root.
- Keep the surface hierarchy’s scale consistent and move or scale the complete Sticker instead of editing individual generated renderers.
Installation and configuration
I cannot find the Sticker component
Check whether the project has finished importing and compiling.
- Resolve the first red Console error before looking for the component again.
- Confirm that the StickerLab package imported and its folder structure remains intact.
- Use Add Component → StickerLab 2D → Sticker on a GameObject with a SpriteRenderer.
The Inspector shows Setup
The Sticker is missing required authoring data.
- Assign the main Sprite in Quick Setup.
- Assign a Sticker Profile.
- Use the Inspector’s sync or rebuild action and check the resulting status.
The Inspector shows Needs Sync
The generated setup does not match the current Profile or per-Sticker settings.
- Stop Play mode before making a permanent authoring change.
- Use the Sticker Inspector’s sync or rebuild action.
- If the object is a prefab, apply the intended changes to the prefab you actually spawn.
A Profile change is not appearing on my sticker
Check the assigned asset and whether the Sticker has been synced.
- Select the Sticker and confirm it references the Profile you edited.
- Sync the Sticker and review its Profile Overview.
- Check whether you changed a shared Profile setting or a per-Sticker setting such as the Holographic Mask, Sticker Back Scale, animation frames or playback speed.
Changing one Profile affects several stickers
A Profile is a shared behaviour preset.
- Duplicate the Profile when one group of Stickers needs different behaviour.
- Assign the duplicate to those Stickers and sync them.
- Keep artwork-specific data such as the Sprite, Holographic Mask, Sticker Back Scale and animation content on each Sticker rather than creating a Profile for every image.
My changes disappear when I leave Play mode
Make permanent setup changes outside Play mode.
- Stop Play mode and repeat the intended change in the scene or prefab.
- Apply prefab changes where required and save the scene.
- Keep gameplay persistence separate from authoring. If the game needs to remember runtime changes, implement that in your own save system.
Peeling and controls
My sticker does not respond to the mouse
Check input, setup and visibility before changing peel values.
- Make sure the Game view has focus and the Sticker reports Ready.
- Confirm the Input System package is installed and enabled in the project’s Active Input Handling setting. Restart the Editor if Unity requests it.
- Test one Sticker in the included demo and then in a minimal scene.
- Check whether another held Sticker owns the interaction or your own UI code blocks pointer input.
Unity reference: Input System installation
The sticker snaps back instead of staying in my hand
A partial peel returns to the surface when released.
- Continue dragging until the peel completes and the Sticker enters Held state.
- If it requires too much movement, review the peel threshold and edge behaviour in the Profile.
- Retest after syncing the Sticker.
Peeling starts too easily or requires too much dragging
Tune the interaction settings on the assigned Profile.
- Adjust the peel threshold and edge behaviour one setting at a time.
- Test at the camera zoom and Sticker size used in your game.
- Resync and compare against an unchanged Profile so you can identify which setting changed the response.
Double click does not pick up the sticker
Automatic lift is optional.
- Enable Quick Pickup in the assigned Profile if you want double-click pickup.
- Sync the Sticker and finish any current interaction.
- Test normal edge peeling first to confirm the Sticker receives mouse input.
The mouse wheel scales when I want to rotate
Scale Mode changes the wheel action while a Sticker is held.
- Right click while held to leave Scale Mode.
- Use the wheel again to rotate.
- If rotation is still unavailable, check that wheel rotation is enabled in the Profile.
I cannot select a sticker underneath another sticker
The topmost Sticker receives the pointer interaction.
- Move or remove the upper Sticker to reach the one beneath it.
- Check the intended sorting order if the wrong Sticker appears in front.
- Keep the generated visual layers together instead of changing their sorting independently.
Surfaces and placement
My sticker will not place on a surface
Check the surface rules and the Sticker’s placement settings.
- Confirm the Sticker is in Held state and the target has a StickerSurface2D component.
- Enable Accept Stickers on the surface.
- Check Accepted Categories and Maximum Stickers.
- Run the Surface Inspector’s validation or repair action and review the Profile’s placement restrictions.
One sticker places successfully but another is rejected
Compare the two Stickers’ categories and Profiles.
- Check each Sticker’s Category against the Surface’s Accepted Categories.
- Compare any placement restrictions in their assigned Profiles.
- Check whether the first placement reached the surface’s Maximum Stickers limit.
The surface stops accepting stickers after a few placements
The surface may have reached its configured capacity.
- Check Maximum Stickers and the current registered count.
- Increase the limit or use 0 for unlimited placement.
- When removing stickers through your game code, use the supported removal workflow so the surface can update its registration.
The sticker does not follow a moving surface
Check which Transform receives the placed Sticker.
- Assign the Surface’s Placement Root inside the moving object’s hierarchy.
- Inspect the Sticker’s parent after placement to confirm where it was attached.
- Move the intended root and check for scripts that reparent or overwrite the Sticker transform.
The sticker can be placed outside the area I intended
Review the allowed placement targets and Profile restrictions.
- Check whether the Profile permits free placement.
- Use the intended StickerSurface2D targets and run their validation helpers.
- Check the surface setup in the scene and confirm that the placement area matches the intended target.
Appearance and animation
The holographic effect covers parts that should stay plain
Use a mask to control where the finish appears.
- Assign the correct Holographic Mask on the individual Sticker, not as shared artwork on the Profile.
- Use black for no effect, white for full effect and grey for a softer effect.
- Check that the mask artwork aligns with the Sticker artwork.
- Review the Profile's mask strength, threshold, channel and effect intensity, then sync and test.
The holographic finish is too strong or barely visible
Adjust the effect on the assigned Profile.
- Check that the holographic feature is enabled and the mask permits an effect in the area being inspected.
- Review Holographic Blend, intensity, opacity, saturation and brightness. Blend modes such as Overlay, Soft Light, Screen and Linear Dodge (Add) can produce very different apparent strength.
- Check which Sticker states allow the effect before comparing attached, peeling and held appearances.
Foil or sparkles disappear while I peel or hold the sticker
The effect may be configured to hide in those states.
- Review the holographic state settings on the Profile.
- Enable the effect for the required states and sync the Sticker.
- Test attached, peeling and held states separately to confirm the intended result.
The sticker or its foil renders pink or magenta
Check the material and shader reported by Unity.
- Read the Console for missing-shader or shader-compilation errors.
- Confirm the package’s shader and material assets imported correctly.
- Check compatibility with the project’s render pipeline. Test the supplied demo materials before replacing shaders or converting materials.
Scratching does not start
Scratch interaction must be enabled through the Profile.
- Enable Scratch and sync the Sticker.
- If hold-to-scratch is enabled, hold before dragging.
- Check that the Sticker receives normal pointer input and that another Sticker does not own the interaction.
- Review brush strength and reveal colour if input works but the mark is difficult to see.
Scratch marks are too wide, too harsh or appear as separate stamps
Adjust the scratch brush to match the artwork and interaction scale.
- Review brush size and hardness for the width and edge softness.
- Reduce strength if each stroke removes too much.
- Review spacing if the stroke appears as separate marks. Test slow and fast pointer movement.
Repeated peeling does not produce visible wear
Wear is an optional feature with its own accumulation settings.
- Enable persistent wear on the assigned Profile and sync the Sticker.
- Check wear strength, stamp count, edge bias and maximum amount.
- Compare the same Sticker before and after several complete peel and placement cycles.
I do not want residue left on the surface
Residue is configured separately from peeling and wear.
- Disable Peel Residue in the Profile.
- Sync the affected scene Stickers or prefab.
- Start a fresh test with that setup to check the resulting behaviour.
My animated sticker stays on one frame
Check both the Profile and the per-Sticker animation content.
- Enable Sprite Animation on the Profile.
- Assign the frames to this Sticker and check Frames Per Second and Playback Mode.
- Check whether animation is enabled for its current state, then sync the Sticker.
Animation stops after one cycle or stops while the sticker is held
Review playback mode and state rules separately.
- Use Loop when the animation should repeat continuously. Once completes a single playback.
- Review the Profile’s animation rules for Attached, Peeling, Held and Placing.
- Keep the frame list and playback settings on the Sticker that is actually in the scene or prefab.
Runtime, builds and performance
My UI button does not spawn a sticker
Check the button’s event and the spawner’s references.
- Confirm the UI button calls the intended StickerSpawner Spawn method.
- Assign a fully built Sticker prefab and confirm the referenced object exists at runtime.
- Check the Console, then test with no other Sticker currently held.
A new sticker does not enter Held state
Only one Sticker can own the current interaction.
- Place or release the currently held Sticker before spawning another.
- If using the API directly, check the return value of BeginHeld().
- Handle a false result in your game code. The supplied spawner can destroy an instance when it fails to enter Held state.
The prefab works in the Editor but is incomplete in a player build
The player uses the runtime modules already built into the prefab.
- Open the actual prefab asset outside Play mode, assign its Sprite and Profile, and sync it.
- Save the prefab and check that the spawner references that asset.
- Remove runtime dependencies on the Editor-only builder and inspect the player log for missing assets or exceptions.
SetProfile() does not add the new feature modules at runtime
Changing the facade’s Profile reference does not run the Editor builder in a player.
- Prepare and sync separate prefabs for different module layouts.
- Spawn the prefab that contains the required features.
- Use SetProfile() within the documented runtime behaviour rather than expecting it to generate missing components.
An animated Sticker hitches when it spawns or when animation starts
Animation receivers can optionally prepare frame-specific data before playback. Preloading moves that work to spawn, while deferred preparation moves it to the first frame that needs it.
- For normal runtime spawning, start with Preload Frame Receivers disabled.
- If enabling it makes placement smoother but causes a spawn hitch, the receiver is front-loading one-time preparation rather than removing the cost.
- Use the Unity Profiler and expand StickerSpriteAnimator2D → ApplyCurrentFrame to identify the receiver that performs the work.
- StickerLab's built-in persistent wear path does not require per-frame wear-mask generation, so make sure the current Wear script and StickerWearOverlay shader are installed together.
The first placement hitches when a sound plays
A short interaction sound can stall the first placement if Unity has to synchronously load or decode the AudioClip at the moment PlayOneShot is called.
- Select the placement AudioClip and enable Preload Audio Data.
- For a short immediate SFX, use Decompress On Load with PCM or ADPCM as appropriate for the clip.
- Retest the first placement in a fresh Play Mode session and confirm the spike is no longer inside audio loading.
The scene slows down when I add many stickers
Measure which optional feature consumes the frame time before changing the whole setup. Core peeling and placement are intentionally lightweight, while scratch, residue, holographic foil, sparkles and animated secondary effects add their own cost.
- Compare a core peeling Profile against the same Sticker with scratch, wear, residue, holographic effects or sparkles enabled.
- For animated runtime-spawned Stickers, keep Preload Frame Receivers disabled unless you deliberately want compatible preparation work to happen during spawn.
- Disable features you do not need and test representative Sticker counts on the target device.
- Use the Unity Profiler to inspect the exact spawn, peel or placement frame instead of assuming every optional module has the same cost.
The first scratch or a large animated scene uses too much memory
Scratch textures, optional residue data and deliberately preloaded animation-frame data can contribute to runtime memory use. Persistent wear reuses one wear texture across animation frames rather than allocating one texture per frame.
- Measure memory before and after scratching to identify the change. Scratch textures are created on first use.
- Leave Preload Frame Receivers disabled unless you have a specific reason to prepare compatible receiver data at spawn.
- Reduce unnecessary source resolution and animation frame counts, then compare the result.
- Reuse artwork where appropriate and test how many scratch-, residue- and animation-enabled Stickers your gameplay needs simultaneously.
Bake Sticker Thumbnail does not create the preview I expect
The thumbnail baker uses the runtime render so shader-driven finishes can be captured accurately.
- Make sure the Sticker is Profile Synced before baking.
- Do not interrupt the automatic Play Mode capture. StickerLab may briefly enter Play Mode and wait until the end of a rendered frame.
- For holographic Stickers, confirm the correct per-Sticker Holographic Mask is assigned and sync again before baking.
-
Check
StickerLab2D/Sprites/Thumbnailsinside the installed StickerLab folder for the generated transparent Sprite and review the Console if the capture was interrupted.
WebGL audio is silent until I click
Browsers can require a user gesture before audio starts.
- Click or tap inside the player, then trigger the sound again.
- Check the tab, operating-system volume and assigned audio clips.
- If audio remains silent after a gesture, inspect the browser Console and compare the same setup in a standalone build.
FAQ
Do I need a custom backside image?
Can many Stickers share the same Profile?
Where should I assign a holographic mask?
Why is Sticker Back Scale stored on the Sticker?
What does Bake Sticker Thumbnail do?
StickerLab2D/Sprites/Thumbnails
inside the installed StickerLab folder.