• 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
1
Question by Julia · Oct 22, 2010 at 09:13 AM · gameobjectdrawingtrailtrackskidmarks

How can I leave perminant trails/tracks behind a character?

I'm a total beginner and I need to make a ball roll around on a flat surface and have it leave a trail/tracks of where it has travelled without it disappearing over time. Is there a function or method that I can use to create this effect?

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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by zannghast · Oct 22, 2010 at 09:31 AM

Have you checked out using the Line Renderer component? I'm thinking you could use a track or trail texture, apply a material of that texture to the line renderer and voila! instant tracks without any sort of coding ;)

Here's a link to the Line Renderer page on Unity's Reference Manual: Link

Personally though, there is no specific function or method to solely handle "leaving tracks". However, this is still possible with code (and might be more appropriate in your case). If the Line Renderer doesn't work out for you, do tell so we could try 'coding' it instead.

Comment
Add comment · Show 1 · 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 zannghast · Oct 22, 2010 at 09:32 AM 1
Share

Or use the Trail Renderer ins$$anonymous$$d ;) - http://unity3d.com/support/documentation/Components/class-TrailRenderer.html

avatar image
0

Answer by Statement · Dec 09, 2010 at 09:19 AM

Use the trail renderer. Trail renderer screenshot

However, I doubt you can have the trail stay forever.

Comment
Add comment · 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
0

Answer by yoyo · Dec 13, 2010 at 12:01 AM

You can create a Mesh procedurally and record the trail of the object with the dynamically updated mesh. If this is going to grow very long you probably want to build the trail in segments, and only dynamically update the leading segment, just behind the ball. This will take some non-beginner level scripting though, so if you can get the TrailRenderer working for you that would be easiest.

One potential downside of LineRenderer/TrailRenderer is they orient towards the camera, which may or may not be desirable, depending on the look you want. They work well for glowing translucent trails, as in @Statement's nice screenshot.

Comment
Add comment · 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
0

Answer by yoyo · Dec 13, 2010 at 10:55 PM

Someone just pointed out this link to me -- Starscene Software has a utility called "Vectrosity" which renders lines be converting them to meshes. Looks like just what you need.

Comment
Add comment · 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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Draw trail behind player when its not moving 0 Answers

Trail rendering for car skid marks 2 Answers

Car skidding sounds still playing after I stop skidding! 0 Answers

Gettin Trail's shape 1 Answer

Linerenderer between RaycastHit.point and a Gameobject 1 Answer


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