Mini Trail
by Minigames
Introduction
You can create a trail by directly editing points.
Instructions for use can be found here.
https://youtu.be/ndfEL_sbkPY
Component
Add a Trail component to Gameobject.
![](https://lh7-us.googleusercontent.com/gVYv77tesPZlI2AZx5BuajYaAyMemsgZI2NNpiYWm3SQz9tDp8tHqBZeRMBBmLuQnca0O6P62vr9FfHGg2RWC9J4FH6IpKpYenSmaIzRmEgNYK1irVg_eS1JywGGFiLkOyH1aSH_JayLIzo24rXAy0c)
Material | The material to apply to the trail. |
Duration | Define the lifetime of a point in the trail, in seconds. |
Corner | Increase this value to make the trail corners appear rounder. |
Loop | Enable this to connect the first and last positions of the line, and form a closed loop. |
Points | The array of Vector3 points to connect. |
![](https://lh7-us.googleusercontent.com/nhYIMMaWlyrW38FtyJFxicUQ171_oQ50-syUqTZWalROiYAL6lHlHtx55drDWiaw-f8H1pzPFYh8KqRzowKbSBEO14x42QqJmXW_HKfjpuf5unmRJNZada883PXbyK61tyE1LB-jFfRpBh337WDu8H8)
| Edit the position of the point in the Scene View. |
![](https://lh7-us.googleusercontent.com/GqE4jSMV1xQjh--tVNWl4vyrrlI35_daYQ4e7NPxp_TjDPrONlbSaubD1I5qHkGztnhbkePdBEiU2IODaIpLTLsGoF1VVJdnXXyNYuOIS50Nzkgm2GlLqOipABY_FFxKRoi_3Vv2yVXaAuFenuRxd94)
| Modify the position/rotation/scale of the entire point. |
Making a circle | Create a circle of points. |
Material
Any Material can be used.
The default axis is -Y(See picture below)
![](https://lh7-us.googleusercontent.com/xaRdVTardKlWNsIJI2kjOl8cPSf4L3r-Ck_KGzWS4_7Vuf2Opoh445vM96YGYiNBtpKVOeTU1QA1odpYlfEPp3d4M8oJG8c45ugJbHADpaxEzgXaPrswf1vfHOhnqP4NhklsvCT_3ETfSx64m6HMThk)
Making a circle
![](https://lh7-us.googleusercontent.com/SbY4Fxi77MKshzDNP2KZWtyU-J5jNVAhDZm5EFyY2RJGcMelxLZn4V3t35V1Qj62WlX2JNu3iYrO79H9uFV-tq32GYbd-_La2MCBbx4GYAtKhTPzOdRR9OxzG7xhhTcmaJyPF9lUd3trq6KAuYiRmpI)
Center | It is a center position. |
Normal | Normal direction. |
Radius | This is the radius of the circle. |
Count | Number of points. |
Make | Creates an array of points. |
API
enabled | Show/Hide Trail. |
Loop | Whether the loop is applied. |
Clear | Removes all points from the TrailRenderer. Useful for restarting a trail from a new position. |