Announcement

Collapse
No announcement yet.

[Request] Give Canvas the ability to draw text/image from centre, not top-left

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Request] Give Canvas the ability to draw text/image from centre, not top-left

    Hey guys,

    If you're using Canvas in an AHUD object, for example, to draw an image/texture, text, or a material, you'll undoubtedly sometimes want it to be drawn centered around a given screen position. This would make it much easier - at the moment I have to offset the position given to the draw function by half the size of the original texture * scale. It'd be great if they had an input bool to control if the given drawn item should be drawn with the position argument as its centre.

    Let me know what you think.
Working...
X