Comments (4)
WX.InitSDK((int code)=> {
这里code =200 是啥意思 还有其他值吗? 能用来区分吗
});
from minigame-unity-webgl-transform.
目前好像只能分编辑器和webgl环境,编译成h5和微信上用都被识别成webgl
#if UNITY_WEBGL && !UNITY_EDITOR
// 微信或者网页环境,都是webgl
#else
// unity编辑器环境
#endif
from minigame-unity-webgl-transform.
WX.InitSDK((int code)=> { 这里code =200 是啥意思 还有其他值吗? 能用来区分吗 });
private void WXInitializeSDK(string s)
{
initCallback(200);
}
他们代码里200是写死的。
from minigame-unity-webgl-transform.
谢谢
from minigame-unity-webgl-transform.
Related Issues (20)
- 运行阶段-出现function signature mismatch 之后游戏卡死 HOT 4
- Shader在顶点着色器用tex2DLod读取纹理问题。 HOT 2
- Jenkins接入构建流程,偶尔参数会丢失,有人遇到过吗? HOT 6
- WXFileSystemManager.MkdirSync(path) 报错 permission denied
- 运行时-URP动态添加overlay camera黑屏 HOT 5
- webgl/Build文件夹里面生成的是webgl.data格式 HOT 1
- 调试阶段 - Windows PC端微信无法打开开发版小游戏 HOT 1
- 小游戏无法存档.每次进入都从第一关开始 HOT 1
- 启动报错 HOT 3
- Unable to load dependent bundle from location HOT 3
- unity转微信小游戏,image的tiled不生效 HOT 5
- 使用体积云技术后提示 WebGL: INVALID_OPERATION: texSubImage3D: ArrayBufferView not big enough for request
- Unity2019导出wx工程报错 HOT 1
- unity转为微信小游戏后异步编程async/await中出现了问题!!! HOT 1
- 【问题】这个项目与 Unity Instant Game 的关系? HOT 1
- 基于”miniprogram-ci“的自动化发布问题 HOT 2
- WX.requirePrivacyAuthorize,部分机型首次无法立即弹出隐私弹出 HOT 3
- Unity 游戏转微信小游戏出错 HOT 5
- aa资源加载失败 HOT 2
- Failed to load config file blazor.boot.json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minigame-unity-webgl-transform.