ViewportTexture.xml 880 B

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ViewportTexture" inherits="Texture" category="Core" version="3.1">
  3. <brief_description>
  4. Texture which displays the content of a [Viewport].
  5. </brief_description>
  6. <description>
  7. Displays the content of a [Viewport] node as a dynamic [Texture]. This can be used to mix controls, 2D, and 3D elements in the same scene.
  8. To create a ViewportTexture in code, use the [method Viewport.get_texture] method on the target viewport.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. </methods>
  16. <members>
  17. <member name="viewport_path" type="NodePath" setter="set_viewport_path_in_scene" getter="get_viewport_path_in_scene">
  18. The path to the [Viewport] node to display. This is relative to the scene root, not to the node which uses the texture.
  19. </member>
  20. </members>
  21. <constants>
  22. </constants>
  23. </class>