EasyRoads3D

How To Use

  1. Buy & download, import the following asset plugin:

  2. Open your scene.

  3. Create a new game object & add ER3D_RSGenerator component.

  4. In the Config field select default config or duplicate exist sample config.

  5. Set Min road length to the desired value to ignore short roads.

  6. Select any 2-lane road in the scene.

    _images/easyroads1.png
  7. Press left-arrow button in the inspector.

    _images/easyroads2.png
  8. Check Road width & set lane width in the ER3D_RSGenerator accordingly.

    _images/easyroads3.png
  9. For example, 8 road width & 2 lanes => lane width is 4.

    _images/easyroads3_1.png
  10. Set Ignore road names to ignore roads that aren’t intended for traffic. [optional step]

  11. Set Speed limits for crossings. [optional step]

    _images/easyroads3_2.png
  12. Add Custom Datas if you want to override the settings for certain straight roads with specific text. [optional step]

    _images/easyroads3_3.png
  13. If your scene have custom road prefabs with ER Crossing Prefabs component:
    1. Create the Road segment where your custom prefab road is located.

      _images/easyroads4.png

      Example

    2. Add the RSPrefabBinding component to the created Road segment.

    3. In the RSPrefabBinding component, enter ERCrossingPrefabs text into the Script binding type field [one-time step].

    4. Press the Find button.

    5. Press + button on scene.

      _images/easyroads5.png

      Example

    6. Make sure the Selected scene object field have the correct scene road.

      _images/easyroads6.png
    7. Press the Bind button.

      _images/easyroads7.png
    8. Save created Road segment to prefabs.

    9. Add created prefab to the ER3D_RSGenerator into the Custom prefabs field.

      _images/easyroads8.png
  14. Press the Generate button.

  15. Open the Generated data tab.

    _images/easyroads9.png
  16. Check the generated data for errors & dead ends.

  17. If you want to customize road & exclude the desired road from being deleted for the new generation:
    1. Select the desired Road segment on the scene.

    2. In the RSSceneBinding component, tick on the Lock auto recreation option.

    3. If you now regenerate roads with ER3D_RSGenerator, this road will be saved for destruction.