3D Road Drawing
OSMX
$0.0
$4.99
100%OFF
(no ratings)
Date |
Price |
---|---|
日期和时间 |
价钱($) |
04/19(2024) |
14.99 |
04/26(2024) |
9.99 |
06/02(2024) |
5.99 |
08/10(2024) |
4.99 |
11/03(2024) |
0.0 |
11/25(2024) |
0.0 |
Jump AssetStore
Draw road indicators. It allows for the creation, cancellation, and management of paths between various points in the game world.The Road Indicator package provides functionality for managing indicator paths in Unity. It includes a RoadIndicatorManager class responsible for setting up and managing the indicator paths. Key features include:Indicator Setup: The package allows setting indicator paths from the player's current position to designated destinations in the scene.Path Visualization: It visualizes the calculated path using a LineRenderer, enabling users to see the path from start to finish.Destination Management: Users can set destination points and customize parameters such as path width and destination point radius.Path Control: The package provides methods for setting and canceling indicator paths, giving users control over path creation and deletion.UsageDrag and Drop: Road Indicator in your scene.Attach Script: Player Indicator: Assign a PlayerIndicator to the player GameObject.Create Location Indicators: Create an object or just assign a LocationIndicator to the point you want the player to go.Customize each LocationIndicator with a unique ID.If you have more than one location that represents one location such as multiple marketplaces make duplicate true so that when trying to set path it will select the nearest one to the PlayerIndicator.Set PathCall the SetIndicator(string id) method with the desired location ID that is assigned in LocationIndicator to create a path from the player's current position.Cancel Indicator Path: Call the CancelIndicator(string id) method to cancel the path to a specific destination.Example: RoadIndicatorManager.CancelIndicator("destination_id");EventsOnPathCompleted you can subscribe to OnPathCompleted to fire any custom scripts when the player reaches his destination.OnPathCanceled you can subscribe to OnPathCanceled to fire any custom scripts when the player cancels his destination.