Automatically Processing Assets with Custom Unity Asset Pipelines @WorldOfZeroDevelopment
Automatically Processing Assets with Custom Unity Asset Pipelines  @WorldOfZeroDevelopment
Uploaded February 2023 | Updated November 2026, 3 hours ago
Continuing our journey of adding the ability to easily use SVG assets in Unity, today we're going to be exploring how to automatically process and convert SVGs to PNGs whenever one is added to our Unity project.

In order to handle Unity asset import events we need to create an `AssetPostprocessor` by creating a custom class that inherits from the class. Once that's done we can extend our custom Asset Processing using the provided methods from Unity. A list of those is available here: docs.unity3d.com/ScriptReference/AssetPostprocessor.html

The `AssetPostprocessor`'s `OnPostprocessAllAssets` function is called when the Assets imported into your project have changed. In this case, if we move, delete or add new assets this is the message that will be invoked for us to hook into those changes and run our custom Asset processing.

For more information you can check out the documentation here: docs.unity3d.com/ScriptReference/AssetPostprocessor.OnPostprocessAllAssets.html

The code I'm using expects Inkscape to be on your PATH. If you don't have Inkscape installed you can download it here: inkscape.org/release/. If Inkscape is correctly configured you should be able to run `inkscape --help` in your terminal and get a valid response.

Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Automatically Processing Assets with Custom Unity Asset PipelinesTaking a Look at Groovy @Memoized FunctionsBuilding OBS Overlays in Unity 3DAnimating the Elevator - An Elevator Between Scenes - Part 1Improving the Voxel Cube with Lighting and Optimized UpdatesExpanding our Mindustry Server with Custom Maps, Saves and MoreBuilding a Custom Unity Terrain ShaderBuilding a Static Website from Markdown with HugoI Learn About Stencil Buffers and Cutting Holes in ThingsBuilding an Editor Window - Unity Observer - Part 0Building a Cloud Game w/ @MicrosoftReactor - Day 2Prototyping the Sand Table - Sand Table - Part 1
World of Zero |

Automatically Processing Assets with Custom Unity Asset Pipelines

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER