All Questions
8 questions
0
votes
1
answer
2k
views
Multiple Lines with Single LineRenderer
I have a database of country, state, and even county level borders and I'm stuck in a situation where I either have 1000+ linerenderers in the scene OR I have a single line that connects every border ...
1
vote
0
answers
674
views
Why do we get artifacts on objects rendered using depth node + depth render camera on Android?
I've encountered and error I can't seem to find online. I get it on all the water shaders I test, and any thing else that I have a depth node + depth render script on the camera for.
I'll share a bit ...
0
votes
1
answer
236
views
Why does my shader's Texture become unselected when I run my game?
I'd like to add a custom material to a line that I'm drawing in Unity (using Vectrosity). I'm using Unity's built-in "Unlit/Texture" shader. When I drag a texture from my Resources directory into ...
1
vote
1
answer
7k
views
Enable/ Disable Line Renderer points
I have a Line Renderer component with 4 points, I would like to disable and enable the last 2 points at a certain time. My question is, how would I in code (C#) enable and disable individual Line ...
1
vote
1
answer
15k
views
LineRenderer sorting order - lines always in front of everything
I have 3 cameras and 3 canvases.
Back Camera: depth = -5, Back Canvas: Sorting layer - BackLayer,
Camera: depth = 0, Middle Canvas: Sorting layer - MiddleLayer,
Camera: depth = 10, Front Canvas: ...
1
vote
1
answer
4k
views
How to correctly draw a 2D polygon in Unity
I'm trying to draw a 2D polygon using GL.Line; however I'm not getting a polygon but separated lines instead. In the example below, I would expect a rectangle formed by the spheres:
My code is the ...
14
votes
4
answers
22k
views
How to make Line Renderer lines stay flat?
I've noticed that as I add more vertexes to a Line Renderer line the line twists and stops being a smooth line.
.GIF Here: https://i.sstatic.net/cfpe5.gif
All lines are on the same z level, even if ...
1
vote
1
answer
647
views
How to create laser redirection?
Think portal 2, where a laser can go through a cube, and depending on the rotation of that cube, it will redirect it. Examples:
Here is my barely functioning code. It works for one cube, I'm able to ...