mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 19:29:06 +00:00
34 lines
1.2 KiB
ReStructuredText
34 lines
1.2 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the ViewportTexture.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_ViewportTexture:
|
|
|
|
ViewportTexture
|
|
===============
|
|
|
|
**Inherits:** :ref:`Texture<class_texture>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Texture which displays the content of a :ref:`Viewport<class_viewport>`.
|
|
|
|
Member Variables
|
|
----------------
|
|
|
|
.. _class_ViewportTexture_viewport_path:
|
|
|
|
- :ref:`NodePath<class_nodepath>` **viewport_path** - The path to the :ref:`Viewport<class_viewport>` node to display. This is relative to the scene root, not to the node which uses the texture.
|
|
|
|
|
|
Description
|
|
-----------
|
|
|
|
Displays the content of a :ref:`Viewport<class_viewport>` node as a dynamic :ref:`Texture<class_texture>`. This can be used to mix controls, 2D, and 3D elements in the same scene.
|
|
|
|
To create a ViewportTexture in code, use the :ref:`Viewport.get_texture<class_Viewport_get_texture>` method on the target viewport.
|
|
|