Goodluck / API Reference

Draw

The Draw component allows drawing 2D primitives like text and rectangles.

When used with Transform, the 2D primitives are drawn in the 3D world space at the position of the entity, always facing the camera.

When used with LocalTransform2D, they are drawn in the 2D world space at the position of the entity.