r/unity_tutorials • • Jun 29 '21

How to Implement Bullet Trails With TrailRenderer Configurable via ScriptableObjects | Full Tutorial in Comments

83 Upvotes

1 comment sorted by

2

u/LlamAcademyOfficial Jun 29 '21 edited Jun 29 '21

Full Tutorial on YouTube

Hey all! Happy #TutorialTuesday!

This week is not part of the AI Series, but is building on AI Series Part 8 where I showed how to implement homing projectiles moving on a curve. I'm using that as a starting point, and adding in a TrailRenderer that we'll configure with ScriptableObjects so you can centralize the trail configurations to keep common configurations in a single ScriptableObject, but still have the flexibility to have a unique trail per projectile type you need. This is a great way to add some flair to your bullets!

As always, full project code is available on GitHub!

If you're getting value from this series, please consider liking and subscribing to help these tutorials reach and add value to even more people! New tutorials every Tuesday, sometimes on other days too.