getTexture.lua 508 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get one of the textures in the Model.',
  3. description = 'Returns one of the textures in the Model.',
  4. arguments = {
  5. index = {
  6. type = 'number',
  7. description = 'The index of the texture to get.'
  8. }
  9. },
  10. returns = {
  11. texture = {
  12. type = 'Texture',
  13. description = 'The texture.'
  14. }
  15. },
  16. variants = {
  17. {
  18. arguments = { 'index' },
  19. returns = { 'texture' }
  20. }
  21. },
  22. related = {
  23. 'Model:getTextureCount',
  24. 'Model:getMaterial'
  25. }
  26. }