getParent.lua 556 B

12345678910111213141516171819202122232425
  1. return {
  2. tag = 'texture-view',
  3. summary = 'Get the parent of a texture view.',
  4. description = [[
  5. Returns the parent of a Texture view, which is the Texture that it references. Returns `nil`
  6. if the Texture is not a view.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. parent = {
  11. type = 'Texture',
  12. description = 'The parent of the texture, or `nil` if the texture is not a view.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'parent' }
  19. }
  20. },
  21. related = {
  22. 'Texture:isView',
  23. 'Texture:newView'
  24. }
  25. }