Creates a new Thread which runs the given action.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public TickThread(
	Action action,
	int tickLengthInMilliseconds,
	bool autoStartThread
)
Visual Basic
Public Sub New ( _
	action As Action, _
	tickLengthInMilliseconds As Integer, _
	autoStartThread As Boolean _
)
Visual C++
public:
TickThread(
	Action^ action, 
	int tickLengthInMilliseconds, 
	bool autoStartThread
)

Parameters

action
Type: System..::..Action
The action to run.
tickLengthInMilliseconds
Type: System..::..Int32
Time between ticks.
autoStartThread
Type: System..::..Boolean
Should the thread start after creation.

See Also