Line gizmos fail when MRTK not configured.
Does this affect the legacy HoloToolkit (master) or the Mixed Reality Toolkit (mrtk_release)? Mixed Reality Toolkit
Describe the bug Clicking and dragging on points in any of the following classes sends the point into the far background, making it impossible to edit them by hand: SimpleLineDataProvider ParabolaConstrainedLineDataProvider SplineDataProvider
To Reproduce
- Create new scene.
- Add 'SplineDataProvider' component to empty GameObject.
- Attempt to modify spline by click-dragging points.
- Observe points ending up in unexpected positions.
Expected behavior Click-dragging should move points into a predictable, intuitive position.
I believe in HTK, the drag points were in screen space. Are they not in vNext?
Is it all line editors, or just the spline?
So I opened up and tried to edit the line gallery and it seemed to work fine. I wonder that the difference is.
After pressing "Configure" to setup a scene with the MixedRealityManager, everything seems to fix this. Might also be related.
Okay just to clarify I can only repro with these three classes:
ParabolicConstrainedLineDataProvider
SimpleLineDataProvider
SplineDataProvider
Might have something to do with the set point method using the CameraCache.Main.transform point transformation methods.
Editor controls should rely on viewport cameras exclusively since there's no guarantee that a MainCamera will even exist in a given scene.