getMaterialName.lua 512 B

1234567891011121314151617181920212223
  1. return {
  2. summary = 'Get the name of a material in the Model.',
  3. description = 'Returns the name of one of the materials in the Model.',
  4. arguments = {
  5. {
  6. name = 'index',
  7. type = 'number',
  8. description = 'The index of the material to get the name of.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'name',
  14. type = 'string',
  15. description = 'The name of the material.'
  16. }
  17. },
  18. related = {
  19. 'Model:getMaterialCount',
  20. 'Model:getAnimationName',
  21. 'Model:getNodeName'
  22. }
  23. }