Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
1
Question by SpaceMammoth · Jan 02, 2013 at 12:32 PM · trailrenderertrail renderer

Trail Renderer with visible gaps/breaks in the trail

The Trail Renderer is great. I am using it for long trails in my game following projectiles, however I need the projectiles to go through portals - which is where the Trail Renderer predictably leaves unwanted long streaks as the trail jumps to a distant point. Essentially I want a way to briefly suspend the production of the trail and then turn it back on and resume the trail production so there is a visible gap or break in the trail. The only solution I can think of is to create a new game object with a new Trail Renderer every time a projectile goes through the portal like this. I am concerned by increasing drawcalls (platform is android/IOS) as other posts have said that Trail Renderers don't batch. Does anyone have any other suggestions?

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

1 Reply

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

Answer by Fattie · Jan 02, 2013 at 12:34 PM

Good news! :)

Essentially, you want to briefly suspend the production of the trail and then turn it back on and resume the trail production so there is a visible gap or break in the trail.

The only way to do this?

Create a new game object with a new Trail Renderer every time a projectile goes through the portal like this.

;-)

In a word - you want two trail renderers on the screen. So, you need two tail renderers - that's it.

There is no problem with performance - i mean it's only TWO trail renderers, for goodness sake.

Simply do a test, very simply duplicate your current T.R. (say, offset 5 meters) and that will give you a good test of two of the little buggers!

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.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Trails in just one direction 1 Answer

Trail renderer on top of player object 0 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

How to get Zerg Tentacle-like effect (see example in post)? 1 Answer

How to Change Trail Render Position in 3D? 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