29 protected int LineCastResolution = 25;
35 [Tooltip(
"If no line renderers are specified, this array will be auto-populated on startup.")]
43 public bool InteractionEnabled
47 #if UNITY_WSA && UNITY_2017_2_OR_NEWER 48 return ControllerInfo != null;
59 LineBase = GetComponent<LineBase>();
60 DistorterGravity = GetComponent<DistorterGravity>();
62 if (LineRenderers == null || LineRenderers.Length == 0)
67 LineBase.enabled =
false;
72 if (LineBase == null) {
return; }
74 Gradient lineColor = LineColorNoTarget;
76 if (InteractionEnabled)
78 LineBase.enabled =
true;
83 lineColor = LineColorValid;
93 lineColor = LineColorSelected;
98 LineBase.enabled =
false;
101 for (
int i = 0; i < LineRenderers.Length; i++)