diff --git a/Runtime/Scripts/Utilities/UILineConnector.cs b/Runtime/Scripts/Utilities/UILineConnector.cs index 7423d53e..77bc63ee 100644 --- a/Runtime/Scripts/Utilities/UILineConnector.cs +++ b/Runtime/Scripts/Utilities/UILineConnector.cs @@ -54,7 +54,12 @@ or the world position of UILineRenderer moves */ bool updateLine = lrWorldPos != previousLrPos; updateLine = rt.lossyScale != previousGlobalScale; - if (!updateLine && previousPositions != null && previousPositions.Length == transforms.Length) + if (!updateLine) + { + updateLine = previousPositions.Length != transforms.Length; + } + + if (!updateLine && previousPositions != null) { for (int i = 0; i < transforms.Length; i++) {