update:
now i can access the node by making public InputSplinePath variable and giving it value in that buildGenerator function. now i can make new spline with same generator. but when i create new spline and assign spline to generator, previous road mesh disappears because it has no generator anymore. i can keep old road visible by copying the mesh before it disappears but this feels a bit hacky and i dont know if im doing this right
now i can access the node by making public InputSplinePath variable and giving it value in that buildGenerator function. now i can make new spline with same generator. but when i create new spline and assign spline to generator, previous road mesh disappears because it has no generator anymore. i can keep old road visible by copying the mesh before it disappears but this feels a bit hacky and i dont know if im doing this right