Click or drag to resize

VisualServerInstanceSetUseLightmap Method

Sets the lightmap to use with this instance.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void InstanceSetUseLightmap(
	RID instance,
	RID lightmapInstance,
	RID lightmap,
	int lightmapSlice = -1,
	Rect2? lightmapUvRect = null
)

Parameters

instance
Type: GodotRID

[Missing <param name="instance"/> documentation for "M:Godot.VisualServer.InstanceSetUseLightmap(Godot.RID,Godot.RID,Godot.RID,System.Int32,System.Nullable{Godot.Rect2})"]

lightmapInstance
Type: GodotRID

[Missing <param name="lightmapInstance"/> documentation for "M:Godot.VisualServer.InstanceSetUseLightmap(Godot.RID,Godot.RID,Godot.RID,System.Int32,System.Nullable{Godot.Rect2})"]

lightmap
Type: GodotRID

[Missing <param name="lightmap"/> documentation for "M:Godot.VisualServer.InstanceSetUseLightmap(Godot.RID,Godot.RID,Godot.RID,System.Int32,System.Nullable{Godot.Rect2})"]

lightmapSlice (Optional)
Type: SystemInt32

[Missing <param name="lightmapSlice"/> documentation for "M:Godot.VisualServer.InstanceSetUseLightmap(Godot.RID,Godot.RID,Godot.RID,System.Int32,System.Nullable{Godot.Rect2})"]

lightmapUvRect (Optional)
Type: SystemNullableRect2
If the parameter is null, then the default value is new Rect2(0, 0, 1, 1)
See Also