siyao 3 年前
当前提交
90ebb4db
共有 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(canvas == null){
enabled = false;
startCoroutine(ReEnableUIWidgetsNextFrame());

protected override void OnDisable() {
if (_wrapper != null) {
unregisterPanel(this);
_wrapper?.Destroy();
_wrapper.Destroy();
}
_wrapper = null;

正在加载...
取消
保存