Getting positions of the objects instantiated in a Spline

Hi, I’m new to Unity and for my project I need to line up a variable number of already existing GameObjects at runtime. I found about Splines, and since I can’t add existing objects to them, nor create multiple ones from different prefabs, I thought that I could create empty objects and then move my GameObjects to their positions. Problem is I can’t find a way to access the Spline Instantiated objects at all.

Thank you for your time in advance.

I had the same issue and iirc all members in regard to instances are private or internal. Not sure why - “SplineInstantiate” looks very feature rich from the inspector but scripting API almost non existing.

In the end I forked and modified the repo provided by needle-mirror (GitHub - fx-lange/com.unity.splines: Work with curves and paths. Use the Splines package to generate objects and behaviors along paths, create trajectories, and draw shapes. 📦 [Mirrored from UPM, not affiliated with Unity Technologies.])