siyao
4 年前
当前提交
dd9c27b5
共有 3 个文件被更改,包括 65 次插入 和 48 次删除
-
60Samples/UIWidgetsSamples_2019_4/Assets/CountDemo.unity
-
21com.unity.uiwidgets/Runtime/engine2/UIWidgetsPanel.cs
-
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