I’ve come to realize that Time.deltaTime does not update in an editor script. I need a timed countdown in this particular script. Is there any way to achieve this in editor?
You could use the Time.realtimeSinceStartup.
var timeOut : float;
function StartCountdown(seconds : float)
{
timeOut = Time.realtimeSinceStartup + seconds;
}
function Update()
{
if (Time.realtimeSinceStartup > timeOut)
{
// do something
}
}
It’s just the basic concept