Draw XXL documentation


ChartDrawing

This site describes the usage of charts. In code they are named "ChartDrawing". You can use the premade ones from the DrawCharts wrapper class or create your own.

Using charts is a two-step-process. Special mention goes to the CreateChartInspectionGameobject() function. This creates a GameObject and you can inspect the chart right in the Scene view with handles for zooming and scrolling.

Return Type Function
constructor ChartDrawing()
public void Draw()
public void DrawScreenspace()
public void AddValue()
public void AddXYValue()
public void AddValues_eachIndexIsALine()
public void Clear()
public ChartLine AddLine()
public ChartLine GetUsermadeLine()
public void CreateChartInspectionGameobject()
public void IncrementXPos()
public int GetManuallyIncrementedXPos()
public void ExportToCSVfile()

Type Setting
RotationSource rotationSource
Quaternion fixedRotation
Vector3 Position_worldspace
float Width_inWorldSpace
float Height_inWorldSpace
Vector2 position_inCamViewportspace
float Width_relToCamViewport
float Height_relToCamViewportHeight
ChartAxis xAxis
ChartAxis yAxis
string name
Color color
bool drawValuesOutsideOfChartArea
float LuminanceOfLineColors
DataComponentsThatAreDrawn dataComponentsThatAreDrawn