Customize Connection Line
Scripting customization of the connection line.
Last updated
Scripting customization of the connection line.
Last updated
The main connection line class is ConnectionLine
. This class supports all of Skill Web's connection features, such as working with shaders (highlighting and setting active state), and it controls the line renderer to properly connect the first and last line points to the appropriate skills.
When customizing the connection line, it's recommended to create a class that inherits from it. There's already an example of this used by the demo, called CurvedConnectionLine
.
Here were the steps used to create the CurvedConnectionLine
class:
Create a new class and inherit from ConnectionLine
.
Add custom variables. One for the control point (Vector3) and another for the number of line points (int).
Override the UpdateLine
method and add custom curve logic.
Below is the CurvedConnectionLine
class for reference.