You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove allocs from idle and selecting ray interactor (#11344)
* Line visual now only applies compression effect when the ray interactor has hit an object
* adjusted gradient compress algorithm to be more compact and efficient
* added deadzone parameter to the input simulator so axis values would reach 0 or 1
* reorganized line visuals script, made adjustments to minimize color utilities calls when not needed
* adjusted prefab values to be less aggressive with the compression effect
* removing unused perf marker
Co-authored-by: Finn Sinclair <finnnorth@gmail.com>
Copy file name to clipboardExpand all lines: com.microsoft.mrtk.input/Interactors/InteractorVisuals/MRTKLineVisual.cs
+47-34Lines changed: 47 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -70,12 +70,12 @@ public Gradient SelectActiveColorGradient
70
70
}
71
71
72
72
[SerializeField]
73
-
[Tooltip("Controls the length of the visual that the gradient is applied relative to the ray interactor's max raycast distance")]
73
+
[Tooltip("On hit, the gradient will be applied evenly along the line renderer until it's total length is longer than this value multiplied by the ray interactor's max raycast distance")]
74
74
[Range(0.01f,1)]
75
-
floatmaxGradientLength=0.1f;
75
+
floatmaxGradientLength=0.3f;
76
76
77
77
/// <summary>
78
-
/// Controls the length of the visual that the gradient is applied relative to the ray interactor's max raycast distance
78
+
/// On hit, the gradient will be applied evenly along the line renderer until it's total length is longer than this value multiplied by the ray interactor's max raycast distance.
0 commit comments