Makes move childs from parent gameobject translation after dynamic generation

Hello !

Always on my runner development.
I’m trying to dynamically generate obstacles and collectables on my randomly generate blocs (to constitute my road).

The problem is that’s my blocs which moved (not my player), and when I add my obstacles for example to the children list of my bloc, when the bloc move, its childs don’t.
Like this :


Sections.children : Blocs
Blocs.children : obstacles + collectables

How could I make his children attached to his parents dynamically ?

Original Post on Discord

by user 224464722878005248

You use children[Ind].add