mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2026-01-04 10:09:56 +03:00
Currently including `zh_CN` and `es` which both have very high completion ratios. Others will be added once they reach a significant percentage too. These RST files will be used by godot-docs in place of its `classes` folder after we sync with https://github.com/godotengine/godot-docs/pull/5458. The update workflow is manual for now (example for `zh_CN`): - Build `godotengine/godot` in the branch we currently track (now `3.x`) - Run `godot --doctool -l zh_CN` - Run `cd doc && make rst LANGARG=zh_CN` - Copy `doc/_build/rst/*` to `classes/zh_CN/` here - Make sure to have `classes/zh_CN/index.rst` copied from `docs/classes`
65 lines
3.5 KiB
ReStructuredText
65 lines
3.5 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. Generated automatically by doc/tools/make_rst.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>`
|
|
|
|
Textura que muestra el contenido de un :ref:`Viewport<class_Viewport>`.
|
|
|
|
Descripción
|
|
----------------------
|
|
|
|
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_method_get_texture>` method on the target viewport.
|
|
|
|
Tutoriales
|
|
--------------------
|
|
|
|
- `GUI in 3D Demo <https://godotengine.org/asset-library/asset/127>`__
|
|
|
|
- `3D in 2D Demo <https://godotengine.org/asset-library/asset/128>`__
|
|
|
|
- `2D in 3D Demo <https://godotengine.org/asset-library/asset/129>`__
|
|
|
|
- `3D Viewport Scaling Demo <https://godotengine.org/asset-library/asset/586>`__
|
|
|
|
Propiedades
|
|
----------------------
|
|
|
|
+---------------------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------+
|
|
| :ref:`int<class_int>` | flags | ``0`` (overrides :ref:`Texture<class_Texture_property_flags>`) |
|
|
+---------------------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------+
|
|
| :ref:`bool<class_bool>` | resource_local_to_scene | ``true`` (overrides :ref:`Resource<class_Resource_property_resource_local_to_scene>`) |
|
|
+---------------------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------+
|
|
| :ref:`NodePath<class_NodePath>` | :ref:`viewport_path<class_ViewportTexture_property_viewport_path>` | ``NodePath("")`` |
|
|
+---------------------------------+--------------------------------------------------------------------+---------------------------------------------------------------------------------------+
|
|
|
|
Descripciones de Propiedades
|
|
--------------------------------------------------------
|
|
|
|
.. _class_ViewportTexture_property_viewport_path:
|
|
|
|
- :ref:`NodePath<class_NodePath>` **viewport_path**
|
|
|
|
+-----------+-----------------------------------+
|
|
| *Default* | ``NodePath("")`` |
|
|
+-----------+-----------------------------------+
|
|
| *Setter* | set_viewport_path_in_scene(value) |
|
|
+-----------+-----------------------------------+
|
|
| *Getter* | get_viewport_path_in_scene() |
|
|
+-----------+-----------------------------------+
|
|
|
|
La ruta al nodo :ref:`Viewport<class_Viewport>` para visualizar. Es relativa a la raíz de la escena, no al nodo que usa la textura.
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
|
|
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
|
|
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|