Function LabelAlignment.withPixelOffset
withPixelOffset
(float x, float y)
Moves the text by the specified amount of pixels in screen-space.
Public
LabelAlignment withPixelOffset (
float | x | |
float | y |
Moves the text by the specified amount of pixels in screen-space.
// Draw the label 20 pixels below the object
Draw.Label2D(transform.position, "Hello World", 14, LabelAlignment.TopCenter.withPixelOffset(0, -20));