Simple Traffic System
  • Simple Traffic System
  • Project Setup
  • Tutorials
    • FAQ
    • Quick Start Guide
    • Video Tutorials
      • 1. Getting Started
      • 2. Connecting Routes
      • 3. Traffic Lights
      • 4. Spline Route Creator
      • 5. Spawn Points
      • 6. Lane Changing
      • 7. Traffic Pooling
      • 8. New Car Prefabs
      • 9. Route Editor
      • 10. Deleting Waypoints
      • 11. Deleting and Setting Up Random Spawn Points
      • 12. Yield Triggers
      • 13. Preferences Window
      • 14. Vehicle Types
      • 15. Stop Signs
      • 16. Using A Player Car
      • 17. Multiple Routes Per Light
      • 18. Integrations
      • 19. Procedural Traffic and City using CiDy
      • 20. Auto Rig AI Traffic Car
      • 21. URP & HDRP Demos
  • Documentation
    • API
      • AITrafficCar
      • AITrafficController
      • AITrafficLight
      • AITrafficLightManager
      • AITrafficStop
      • AITrafficStopManager
      • AITrafficWaypoint
      • AITrafficWaypointRoute
      • AITrafficWaypointRouteInfo
      • SplineRouteCreator
    • Asset Integrations
      • IK Avatar Driver
      • Stylized Vehicles Pack - Low Poly
    • Demo Scenes
    • Prefabs
      • AITrafficCar
      • AITrafficController
      • AITrafficSpawnPoint
      • AITrafficWaypointRoute
      • AITrafficWaypoint
      • AITrafficLightManager
      • AITrafficStopManager
      • SplineRouteCreator
    • STS Tools Window
      • Spawn Buttons
        • AI Traffic Controller
        • AI Traffic Waypoint Route
        • AI Traffic Light Manager
        • AI Traffic Stop Manager
        • Spline Route Creator
      • Configure Mode
        • Lane Connector
        • Route Connector
        • Route Editor
        • Signal Connector
        • Spawn Points
        • Stop Connector
        • Yield Triggers
  • Demos
    • PC
    • WebGL
  • Links
    • Asset Store
    • Email
    • Unity Discussion Forum
    • YouTube
Powered by GitBook
On this page

Was this helpful?

  1. Tutorials

Quick Start Guide

PreviousFAQNextVideo Tutorials

Last updated 4 years ago

Was this helpful?

This is a written quick start guide detailing the minimal steps to get started. For more detailed instructions, please view the . It's strongly recommended to go through all video tutorials to gain insight into how the available systems and tools should be used.

The following video will guide you through the asset import/setup process, additional information about project setup can be found on the page.

This asset uses AI Traffic Waypoint Routes, which are made of AI Traffic Waypoints; these routes spawn AI Traffic Car prefabs on scene start, which get registered to an AI Traffic Controller. The idea is to create multiple routes with waypoints, and link them together to create a road network, then add AI Traffic Light Managers to sequence groups of AI Traffic Lights that are used to control when a car can exit the assigned AI Traffic Waypoint Route.

Select Tools > Simple Traffic System > STS Tools Window from the Unity menu bar to open the Simple Traffic System Tools window. This window contains a variety of editor tools that can be used to help create your simulation. Many of the functions these tools provide can also be manually configured.

To begin, add an AI Traffic Controller to the scene, then add an AI Traffic Waypoint Route to the scene using the Spawn buttons in STS Tools window. Next, add AI Traffic Waypoints to the route by selecting the AI Traffic Waypoint Route that was created in the Hierarchy and using Shift+LeftClick to add new points to the route. You can use Shift+Ctrl+LeftClick to insert a new waypoint between points.

Once you’ve created your first route with some waypoints, assign an AI Traffic Car prefab to the Spawn Traffic Vehicles array on the AI Traffic Waypoint Route. Select the AI Traffic Waypoints to view their inspector options, here you can set how fast the car is allowed to drive after reaching each point to make the car speed up or slow down. Press play to watch the AI car spawn onto the route, drive to the end and stop. From here, you can continue adding more AI Traffic Waypoint Routes, and interconnect the routes by assigning the New Route Point array index on the final waypoint of a route to the first waypoint of another route.

Video Tutorials
Project Setup