getTexture.lua 560 B

1234567891011121314151617181920212223242526
  1. return {
  2. summary = 'Get the texture for the layer.',
  3. description = [[
  4. Returns the texture for the layer. This is the texture that will be pasted onto the layer.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. texture = {
  9. type = 'Texture',
  10. description = 'The layer\'s texture.'
  11. }
  12. },
  13. variants = {
  14. {
  15. arguments = {},
  16. returns = { 'texture' }
  17. }
  18. },
  19. notes = [[
  20. This function may return a different `Texture` object each frame. The return value should not
  21. be cached.
  22. ]],
  23. related = {
  24. 'Layer:getPass'
  25. }
  26. }