Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by Patyrn · May 25, 2011 at 07:33 AM · trailrenderertrail

[Solved] Trail renderer that fades out at the end?

I thought color might do this, but it doesn't seem to. I want the trail to gradually fade to nothing rather than abruptly end like it does now. Is this possible?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
8
Best Answer

Answer by save · May 25, 2011 at 09:13 AM

You use the alpha (A) in the last and/or first color block to fade out the trail. Trail Renderer

Trail Colors You can cycle your trail through 5 different color/opacity combinations. Using colors could make a bright green plasma trail gradually dim down to a dull grey dissipation, or cycle through the other colors of the rainbow. If you don't want to change the color, it can be very effective to change only the opacity of each color to make your trail fade in and out at the head and/or tail.

Particle shaders works best together with the trail renderer.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CHPedersen · May 25, 2011 at 09:31 AM 0
Share

Yeah, that's a good suggestion, too. :P

avatar image save · May 25, 2011 at 09:34 AM 0
Share

And so is yours. :)

avatar image Patyrn · May 25, 2011 at 07:03 PM 0
Share

Ah. $$anonymous$$y problem was using a transparent shader, but not a particle one. The built in trail renderer does indeed do exactly what I want.

avatar image
3

Answer by CHPedersen · May 25, 2011 at 09:08 AM

Certainly. Others have once had the same problem, so they went and created an improved version of the trail renderer, that can fade over time. :)

It's on the wiki, take a look here:

http://www.unifycommunity.com/wiki/index.php?title=TimeBasedTrailRenderer

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image mtardif · Jun 17, 2014 at 11:19 PM 0
Share

That solved our problem right here! Now the trail looks awesome, fades away and is super simple to change dynamicaly by script.

avatar image Datapax · Jan 05, 2017 at 05:46 PM 0
Share

Link is dead : (

avatar image ianfrank · Apr 23, 2018 at 07:28 AM 0
Share

Updated link:

http://wiki.unity3d.com/index.php?title=TimeBasedTrailRenderer

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How to force a trail renderer to re-render in the same frame? 0 Answers

How to Change Trail Render Position in 3D? 1 Answer

Trail after game object with pause/clear function 2 Answers

TrailRenderer coexisting with sprites 2 Answers

Shadow's aren't showing on my trail, "I have "Receive Shadows" checked,My trail isn't receiving shadows, I have "Receive Shadows" checked 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges