SubViewportContainer
Hereda: Container < Control < CanvasItem < Node < Object
Un contenedor utilizado para mostrar el contenido de un SubViewport.
Descripción
A container that displays the contents of underlying SubViewport child nodes. It uses the combined size of the SubViewports as minimum size, unless stretch is enabled.
Note: Changing a SubViewportContainer's Control.scale will cause its contents to appear distorted. To change its visual size without causing distortion, adjust the node's margins instead (if it's not already in a container).
Note: The SubViewportContainer forwards mouse-enter and mouse-exit notifications to its sub-viewports.
Propiedades
focus_mode |
|
|
|
||
|
||
|
Métodos
_propagate_input_event(event: InputEvent) virtual const |
Descripciones de Propiedades
Configura si el SubViewportContainer o alternativamente los nodos Control de sus hijos SubViewport deben estar disponibles como objetivos de funcionalidades relacionadas con el ratón, como identificar el objetivo de soltar en operaciones de arrastrar y soltar o la forma del cursor del nodo Control sobre el que se pasa el ratón.
Si es false, los nodos Control dentro de sus hijos SubViewport se consideran como objetivos.
Si es true, el propio SubViewportContainer se considerará como un objetivo.
Si es true, el sub-viewport se redimensionará automáticamente al tamaño del control.
Nota: Si es true, esto prohibirá cambiar SubViewport.size de sus hijos manualmente.
Divides the sub-viewport's effective resolution by this value while preserving its scale. This can be used to speed up rendering.
For example, a 1280×720 sub-viewport with stretch_shrink set to 2 will be rendered at 640×360 while occupying the same size in the container.
Note: stretch must be true for this property to work.
Descripciones de Métodos
bool _propagate_input_event(event: InputEvent) virtual const 🔗
Experimental: Este método podría ser modificado o eliminado en versiones futuras.
Método virtual para ser implementado por el usuario. Si devuelve true, el event se propaga a los hijos SubViewport. La propagación no ocurre si devuelve false. Si la función no está implementada, todos los eventos se propagan a los SubViewports.