Click or drag to resize

EditorResourcePreviewQueueResourcePreview Method

Queue a resource file for preview (using a path). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.

Namespace:  Godot
Assembly:  GodotSharpEditor (in GodotSharpEditor.dll) Version: 1.0.0
Syntax
C#
public void QueueResourcePreview(
	string path,
	Object receiver,
	string receiverFunc,
	Object userdata
)

Parameters

path
Type: SystemString

[Missing <param name="path"/> documentation for "M:Godot.EditorResourcePreview.QueueResourcePreview(System.String,Godot.Object,System.String,System.Object)"]

receiver
Type: GodotObject

[Missing <param name="receiver"/> documentation for "M:Godot.EditorResourcePreview.QueueResourcePreview(System.String,Godot.Object,System.String,System.Object)"]

receiverFunc
Type: SystemString

[Missing <param name="receiverFunc"/> documentation for "M:Godot.EditorResourcePreview.QueueResourcePreview(System.String,Godot.Object,System.String,System.Object)"]

userdata
Type: SystemObject

[Missing <param name="userdata"/> documentation for "M:Godot.EditorResourcePreview.QueueResourcePreview(System.String,Godot.Object,System.String,System.Object)"]

See Also