getDimensions.lua 684 B

12345678910111213141516171819202122232425262728293031
  1. return {
  2. tag = 'texture-metadata',
  3. summary = 'Get the dimensions of the Texture.',
  4. description = 'Returns the width, height, and depth of the Texture.',
  5. arguments = {},
  6. returns = {
  7. width = {
  8. type = 'number',
  9. description = 'The width of the Texture.'
  10. },
  11. height = {
  12. type = 'number',
  13. description = 'The height of the Texture.'
  14. },
  15. layers = {
  16. type = 'number',
  17. description = 'The number of layers in the Texture.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = {},
  23. returns = { 'width', 'height', 'layers' }
  24. }
  25. },
  26. related = {
  27. 'Texture:getWidth',
  28. 'Texture:getHeight',
  29. 'Texture:getLayerCount'
  30. }
  31. }