Skip to content

Commit b88b350

Browse files
添加编译条件,解决程序在webGL以外的平台编译报错的问题
1 parent cf47165 commit b88b350

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Design/InputAdaptation.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
以UGUI的Input组件为例,需要给Input 绑定以下脚本:
88
```
9+
#if UNITY_WEBGL || UNITY_EDITOR
10+
911
using UnityEngine;
1012
using System.Collections;
1113
using WeChatWASM;
@@ -89,4 +91,7 @@ public class Inputs : MonoBehaviour, IPointerClickHandler, IPointerExitHandler
8991
}
9092
}
9193
}
94+
95+
#endif
96+
9297
```

0 commit comments

Comments
 (0)