Shared, lightweight SceneView picking helpers for TrackFlowSpline polylines. Screen-space nearest-sample selection. Quiet failure if polylines are not available.
More...
|
| static bool | TryPickNearestPolylineSample (TrackFlowSpline spline, Vector2 mouseGui, float pixelRadius, out int sampleIndex, out Vector3 samplePosWorld, out float pixelDistSqr) |
| | Pick nearest polyline sample (spline.CurrentPolyline.P) to mouse GUI position. Returns false if no polyline or nearest is outside pixelRadius.
|
| static bool | TrySnapToKnot (Ray ray, TrackFlowSpline spline, bool isActive, out SnapResult snap) |
Shared, lightweight SceneView picking helpers for TrackFlowSpline polylines. Screen-space nearest-sample selection. Quiet failure if polylines are not available.
◆ SnapKind
| Enumerator |
|---|
| None | |
| Knot | |
| Segment | |
| Collider | |
| ViewPlane | |
◆ DistancePointToRaySq()
| float TrackFlowPro.Editor.TrackFlowScreenPickUtil.DistancePointToRaySq |
( |
Vector3 | p, |
|
|
Ray | ray ) |
|
staticprivate |
◆ TryPickNearestPolylineSample()
| bool TrackFlowPro.Editor.TrackFlowScreenPickUtil.TryPickNearestPolylineSample |
( |
TrackFlowSpline | spline, |
|
|
Vector2 | mouseGui, |
|
|
float | pixelRadius, |
|
|
out int | sampleIndex, |
|
|
out Vector3 | samplePosWorld, |
|
|
out float | pixelDistSqr ) |
|
static |
Pick nearest polyline sample (spline.CurrentPolyline.P) to mouse GUI position. Returns false if no polyline or nearest is outside pixelRadius.
◆ TrySnapToKnot()
| bool TrackFlowPro.Editor.TrackFlowScreenPickUtil.TrySnapToKnot |
( |
Ray | ray, |
|
|
TrackFlowSpline | spline, |
|
|
bool | isActive, |
|
|
out SnapResult | snap ) |
|
static |
◆ DefaultPixelRadius
| const float TrackFlowPro.Editor.TrackFlowScreenPickUtil.DefaultPixelRadius = 18f |
|
static |
◆ s_KnotSnapScoreMax
| float TrackFlowPro.Editor.TrackFlowScreenPickUtil.s_KnotSnapScoreMax = 0.16f |
|
staticprivate |
The documentation for this class was generated from the following file: