Without purchasing an asset, is there a way to render/create a dotted line? The only way I’m seeing to do it now is to have a “dot” sprite that you create a few dozen of and place them in a row. But that seems silly and expensive for JUST a dotted line.
EDIT: This is a dynamically generated line that, while highly unlikely, could be infinite.
The first thing that comes to mind is a dot texture applied to a very skinny plane, this will stretch the dot across the whole plane though you can make a shader that will let you stretch the UV making it a series of dots instead of just one big dot.
Are you talking about Unity UI or 3d meshes?
You could actually use a two pixel texture for that, I guess: 2px*1px.
You could repeat the texture along the object when it is a mesh.
When it comes to UI, though, I don’t really know an answer for that other than creating a sprite of the actual size. Maybe there is a way for this using the “tiled” option.
Well I’m currently using LineRenderer. I capture the position of an object throughout play, and at the end of play I want to render a dotted line along the path the object traveled, as a history. Line renderer works perfectly for this, but I’m finding it to be painful to do anything but a plain, solid line.