I’m new to Unity and I’m looking to create a VR experience which involves a sort of mesh/web/network type visualisation kinda like the one in the images below:
I would Ideally like to have it setup in such a way that each endpoint will act like a button or link so when it is clicked on, something gets displayed. Like a photo for example or even a short video.
Any help would be greatly appreciated even if its just on how to make the mesh.
You can use LineRenderers to render the connections between points, and at points you can place triggers, then raycast from the camera using ScreenPointToRay to detect clicks.
To make the “mesh” I would probably randomly create Vector3s using a distribution that makes them more likely to be near a certain spot, then randomly connect nearby ones, you could brute force it and compare every point to every other point and randomly connected with a weight so that closer ones are more likely to be connected. Or you could sort them when you generate them to reduce those comparisons.