| 123456789101112131415161718192021222324252627282930313233343536373839 |
- return {
- summary = 'Get a Material from the Model.',
- description = [[
- Returns a Material loaded from the Model, by name or index.
- This includes `Texture` objects and other properties like colors, metalness/roughness, and more.
- ]],
- 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',
- 'Material'
- }
- }
|