Click or drag to resize

ThreadStart Method

Starts a new Thread that runs method on object instance with userdata passed as an argument. Even if no userdata is passed, method must accept one argument and it will be null. The priority of the Thread can be changed by passing a value from the ThreadPriority enum.

Returns on success, or on failure.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error Start(
	Object instance,
	string method,
	Object userdata = null,
	ThreadPriority priority = ThreadPriority.Normal
)

Parameters

instance
Type: GodotObject

[Missing <param name="instance"/> documentation for "M:Godot.Thread.Start(Godot.Object,System.String,System.Object,Godot.Thread.Priority)"]

method
Type: SystemString

[Missing <param name="method"/> documentation for "M:Godot.Thread.Start(Godot.Object,System.String,System.Object,Godot.Thread.Priority)"]

userdata (Optional)
Type: SystemObject

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

priority (Optional)
Type: GodotThreadPriority

[Missing <param name="priority"/> documentation for "M:Godot.Thread.Start(Godot.Object,System.String,System.Object,Godot.Thread.Priority)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.Thread.Start(Godot.Object,System.String,System.Object,Godot.Thread.Priority)"]

See Also