getMaterial.lua 691 B

12345678910111213141516171819202122232425262728293031323334
  1. return {
  2. summary = 'Get a Material from the Model.',
  3. description = 'Returns a `Material` loaded from the Model.',
  4. arguments = {
  5. name = {
  6. type = 'string',
  7. description = 'The name of the Material to return.'
  8. },
  9. index = {
  10. type = 'number',
  11. description = 'The index of the Material to return.'
  12. }
  13. },
  14. returns = {
  15. material = {
  16. type = 'Material',
  17. description = 'The material.'
  18. }
  19. },
  20. variants = {
  21. {
  22. arguments = { 'name' },
  23. returns = { 'material' }
  24. },
  25. {
  26. arguments = { 'index' },
  27. returns = { 'material' }
  28. }
  29. },
  30. related = {
  31. 'Model:getMaterialCount',
  32. 'Model:getMaterialName'
  33. }
  34. }