Hi, I’m having trouble getting the HandleUtility.DistancePointLine working correctly. I don’t know how to access from in game objects. I looked around and couldn’t find anything. Are there any other distance point to line functions? Do I need to use c# scripts?
It’s an Editor Utility, so you cannot access it in game. Only within the editor as a function.
However, if it helps the shortest distance from a point to a line is a line perpendicular to the targetted line that crosses through the point.
A quick Google search should be able to show a few lines of code to make your own.