hi. i am able to create roadmesh at runtime with my player controller but this gets pretty heavy for pc because everytime i add a new segment, it updates whole road.
how can i make new segments without updating the whole road? do i need to create new spline that continues from previous one? if so, how can i do that?
it seem that creating new generators at runtime is pretty heavy so i try to use one generator and add new spline to it. however i need to access generators InputSplinePath node to add spline there.
i tried to access node with this code: InputSplinePath isp = generator.GetModule<InputSplinePath>(moduleID); isp.Spline = newSpline;
but isp is null. i dont know why. the node is there
tl;dr: how can i make long roads without updating the whole road everytime i add new segment to it
https://i.imgur.com/hyZ5KPu.png
this is how i get that moduleID. i create that generator when game starts. i dont know if this is correct way to get it.
how can i make new segments without updating the whole road? do i need to create new spline that continues from previous one? if so, how can i do that?
it seem that creating new generators at runtime is pretty heavy so i try to use one generator and add new spline to it. however i need to access generators InputSplinePath node to add spline there.
i tried to access node with this code: InputSplinePath isp = generator.GetModule<InputSplinePath>(moduleID); isp.Spline = newSpline;
but isp is null. i dont know why. the node is there
tl;dr: how can i make long roads without updating the whole road everytime i add new segment to it
https://i.imgur.com/hyZ5KPu.png
this is how i get that moduleID. i create that generator when game starts. i dont know if this is correct way to get it.