Click or drag to resize

EditorResourcePreviewQueueEditedResourcePreview Method

Queue a resource being edited for preview (using an instance). 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 QueueEditedResourcePreview(
	Resource resource,
	Object receiver,
	string receiverFunc,
	Object userdata
)

Parameters

resource
Type: GodotResource

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

receiver
Type: GodotObject

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

receiverFunc
Type: SystemString

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

userdata
Type: SystemObject

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

See Also