Draw XXL documentation


Draw Basics.PointLocalList(...);

Draw many points in local space at once by supplying a list of Vector3 positions.

Green parameters are required. Yellow parameters are optional, but have to be supplied in order.


static void DrawBasics.PointLocalList(...);

Code snippet names: drawPointLocalList_transformAsParent and drawPointLocalList_transformAsParent_func.

Parameters:
Type Parameter Name Description
List localPoints The points in local space to be drawn as list of Vector3.
Transform parentTransform The transform that defines the local space.
Color color
float sizeOfMarkingCross_global
float markingCrossLinesWidth
bool drawCoordsAsText
bool additionallyDrawGlobalCoords
bool drawLocalOrigin
bool hideZDir
float durationInSec The duration in seconds how long the drawn thing stays visible. The default value of 0 means that it stays only during the current Update frame. Instead of using this parameter you can also overwrite him with a global setting so you don't always have to supply all other preceding function parameters till you reach this late parameter.
bool hiddenByNearerObjects This specifies if the drawn thing will get hidden if other geometry is in front of it or if it shines through. It is the same as the depthTest parameter of Unitys Debug.DrawLine(). Not all drawing methods support toggling this in the same way. For some methods the lines are fully hidden, for others the hidden lines shimmer through. Instead of using this parameter you can also overwrite him with a global setting so you don't always have to supply all other preceding function parameters till you reach this late parameter.


static void DrawBasics.PointLocalList(...);

Code snippet names: drawPointLocalList_vecAsParent and drawPointLocalList_vecAsParent_func.

Parameters:
Type Parameter Name Description
List localPoints The points in local space to be drawn as list of Vector3.
Vector3 parentPositionGlobal A position that marks the origin of the local space in which the local positions get highlighted.
Quaternion parentRotationGlobal The rotation of the local space in which the local positions get highlighted.
Vector3 parentScaleGlobal The scale of the local space in which the local positions get highlighted.
Color color
float sizeOfMarkingCross_global
float markingCrossLinesWidth
bool drawCoordsAsText
bool additionallyDrawGlobalCoords
bool drawLocalOrigin
bool hideZDir
float durationInSec The duration in seconds how long the drawn thing stays visible. The default value of 0 means that it stays only during the current Update frame. Instead of using this parameter you can also overwrite him with a global setting so you don't always have to supply all other preceding function parameters till you reach this late parameter.
bool hiddenByNearerObjects This specifies if the drawn thing will get hidden if other geometry is in front of it or if it shines through. It is the same as the depthTest parameter of Unitys Debug.DrawLine(). Not all drawing methods support toggling this in the same way. For some methods the lines are fully hidden, for others the hidden lines shimmer through. Instead of using this parameter you can also overwrite him with a global setting so you don't always have to supply all other preceding function parameters till you reach this late parameter.