Adding a Position Constraint by script:

I want to keep all game objects at Y = 0.

Anyone familiar with setting up the Position Constraint component by code?

The objects will only go wherever you set them too unless you are using physics. How are you moving them at the moment?

I’m not moving them at the moment.