.. _pathCreator: Path Creator ===== `Path Creator` is a tool for quickly creating :ref:`paths ` between :ref:`traffic nodes `. How To Use ------------ #. Open the tool from the `Unity` toolbar: `Spirit604/CityEditor/Window/Path Creator` .. image:: /images/road/trafficNode/pathCreator/OpenExample.png #. Select the :ref:`source traffic node ` and :ref:`target traffic node ` in the scene (:ref:`example `). #. Customize new :ref:`path settings `. #. Select the desired `Connection Type` (:ref:`connection settings `). #. Customize `Source` & `Target` :ref:`connection side `, so that the path is positioned correctly (:ref:`example `) (:ref:`connection settings `). #. Click the `Create` button. #. :ref:`Customize ` the created :ref:`paths `. Settings ------------ Node Settings ~~~~~~~~~~~~ .. image:: /images/road/trafficNode/pathCreator/NodeSettings.png | **Source Traffic Node** : source :ref:`traffic node `. | **Target Traffic Node** : target :ref:`traffic node `. | **U turn** : enable it if you plan to create a U-turn. .. _pathCreatorPathSettings: Path Settings ~~~~~~~~~~~~ .. image:: /images/road/trafficNode/pathCreator/PathSettings.png | :ref:`Path settings `. | **Select after create** : the path will be selected in the inspector after creation. Visual Settings ~~~~~~~~~~~~ .. image:: /images/road/trafficNode/pathCreator/VisualSettings.png **Show preview dotted line:** on/off connection line in the scene. * **Show path direction** : on/off arrows of the connection line. * **Arrow spacing** : arrow spacing. | **Show forbidden path** : on/off display of forbidden connection line. | **Show overriden path** : on/off display of overriden connection line (if disabled preview color will be taken). | **Font color** : font color of traffic node index gizmos. | **Preview connection color** : preview connection line color. | **Forbidden connection color** : forbidden connection line color. | **Overriden connection color** : overriden connection line color. .. _pathCreatorConnectionSettings: Connection Settings ~~~~~~~~~~~~ .. image:: /images/road/trafficNode/pathCreator/ConnectionSettings.png **Connection type:** * **Single connect** : only 1 :ref:`path ` is created. * **One direction connect** : :ref:`paths ` of all lanes are created for one side. * **Two direction connect** : :ref:`paths ` of all lanes are created for two sides **[New]**. **Override type:** * **Not allowed** : :ref:`path ` will be created only if the :ref:`path ` has not been created before. * **Allowed** : :ref:`path ` will be overwritten if created earlier. | **Auto detect side** : when selecting nodes, the selected :ref:`sides ` will be automatically detected. | **Auto switch type** : automatically switch connection type after selecting nodes depending on connection sides. | **Connect same side** : target :ref:`side ` will be the same as source :ref:`side `. **Source node side** : * **Default side** : selected :ref:`right side ` point in the source :ref:`traffic node `. * **External side** : selected :ref:`left side ` point in the source :ref:`traffic node `. **Target node side** : * **Default side** : selected :ref:`right side ` point in the target :ref:`traffic node `. * **External side** : selected :ref:`left side ` point in the target :ref:`traffic node `. **Single connect setting** : * **Connect same index** : target index will be the same as source index. * **Source lane index** : source lane index. * **Target lane index** : connected lane index. Buttons ~~~~~~~~~~~~ .. image:: /images/road/trafficNode/pathCreator/Buttons.png | **Swap nodes** : swap source and target node. | **Create** : create available paths. .. _pathCreatorExamples: Examples ------------ .. image:: /images/road/trafficNode/pathCreator/Example1.png `Connection available example (allow override path enabled, show overriden path disabled).` .. image:: /images/road/trafficNode/pathCreator/Example2.png `Connection available example (allow override path enabled, show overriden path enabled, paths already created for these nodes & overwritable).` .. image:: /images/road/trafficNode/pathCreator/Example3.png `Connection forbidden example (path already created for these nodes & can't be overwritten).`