How to get square ends instead of rounded ends on Trail Render?
Any ideas how to get sharp squared off edges on the trail renderer? I'm getting slightly rounded ends and can't figure out if it's possible to get the ends square.
Answer by tormentoarmagedoom · May 08, 2019 at 02:53 PM
Hello @NikH
You should read the manuals... We are not here to copy/paste test from manuals... You should take your time searching and reading!
You are looking for this:
https://docs.unity3d.com/Manual/class-TrailRenderer.html
Corner Vertices This property dictates how many extra vertices are used when drawing corners in a trail. Increase this value to make the trail corners appear rounder.
End Cap Vertices This property dictates how many extra vertices are used to create end caps on the trail. Increase this value to make the trail caps appear rounder.
Bye! :D
Answer by NikH · May 09, 2019 at 01:34 AM
Thanks tormentoarmagedoom, I have read the manual and these sections a number of times previous to posting - I'll mention that in the future and sorry for wasting your time.
In my scene I have the minimum end cap settings (field doesn't allow negative values) and still getting the rounded ends - have attached a screenshot of the trail (the fat white line with curved/diagonal ends) and my settings in case someone knows if its possible to square off the ends.
Thanks.
Answer by wilfredreedman · May 26, 2020 at 04:00 PM
I am having this problem too, did you find the answer?
Your answer
