From b88b3502f67128b08c6771e96051a1126b15a4be Mon Sep 17 00:00:00 2001 From: wangwang <3wangyongwang123@163.com> Date: Wed, 9 Aug 2023 18:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=AF=91=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E8=A7=A3=E5=86=B3=E7=A8=8B=E5=BA=8F=E5=9C=A8?= =?UTF-8?q?webGL=E4=BB=A5=E5=A4=96=E7=9A=84=E5=B9=B3=E5=8F=B0=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Design/InputAdaptation.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Design/InputAdaptation.md b/Design/InputAdaptation.md index 304cc2b5..685334b8 100644 --- a/Design/InputAdaptation.md +++ b/Design/InputAdaptation.md @@ -6,6 +6,8 @@ 以UGUI的Input组件为例,需要给Input 绑定以下脚本: ``` +#if UNITY_WEBGL || UNITY_EDITOR + using UnityEngine; using System.Collections; using WeChatWASM; @@ -89,4 +91,7 @@ public class Inputs : MonoBehaviour, IPointerClickHandler, IPointerExitHandler } } } + +#endif + ```