The 3D Road Drawing Package provides a comprehensive solution for managing indicator paths in Unity. Key features include:
- Setting indicator paths from the player's current position to designated destinations
- Visualizing the calculated path using a LineRenderer
- Managing destination points with customizable parameters
- Controlling path creation and deletion
This package is ideal for games that require players to navigate through a 3D world, such as racing games, adventure games, or open-world games.
To get started, simply drag and drop the Road Indicator into your scene, attach the PlayerIndicator script to the player GameObject, and create LocationIndicators at the desired points. You can then set paths using the SetIndicator method and cancel paths using the CancelIndicator method.
The package also includes event handlers for OnPathCompleted and OnPathCanceled, allowing you to fire custom scripts when the player reaches their destination or cancels their path.
With the 3D Road Drawing Package, you can create engaging and immersive game worlds with ease.
Usage:
- Drag and drop the Road Indicator into your scene.
- Attach the PlayerIndicator script to the player GameObject.
- Create LocationIndicators at the desired points and customize each with a unique ID.
- Set paths using the SetIndicator method with the desired location ID.
- Cancel paths using the CancelIndicator method.
- Subscribe to OnPathCompleted and OnPathCanceled events to fire custom scripts when the player reaches their destination or cancels their path.
Note: This package uses a LineRenderer to visualize the path, and supports customization of path width and destination point radius.





