浏览代码

update comment

/main
siyao 3 年前
当前提交
84425ca8
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs

3
com.unity.uiwidgets/Runtime/engine/UIWidgetsPanel.cs


#if !UNITY_EDITOR && UNITY_ANDROID
if (!IsAndroidInitialized()) {return ;}
#endif
// if duplicate uiwidgets gameobject in scene, canvas could be null during OnEnable. Skip to avoid error.
// If user duplicates uiwidgets gameobject in scene, canvas could be null during OnEnable, which results in error. Skip to avoid error.
// More explanation: during duplication, editor wakes and enables behaviors in certain order. GameObject behaviors are enabled before canvas.
if(canvas == null){
enabled = false;
startCoroutine(ReEnableUIWidgetsNextFrame());

正在加载...
取消
保存