View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.3.12
- Last updated
- First released
- Unity version
- 2022.3.62 or later
- Package size
- 19.0 MB
- Files
- 459
- Favorites
- 121
- Views in the past week
- 28
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $7.50 on
Keywords
SDF Image - Quality UI Outlines and Shadow
Allows to render UI icons with quality, crisp outlines and shadows, as opposite to Unity built-in really bad looking outline.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 9
SDF Image - Quality UI Outlines and Shadow screenshot 1
About this asset
Adds additional import settings for textures for SDF (Signed Distance Field) import which used in custom UI shader to render surface-correct outline/shadow/underlay around an Image. To render Image with outline/shadow use component SDFImage, provide it with sprite and optional SDF material to adjust outline properties.
👁️Web samples documentation👁️ (Samples available in package manager)
Requires Unity 2021/2022 or higher.
🟩Features🟩
- Perfomant - all data to generate outline is cached and sotred as nested texture in original texture asset, avoiding runtime calculation.
- Crisp - due to SDF rendering nature no matter how zoomed otuline, it will always remain crips, not pixelated.
- All image modes supported - Simple, Sliced, Tiled, Filled, all modes are supported.
- Multiple sprites support - sprites with 'Multiple' mode is fully supported.
- Seamless integration - its just a few clicks to setup your initial Outline/Shadow. User experience integrates nativly to unity.
- Mask support - can be both masked and act as mask.
- Pixel art support - pixel art is fully supported, it requires some preparations
- Atlas support - for most part is supported, tho require some additional setup
- Allows to generate SDF in runtime on all platforms, read more here
- Works both on GPU and CPU (when GPU is not available, build machine for example)
- Support Addresables, more about it here
From the publisher's Asset Store listing.
Technical details
⚠️⚠️⚠️⚠️⚠️⚠️
- Regular pipeline uses AssetImporter.userData to store SDF import settings, so if you using any plugins that also writes to userData of textures it will not be compatible. Use decoupled pipeline to overcome this.
- Sprite Atlases is now supported but with some limitations. Know more about atlases support here
- Runtime SDF generation in WebGL build is done on CPU, and due to Burst not supporting WebGL is lacking parallelism therefore pretty slow.
- Sprite Renderer is not supported right now, possibilities for implementation will be explored but this is a tricky topic.
- When working with SDFImage in prefabs with context crash might happen with multiple logs like: d3d11: EndWrite on null buffer. Upgrading Unity version to latest LTS of your choice should help, if not message me.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 6000.7.0a2 | Compatible | Compatible | Compatible | Compatible |
| 6000.3.15f1 | Compatible | Compatible | Compatible | Compatible |
| 2022.3.62f2 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.