Creates a sub-view into the screen. A Viewport creates a different view into the screen, or a sub-view inside another viewport. Children 2D Nodes will display on it, and children Camera 3D nodes will render on it too. Optionally, a viewport can have its own 2D or 3D world, so they don't share what they draw with other viewports. If a viewport is a child of a [Control], it will automatically take up its same rect and position, otherwise they must be set manually. Viewports can also choose to be audio listeners, so they generate positional audio depending on a 2D or 3D camera child of it. Also, viewports can be assigned to different screens in case the devices have multiple screens. Finally, viewports can also behave as render targets, in which case they will not be visible unless the associated texture is used to draw. http://docs.godotengine.org/en/3.0/tutorials/2d/2d_transforms.html http://docs.godotengine.org/en/3.0/tutorials/viewports/index.html Return the 3D world of the viewport, or if no such present, the one of the parent viewport. Return the 2D world of the viewport. Return the active 3D camera. Get the total transform of the viewport. Get the mouse position, relative to the viewport. Get the specific information about the viewport from rendering pipeline. Get the size override set with [method set_size_override]. Get the viewport's texture, for use with various objects that you want to texture with the viewport. Get the viewport RID from the [VisualServer]. Return the final, visible rect in global screen coordinates. Returns the drag data from the GUI, that was previously returned by [method Control.get_drag_data]. Returns whether there are shown modals on-screen. Get the enabled status of the size override set with [method set_size_override]. Get the enabled status of the size stretch override set with [method set_size_override_stretch]. Set the size override of the viewport. If the enable parameter is true, it would use the override, otherwise it would use the default size. If the size parameter is equal to [code](-1, -1)[/code], it won't update the size. Set whether the size override affects stretch as well. Force update of the 2D and 3D worlds. Warp the mouse to a position, relative to the viewport. If [code]true[/code] the viewport will be used in AR/VR process. Default value: [code]false[/code]. If [code]true[/code] the viewport will process 2D audio streams. Default value: [code]false[/code]. If [code]true[/code] the viewport will process 3D audio streams. Default value: [code]false[/code]. The canvas transform of the viewport, useful for changing the on-screen positions of all child [CanvasItem]s. This is relative to the global canvas transform of the viewport. The overlay mode for test rendered geometry in debug purposes. Default value: [code]DEBUG_DRAW_DISABLED[/code]. If [code]true[/code] the viewport will disable 3D rendering. For actual disabling use [code]usage[/code]. Default value: [code]false[/code]. The global canvas transform of the viewport. The canvas transform is relative to this. If [code]true[/code] the viewport will not receive input event. Default value: [code]false[/code]. If [code]true[/code] the GUI controls on the viewport will lay pixel perfectly. Default value: [code]true[/code]. If [code]true[/code] the viewport rendering will receive benefits from High Dynamic Range algorithm. Default value: [code]true[/code]. If [code]true[/code] the result after 3D rendering will not have a linear to sRGB color conversion applied. This is important when the viewport is used as a render target where the result is used as a texture on a 3D object rendered in another viewport. It is also important if the viewport is used to create data that is not color based (noise, heightmaps, pickmaps, etc.). Do not enable this when the viewport is used as a texture on a 2D object or if the viewport is your final output. The multisample anti-aliasing mode. Default value: [code]MSAA_DISABLED[/code]. If [code]true[/code] the viewport will use [World] defined in [code]world[/code] property. Default value: [code]false[/code]. If [code]true[/code] the objects rendered by viewport become subjects of mouse picking process. Default value: [code]false[/code]. The clear mode when viewport used as a render target. Default value: [code]CLEAR_MODE_ALWAYS[/code]. The update mode when viewport used as a render target. Default value: [code]UPDATE_WHEN_VISIBLE[/code]. If [code]true[/code] the result of rendering will be flipped vertically. Default value: [code]false[/code]. The subdivision amount of first quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_4[/code]. The subdivision amount of second quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_4[/code]. The subdivision amount of third quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_16[/code]. The subdivision amount of fourth quadrant on shadow atlas. Default value: [code]SHADOW_ATLAS_QUADRANT_SUBDIV_64[/code]. The resolution of shadow atlas. Both width and height is equal to one value. The width and height of viewport. If [code]true[/code] the viewport should render its background as transparent. Default value: [code]false[/code]. The rendering mode of viewport. Default value: [code]USAGE_3D[/code]. The custom [World] which can be used as 3D environment source. The custom [World2D] which can be used as 2D environment source. Emitted when the size of the viewport is changed, whether by [method set_size_override], resize of window, or some other means. Do not update the render target. Update the render target once, then switch to [code]UPDATE_DISABLED[/code] Update the render target only when it is visible. This is the default value. Always update the render target. Enum limiter. Do not use it directly. Amount of objects in frame. Amount of vertices in frame. Amount of material changes in frame. Amount of shader changes in frame. Amount of surface changes in frame. Amount of draw calls in frame. Enum limiter. Do not use it directly. Objects are displayed normally. Objects are displayed without light information. Objects are displayed in wireframe style. Multisample anti-aliasing mode disabled. This is the default value.