Click or drag to resize

MeshLibraryGetItemPreview Method

When running in the editor, returns a generated item preview (a 3D rendering in isometric perspective). When used in a running project, returns the manually-defined item preview which can be set using SetItemPreview(Int32, Texture). Returns an empty Texture if no preview was manually set in a running project.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Texture GetItemPreview(
	int id
)

Parameters

id
Type: SystemInt32

[Missing <param name="id"/> documentation for "M:Godot.MeshLibrary.GetItemPreview(System.Int32)"]

Return Value

Type: Texture

[Missing <returns> documentation for "M:Godot.MeshLibrary.GetItemPreview(System.Int32)"]

See Also