So I have not used Unity much before, but just have some basic ideas of 3d structuring and building.
ask Overview:
We are developing a Unity-based system to visualize node connections and implement pathfinding using Dijkstra’s Algorithm. The nodes are manually connected using the NodeConnectionManager
script, where each connection between nodes has a defined cost. This script uses a LineRenderer
to display green lines for the static connections between nodes in both the scene and play modes. The goal is to integrate a pathfinding system that computes the shortest path between two nodes and highlights this path in red.
Problem:
We are facing issues where, after implementing the shortest path algorithm (using Dijkstra’s or A*), the red lines indicating the shortest path are not appearing in the Unity scene or play mode. Instead, only the green lines from the NodeConnectionManager
are visible. Despite properly calling the LineRenderer
to create red lines for the shortest path, these lines do not show up, and the existing connections remain unaffected. There is no visible indication of the red path being drawn, which prevents users from seeing the computed shortest path in the visual output.
We need assistance in making the shortest path appear with red lines while ensuring the green connections remain intact and visible as per the original setup.
As a new user I cannot upload the documents for code and model that I have created. Please reply here if you have a solution for this and I’ll share the contact or discord link.
Thank you.