alignment

Configures how the gui texture should be aligned.


fun alignment(offsetX: Int, offsetY: Int)

Configures a custom alignment with the given offsetX and offsetY.


fun alignment(alignment: (Int, Int) -> Vector2ic)

Configures a dynamic alignment based on the alignment function, which receives (width, height) of the gui texture and returns the (x, y) offset.