Returns corner coordinates for scaling or cropping the texture image. See Texture:SetTexCoord() example for details.

Signature:

ULx, ULy, LLx, LLy, URx, URy, LRx, LRy = Texture:GetTexCoord()

Returns:

  • ULx - Upper left corner X position, as a fraction of the image's width from the left (number)
  • ULy - Upper left corner Y position, as a fraction of the image's height from the top (number)
  • LLx - Lower left corner X position, as a fraction of the image's width from the left (number)
  • LLy - Lower left corner Y position, as a fraction of the image's height from the top (number)
  • URx - Upper right corner X position, as a fraction of the image's width from the left (number)
  • URy - Upper right corner Y position, as a fraction of the image's height from the top (number)
  • LRx - Lower right corner X position, as a fraction of the image's width from the left (number)
  • LRy - Lower right corner Y position, as a fraction of the image's height from the top (number)