浏览代码
Merge branch 'siyaoH/1.17/android' of github.com:Unity-Technologies/com.unity.uiwidgets into siyaoH/1.17/android_bug
Merge branch 'siyaoH/1.17/android' of github.com:Unity-Technologies/com.unity.uiwidgets into siyaoH/1.17/android_bug
# Conflicts: # com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanel.cs/siyaoH-1.17-PlatformMessage
xingwei.zhu
4 年前
当前提交
dd29435e
共有 15 个文件被更改,包括 52 次插入 和 112 次删除
-
5Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/backdrop_demo.cs
-
12Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/demo/material/search_demo.cs
-
5Samples/UIWidgetsSamples_2019_4/Assets/UIWidgetsGallery/gallery/backdrop.cs
-
21com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanel.cs
-
4com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanelWrapper.cs
-
6com.unity.uiwidgets/Runtime/material/animated_icons/animated_icons_data.cs
-
4com.unity.uiwidgets/Runtime/material/animated_icons/data/add_event.g.cs
-
4com.unity.uiwidgets/Runtime/material/animated_icons/data/arrow_menu.g.cs
-
4com.unity.uiwidgets/Runtime/material/animated_icons/data/close_menu.g.cs
-
4com.unity.uiwidgets/Runtime/material/animated_icons/data/ellipsis_search.g.cs
-
4com.unity.uiwidgets/Runtime/material/animated_icons/data/event_add.g.cs
-
52engine/Build.bee.cs
-
4engine/README.md
-
3engine/src/shell/platform/unity/android/unity_surface_manager.cc
-
32Samples/UIWidgetsSamples_2019_4/Assets/AndroidWorkAround.cs
|
|||
using engine2; |
|||
using UIWidgetsSample; |
|||
using Unity.UIWidgets.engine2; |
|||
using UnityEngine; |
|||
|
|||
namespace Unity.UIWidgets.ui |
|||
{ |
|||
|
|||
public class AndroidWorkAround : MonoBehaviour |
|||
{ |
|||
UIWidgetsPanel panel; |
|||
|
|||
// Start is called before the first frame update
|
|||
void Start() |
|||
{ |
|||
panel = GetComponent<UIWidgetsPanel>(); |
|||
panel.enabled = false; |
|||
AndroidGLInit.Init(); |
|||
} |
|||
|
|||
// Update is called once per frame
|
|||
void Update() |
|||
{ |
|||
if (!panel.enabled) |
|||
{ |
|||
panel.enabled = true; |
|||
enabled = false; |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
撰写
预览
正在加载...
取消
保存
Reference in new issue