From d639283f592f28c39cb418cfbacd1cf7962f943e Mon Sep 17 00:00:00 2001 From: Antonio Date: Mon, 9 Sep 2019 13:34:13 +0200 Subject: [PATCH] Add comments --- Assets/UniRx.Async/PlayerLoopHelper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/UniRx.Async/PlayerLoopHelper.cs b/Assets/UniRx.Async/PlayerLoopHelper.cs index 8501f3a..5171469 100644 --- a/Assets/UniRx.Async/PlayerLoopHelper.cs +++ b/Assets/UniRx.Async/PlayerLoopHelper.cs @@ -123,8 +123,10 @@ namespace UniRx.Async [InitializeOnLoadMethod] static void InitOnEditor() { + //Execute the play mode init method Init(); + //register an Editor update delegate, used to forcing playerLoop update EditorApplication.update += ForceEditorPlayerLoopUpdate; } @@ -138,6 +140,7 @@ namespace UniRx.Async return; } + //force unity to update PlayerLoop callbacks EditorApplication.QueuePlayerLoopUpdate(); }