setCanvas.lua 536 B

123456789101112131415161718192021
  1. return {
  2. tag = 'graphicsState',
  3. summary = 'Set the active Canvas.',
  4. description = [[
  5. Sets or disables the active Canvas object. If there is an active Canvas, things will be
  6. rendered to the Textures attached to that Canvas instead of to the headset.
  7. ]],
  8. arguments = {
  9. {
  10. name = 'canvas',
  11. type = 'Canvas',
  12. default = 'nil',
  13. description = 'The new active Canvas object, or `nil` to just render to the headset.'
  14. }
  15. },
  16. returns = {},
  17. related = {
  18. 'Canvas:renderTo',
  19. 'Canvas'
  20. }
  21. }