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
  How to get length starting from one spline to connected nth spline Dragon-3623 1 1 05-14-2024, 04:52 PM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Set Volume to the Volume Controller at Runtime pako88 2 10 04-08-2024, 03:26 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_

Forum Jump: