Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Placing multiple objects on multiple splines
#1
Hello!

I have multiple splines and need objects placed on each spline with some space. I initially used InputGameObject->BuildVolumeSpots->Create GameObject for that. But that created one GameObject for one object which really dragged down the performance. So I figured that It would be better to do it with InputMesh->BuildVolumeSpots->Create Mesh and set the combine property to true. 

But using this method only the first spline of all splines which are using the same CreateMesh object has the the created objects on it. The others just don't have them (they don't spawn). I also checked the spots count of the other BuildVolumeSpots and they are all above 0. The links (connections) for all modules are fine as well.

Thanks for your help in advance!
Reply
#2
Hi,
I tried to do what you described but did not find any issue. I attached the scene that I tested with. If by looking at it you find that you configured something wrong, then problem solved. If not, then send me your scene so I can debug.
Have a nice day


Attached Files
.zip   Spot Meshes.zip (Size: 54.59 KB / Downloads: 1)
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Hi,

thanks for the quick reply and for the test scene. But in your test scene you used two Create Mesh modules instead of one like I want to do it in my game. 

Could you try it again with just one CreateMesh module for rendering multiple meshes?

Thanks!
Reply
#4
Create Mesh module takes only one input of type Spots. So you will have to have multiple Create Mesh modules for now.
I will make a modification for the next update so that Create Mesh can take multiple Spots inputs. I will send you the modified code in you PM once it is ready.
Just FYI, modules that can take multiple inputs in the same slot are the ones that have a "[]" symbol (for array) next to the slot name.
   
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#5
Ok I see, thank you! Then there is a bug because I'm creating and linking the modules via the API and it let me link multiple OutSpots to the InSpots connection without errors and the generator diagram is also displaying it like it would work^^

Thanks for the upcoming update and your help!
Reply
#6
(03-02-2020, 08:49 PM)digot Wrote: Then there is a bug because I'm creating and linking the modules via the API and it let me link multiple OutSpots to the InSpots connection without errors and the generator diagram is also displaying it like it would work^^
The fix for this will be in the next update
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 0 0 2 hours ago
Last Post: ShiroeYamamoto
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  Using Unity's SplineContainer in Curvy Splines dlees9191 3 15 02-26-2024, 09:49 AM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 7 02-23-2024, 09:44 AM
Last Post: _Aka_

Forum Jump: