Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to generate mesh on spline at runtime?
#4
(07-06-2023, 10:33 AM)_Aka_ Wrote: Hi

Setup your generator in edit mode.

.....

Hi! Just wanted to let you know that I was able to accomplish it using your help Smile

Two questions, though.

Is there a function to have the "BuildShapeExtrusion.To" value follow the Spline controller object's relative position (0 - 1)? So this way, it would be as if the Object on the spline is creating a "trail" as it moves, then restarts on loop. 
(*** Edit:  I accomplished it by "tweening" a value from 0 - 1 and simply applying it to the SplineController.position and "BuildShapeExtrusion.To" at the same time. Although, it seems as though there is an automatic "EaseInOut" function applied to the SplineController, or is it something I'm doing unintentionally somewhere that I can't find? ***)

Also, I have to assign a specific Layer name to objects for my camera to see them, so I need to add the layer name to the extruded mesh, but it seems as the extruded mesh ("Create Mesh_5_Mesh000" under "Create Mesh" object on the Generator gameobject) resets the layer name to default whenever its extrusion value is changed. Is there a way to default it to my layer name without having to change it every update?

EDIT #2: Gosh darnit. I figured out the layer problem too haha. I'm so sorry! You made an option for choosing layer on the CreateMesh component. You thought of everything in this plugin. I love it! 
I still haven't figured out the "EaseInOut" issue of the Spline Controller though, as mentioned in my first edit.
Reply


Messages In This Thread
RE: How to generate mesh on spline at runtime? - by _RicO - 07-14-2023, 04:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Spline Spots from 2 samples. BitBlit 8 447 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 1,939 04-12-2026, 03:18 PM
Last Post: _Aka_
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 515 03-18-2026, 08:34 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 842 11-13-2025, 11:32 AM
Last Post: _Aka_

Forum Jump: