Posts: 1
Threads: 1
Joined: Sep 2013
Hello, I wonder if there's anyway to use
spline path mesh builder with an offset to create parallel lines from spline, or if it's possible to use a prefab in anyway (the script will only allow to use meshes).
I want to create fences for a road.
Thank you
PD: I'm spanish so I hope I'm writing understandable questions
Posts: 690
Threads: 71
Joined: Jan 2015
(10-01-2013, 10:22 AM)checkitout Wrote: Hello, I wonder if there's anyway to use spline path mesh builder with an offset to create parallel lines from spline, or if it's possible to use a prefab in anyway (the script will only allow to use meshes).
Two options:
You can use SplinePathCloneBuilder (Prefab's support is in work, just use existing GameObjects for now) to clone geometry. Just parent your fence brick to an empty GameObject (offset it properly) and use that to feed the CloneBuilder.
If you use the SplinePathMeshBuilder, the component will use the Spline's position but transform it in local space of the GameObject holding the SplinePathMeshBuilder unless you enable the "Use World Position" property. So just offset the GameObject holding the MeshBuilder.
Jake