Texture for 2D and 3D. A texture works by registering an image in the video hardware, which then can be used in 3D models or 2D [Sprite2D] or GUI [Control]. Textures are often created by loading them from a file. See [method @GDScript.load]. [Texture2D] is a base for other resources. It cannot be used directly. [b]Note:[/b] The maximum texture size is 16384×16384 pixels due to graphics hardware limitations. Larger textures may fail to import. Draws the texture using a [CanvasItem] with the [RenderingServer] API at the specified [code]position[/code]. Draws the texture using a [CanvasItem] with the [RenderingServer] API. Draws a part of the texture using a [CanvasItem] with the [RenderingServer] API. Returns the texture height. Returns an [Image] that is a copy of data from this [Texture2D] (a new [Image] is created each time). [Image]s can be accessed and manipulated directly. [b]Note:[/b] This will fetch the texture data from the GPU, which might cause performance problems when overused. Returns the texture size. Returns the texture width. Returns [code]true[/code] if this [Texture2D] has an alpha channel.