getScalar.lua 463 B

123456789101112131415161718192021
  1. return {
  2. summary = 'Get a scalar property of the Material.',
  3. description = 'Returns a numeric property of a Material. Scalar properties default to 1.0.',
  4. arguments = {
  5. {
  6. name = 'scalarType',
  7. type = 'MaterialScalar',
  8. description = 'The type of property to get.'
  9. }
  10. },
  11. returns = {
  12. {
  13. name = 'x',
  14. type = 'number',
  15. description = 'The value of the property.'
  16. }
  17. },
  18. related = {
  19. 'MaterialScalar'
  20. }
  21. }