Add comments
parent
ecf6c1fba5
commit
d639283f59
|
@ -123,8 +123,10 @@ namespace UniRx.Async
|
||||||
[InitializeOnLoadMethod]
|
[InitializeOnLoadMethod]
|
||||||
static void InitOnEditor()
|
static void InitOnEditor()
|
||||||
{
|
{
|
||||||
|
//Execute the play mode init method
|
||||||
Init();
|
Init();
|
||||||
|
|
||||||
|
//register an Editor update delegate, used to forcing playerLoop update
|
||||||
EditorApplication.update += ForceEditorPlayerLoopUpdate;
|
EditorApplication.update += ForceEditorPlayerLoopUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -138,6 +140,7 @@ namespace UniRx.Async
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//force unity to update PlayerLoop callbacks
|
||||||
EditorApplication.QueuePlayerLoopUpdate();
|
EditorApplication.QueuePlayerLoopUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue