소스 검색

fixed bug caused by NGUI

Scrublord1336 6 년 전
부모
커밋
5fee55ae52
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/XUnity.AutoTranslator.Plugin.Core/AutoTranslationPlugin.cs

+ 4 - 0
src/XUnity.AutoTranslator.Plugin.Core/AutoTranslationPlugin.cs

@@ -701,6 +701,10 @@ namespace XUnity.AutoTranslator.Plugin.Core
                // NGUI only behaves if you set the text after the resize behaviour
                ui.SetText( text );
             }
+            catch( TargetInvocationException )
+            {
+               // might happen with NGUI
+            }
             catch( NullReferenceException )
             {
                // This is likely happened due to a scene change.