Click or drag to resize

VisualServerTextureSetData Method

Sets the texture's image data. If it's a CubeMap, it sets the image data at a cube side.

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

Parameters

texture
Type: GodotRID

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

image
Type: GodotImage

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

layer (Optional)
Type: SystemInt32

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

See Also