
Procedural Slash Trail based on Visual Effect Graph and Shader Graph — a
highly customizable tool for your trail effects.Note: Character and animations from Mixamo shown in the video are not included due to Asset Store content policy.Procedural Slash Trail is a powerful VFX solution built using Unity’s Visual Effect Graph and Shader Graph.It allows you to easily create trails that smoothly follow your attack animation, while still giving you the freedom to tweak the shape. You can adjust parameters like length, curvature, thickness, width, and radius, with real-time adjustments based on in-game data.For example, depending on the weapon equipped, the trail for a dagger can be narrower, while a long sword’s trail can be wider, and you can increase the radius to reflect the increased melee reach.In addition to the final shape, you can also control how the trail evolves over time. For instance, you can increase the brightness at the tip based on distance before the weapon completes its swing animation, and have it fade out over time once the swing finishes.The shaders are made up of multiple reusable sub-graphs, allowing you to not only easily adjust the trail’s appearance but also use the same sub-graphs for other effects beyond trails.For details, please visit the online documentation.For any questions, suggestions, or feedback, please feel free to email me at javisweng@gmail.com.All textures are 512x512, including one flow map and 20 noise textures.Custom shaders built with Shader Graph, featuring 10+ reusable sub-graphs.Custom Visual Effect Graph operators for trail phase computation, trail orientation calculation, and various property adjustments.A dedicated script for trail status calculation and real-time control based on gameplay stats.A complete example trail VFX setup, including a fire trail, strip trail, smoke, and flame trail with turbulence effects.