
This tool allows you to spawn trails from any GameObject in your 2D project. Easy to set up, many customisations, try it for free!Want to make your dash look cooler? Or maybe make your projectiles look more dynamic? You have come to the right place!This tool is:- Easy to use: Just a quick and simple setup with just 2 steps, and you're good to start spawning different trails.- Accurate calculations: The trails are precisely calculated to ensure consistent spacing, even with inconsistent frame rates. No more weird gaps caused by deltaTime inconsistency.- Customisations: Colours, sizes, lifespan, spawning interval, even with 4 built in easing equations!Check out the example scene and documentation (English and Chinese versions available) to get started.This is the free version. The free version contains only the core feature with basic customisations, whereas the Pro version contains the full set of features and customisations.If you have any questions or problems, please pull a request or report an issue in the Github page, or contact me via this email address: heinokchow314@gmail.com*Only designed for 2D projects*Please make sure you have the URP render pipeline set up before importing=========================================================Features in both free and Pro:- Simple function calls: Start or stop spawning trails with just two simple function calls.- Customisation: Full control over how the trails look including: the order in layer, the colour gradient, the size, the lifespan, the spawn conditions, even the easing type.- Accurate trail position: Precise calculation for each trail object, ensuring smooth and accurate visuals even with inconsistent frame-rate.- Built in easing equations: Include 4 types of easing equations: sine, exponential, circle and elastic. These affect how trail size changes over time (colours too if you want), and you can use them in your own project too!Features exclusive to Pro:- Profiles: Creating trail profiles, reusing settings. You can also switch between profiles during runtime, allowing one game object to spawn different type of trails!- Solid colour trails: You can choose to let the colour gradient override the sprite's colour completely instead of tinting into it.- Unique trail sprites: You can use different sprites for trail objects. You can specify one or multiple sprites, and choose whether to cycle through them in-order or pick the sprites randomly.- Scaling curve: Another method to customise the scale change over time: Animation curve. Instead of relying on the easing equations, you can customise the curve however you like.- Physical trails: You can enable physical collision on trails, turning them into more than just a visual effect and interact with your gameplay!- Easier coding: Extension methods that let you write shorter and cleaner code.- Events: You can listen to events including: on profile changed, on trail started, on trail ended, on trail object initialised, on trail object disabled and on will destroy trail object.- Early access to features: You can have early access to experimental features that might be partly updated to the free version.Experimental Features (Pro):- Auto start trail: You can let a game object automatically start a trail when its speed has exceeded a specific threshold. You can also write your own custom condition if this condition doesn't fit.- Auto stop trail: You can let a game object automatically stop its trail, conditions including: 1) when the condition to auto start trail is not met anymore; 2) after a certain time or 3) after the game object has moved for a certain distance. You can also write your own custom condition if none of the built in conditions fit.* Allow users to generate a trail on a game object. The user can start and stop the trail in scripts.* Allow users to customise the appearance of the trails: order in layer, colour, scale size, lifespan, spawning condition, ease type.* Uses object pooling to improve performance and save resources.* Automatically destroying pooled trail objects when needed. User can also manually do this in scripts.* Calculate the correct position for each trail object before spawning them, making sure the delta time imprecision will not cause any inconsistent gaps in the trail.