Click or drag to resize

VisualServerMeshSurfaceUpdateRegion Method

Updates a specific region of a vertex buffer for the specified surface. Warning: this function alters the vertex buffer directly with no safety mechanisms, you can easily corrupt your mesh.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void MeshSurfaceUpdateRegion(
	RID mesh,
	int surface,
	int offset,
	byte[] data
)

Parameters

mesh
Type: GodotRID

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

surface
Type: SystemInt32

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

offset
Type: SystemInt32

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

data
Type: SystemByte

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

See Also