Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path only works if I have path GameObject selected in hierarchy #134

Open
kipBO opened this issue Apr 17, 2023 · 2 comments
Open

Path only works if I have path GameObject selected in hierarchy #134

kipBO opened this issue Apr 17, 2023 · 2 comments

Comments

@kipBO
Copy link

kipBO commented Apr 17, 2023

This is the GameObject:
image

And here is the inspector of that object:
image

Only when the object is selected in the hierarchy the road/path is connected to the waypoints when I run it in the editor. When I select anything else it's not working anymore. Also in build version it's not functioning obviously. Maybe something to note, I'm also using the road from the examples. Am I missing something, or do I have a setting wrong? Did check the docs and for issue's here but couldn't find anything. Cheers and thanks in advance!

@kipBO
Copy link
Author

kipBO commented Apr 19, 2023

I don't know if it's the right way but I fixed it. If you have the road example attached like me. Go to file RoadMeshCreator.cs and add:

void Start()  { PathUpdated(); }
void Update()  { PathUpdated();  }

✌️

@hgopi
Copy link

hgopi commented Jul 24, 2023

This issue is still persists in Unity 2023.1.4f1. I can create a Bezier path but once I clicked other Game objects and came back to the path, it got reset to initial.

Any workaround to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants