Struct LabelAlignment

Public

Specifies text alignment relative to an anchor point.

Draw.Label2D(transform.position, "Hello World", 14, LabelAlignment.TopCenter);
// Draw the label 20 pixels below the object
Draw.Label2D(transform.position, "Hello World", 14, LabelAlignment.TopCenter.withPixelOffset(0, -20));

Public Methods

Moves the text by the specified amount of pixels in screen-space.

Public Variables

pixelOffset

How much to move the text in screen-space.

Public
relativePivot

Where on the text's bounding box to anchor the text.

Public

Public Static Variables

BottomCenter
Public Static Readonly
BottomLeft
Public Static Readonly
BottomRight
Public Static Readonly
Center
Public Static Readonly
MiddleLeft
Public Static Readonly
MiddleRight
Public Static Readonly
TopCenter
Public Static Readonly
TopLeft
Public Static Readonly
TopRight
Public Static Readonly