HandleUtility

  1. Static Variables
  2. acceleration Get standard acceleration for dragging values (Read Only).
  3. niceMouseDelta Get nice mouse delta to use for dragging a float value (Read Only).
  4. niceMouseDeltaZoom Get nice mouse delta to use for zooming (Read Only).
  1. Static Functions
  2. AddControl Record a distance measurement from a handle.
  3. AddDefaultControl Add the ID for a default control. This will be picked if nothing else is.
  4. CalcLineTranslation Map a mouse drag onto a movement along a line in 3D space.
  5. ClosestPointToArc Get the point on an arc (in 3D space) which is closest to the current mouse position.
  6. ClosestPointToDisc Get the point on an disc (in 3D space) which is closest to the current mouse position.
  7. ClosestPointToPolyLine Get the point on a polyline (in 3D space) which is closest to the current mouse position.
  8. DistancePointBezier Calculate distance between a point and a Bezier curve.
  9. DistancePointLine Calculate distance between a point and a line.
  10. DistancePointToLine Distance from a point p in 2d to a line defined by two points a and b.
  11. DistancePointToLineSegment Distance from a point p in 2d to a line segment defined by two points a and b.
  12. DistanceToArc Pixel distance from mouse pointer to a 3D section of a disc.
  13. DistanceToCircle Pixel distance from mouse pointer to camera facing circle.
  14. DistanceToDisc Pixel distance from mouse pointer to a 3D disc.
  15. DistanceToLine Pixel distance from mouse pointer to line.
  16. DistanceToPolyLine Pixel distance from mouse pointer to a polyline.
  17. DistanceToRectangle Pixel distance from mouse pointer to a rectangle on screen.
  18. GetHandleSize Get world space size of a manipulator handle at given position.
  19. ##GUIPointToWorldRay Convert 2D GUI position to a world space ray. Ray ray = HandleUtilty.GUIPointToWolrdRay(Event.current.mousePosition);
  20. PickGameObject Pick game object closest to specified position.
  21. PickRectObjects Pick GameObjects that lie within a specified screen rectangle.
  22. PointOnLineParameter Returns the parameter for the projection of the point on the given line.
  23. PopCamera Retrieve all camera settings.
  24. ProjectPointLine Project point onto a line.
  25. PushCamera Store all camera settings.
  26. RaySnap Casts ray against the scene and report if an object lies in its path.
  27. Repaint Repaint the current view.
  28. WorldPointToSizedRect Calculate a rectangle to display a 2D GUI element near a projected point in 3D space.
  29. WorldToGUIPoint Convert world space point to a 2D GUI position.