mchrbn / unity-traffic-simulation

A Unity asset that lets you easily simulate very simple traffic into your scene.
264 stars 57 forks source link

Trafic System doesn't work on Prefab Objects #6

Open Musaka96 opened 4 years ago

Musaka96 commented 4 years ago

If I attach the TrafficSystem script to a prefab, it will basicly re-Instantiate that object, therefor losing segments and intersections saved during edit. The solution is simply not using a prefab, but I feel as you could set a fallback if he doesn't find any segments, to check his child objects for them :D

Musaka96 commented 4 years ago

You can make this work if you are editing the prefab, but if you don't apply changes it will not work from the scene