| 12345678910111213141516171819202122232425262728293031323334 |
- return {
- summary = 'Get a Material from the Model.',
- description = 'Returns a `Material` loaded from the Model.',
- arguments = {
- name = {
- type = 'string',
- description = 'The name of the Material to return.'
- },
- index = {
- type = 'number',
- description = 'The index of the Material to return.'
- }
- },
- returns = {
- material = {
- type = 'Material',
- description = 'The material.'
- }
- },
- variants = {
- {
- arguments = { 'name' },
- returns = { 'material' }
- },
- {
- arguments = { 'index' },
- returns = { 'material' }
- }
- },
- related = {
- 'Model:getMaterialCount',
- 'Model:getMaterialName'
- }
- }
|