Click or drag to resize

VisualServerTextureGetData Method

Returns a copy of a texture's image unless it's a CubeMap, in which case it returns the RID of the image at one of the cubes sides.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Image TextureGetData(
	RID texture,
	int cubeSide = 0
)

Parameters

texture
Type: GodotRID

[Missing <param name="texture"/> documentation for "M:Godot.VisualServer.TextureGetData(Godot.RID,System.Int32)"]

cubeSide (Optional)
Type: SystemInt32

[Missing <param name="cubeSide"/> documentation for "M:Godot.VisualServer.TextureGetData(Godot.RID,System.Int32)"]

Return Value

Type: Image

[Missing <returns> documentation for "M:Godot.VisualServer.TextureGetData(Godot.RID,System.Int32)"]

See Also