Path generators are used through graph and chart in order to create chart items. These is a quick reference to their features. Path generator are used mainly in order to draw lines in the 3D graph and radar charts. However they are also used with the 3D pie and bar chart.
Where can path generator be found
Path generators are required when specifying a prefab to some 3D charts. You can find the through the prefabs folder , and especially in Prefabs/3D/Graph/Lines. For an overview of all prefabs , see How to use prefabs with Graph and Chart
Types of path generators
1. BoxPathGenerator
This type is used in order to create a boxed 3D line path , like in the following image:
It can be configured in a few ways :
- Joint Smoothing is the amount of smoothing applied to the segment connections in the path. The higher this value , the smoother the connection. The lower this value , the less vertices used by the path
- Joint Size is the size of segment connections, specified in unity world space units. The higher this number the larger are the segment connections
- Height Ratio is the height to width ratio of the box. Set it to 1 to have a perfect square . Set it 0 to have a completely flat rectangle
2. CylinderPathGenerator
Creates a cylinder 3D line path
You can configure it using the inspector:
- Joint Smoothing is the amount of smoothing applied to the segment connections in the path. The higher this value , the smoother the segment connection. The lower this value , the less vertices used by the path
- Joint Size is the size of segment connections, specified in unity world space units. The higher this number is the larger the segment connections will be
- Circle Vertices is the amount of vertices making each circle in the cylinder. The higher this number the smoother the cylinder. the lower this value the less vertices used with the path mesh
- Height ratio can be used in order to create elliptical cylinders. Set it to 1 for a perfect circle
3. LineRendererPathGenerator
creates a line path using unity’s line renderer. It has no configurable properties.
4. CustomPathGenerator
creates a custom chart item such as a bar or a pie item. See Prefab smoothing