getWidth.lua 480 B

1234567891011121314151617181920212223
  1. return {
  2. tag = 'texture-metadata',
  3. summary = 'Get the width of the Texture, in pixels.',
  4. description = 'Returns the width of the Texture, in pixels.',
  5. arguments = {},
  6. returns = {
  7. width = {
  8. type = 'number',
  9. description = 'The width of the Texture, in pixels.'
  10. }
  11. },
  12. variants = {
  13. {
  14. arguments = {},
  15. returns = { 'width' }
  16. }
  17. },
  18. related = {
  19. 'Texture:getHeight',
  20. 'Texture:getLayerCount',
  21. 'Texture:getDimensions'
  22. }
  23. }