Can I create PathFollow in runtime?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By StarLord

Can I create PathFollow in runtime or prefer to create PathFollow in design time and changing them? What the method more effectively? Thanks.

Which solution you choose (be it creating a PathFollow when laying out the scene, or creating it at runtime) depends on the goal you want to achieve. Having written that, you can create a PathFollow at runtime.

Create a Curve3D for a Path. Then add a PathFollow as a child node of the Path. Have whatever you want make use of the PathFollow.

Ertain | 2019-10-06 23:22