com.unity.uiextensions
com.unity.uiextensions copied to clipboard
BUG: UILineConnector Doesn't update for added points
Unity UI Extensions Bug Report
Describe the bug
Building a UILineRenderer using the UILineConnector - adding new points to the line connector at runtime doesn't add these points to the line renderer. This is caused by the changes in #480
To Reproduce
- Create a UILineRenderer driven by a UILineConnector with appropriate transforms for points and curve handles.
- Have a method that inserts a new point on the line.
- Move the new point on the line, or merely observe the list of points in the UILineRenderer
- See that the new point added to the UILineConnector transforms is not added to the UILineRendererPoints
Expected behavior
Adding a point to the line connector adds it to the line renderer
Current behaviour on release branch.
Actual behavior
New point is not accounted for
Current behaviour on development branch