大约有 495 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0046 秒)
...ayaAirIDE 打包APK 后 真机运行报错 lert=http://stand.alone.version/main.min.js:1: ReferenceError: createApes is not defined i=new RunGame;Laya.stage.addChild(i)}!function(){createApes()}(function(){function i(){this.BG_WIDT ReferenceError: createApes is not defined at BG_WIDTH (http://stand....
来源: Laya_社区 发布时间: 20180108
...后重试? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } ren...
来源: Laya_社区 发布时间: 20180602
...何添加admob? 构建好的android studio项目中,找不到activity_main.xml 2017-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 可以通过项目构建进行添加! 2017...
来源: Laya_社区 发布时间: 20170304
...ya.core.js:4135) at Object.Laya.init (laya.core.js:252) at new Main (Main.ts:6) at Object.2../GameConfig (Main.ts:37) at o (_prelude.js:11) at r (_prelude.js:11) at _prelude.js:11 laya2.0版本微信开发者工具上报错,大佬帮忙解决下 附件 : -...
来源: Laya_社区 发布时间: 20190403
...ture var img___=new Image(); img___.src="res/card/select_main_card_bg.png" img___.onload = function(){ var image = new Laya.Image() image.source = img___ Laya.stage.addChild(image) } 舞台上没有图 ...
来源: Laya_社区 发布时间: 20170122
...._load (internal/modules/cjs/loader.js:562:25) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3) 2019-12-31 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20191231
...ec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION precision highp float; #else...
来源: Laya2.0_文档 发布时间: 20210715
粒子特效,播放与克隆有bug 2.1.0和2.1.1,Main Camera的clearFlag =3可以播放,但是Sprite3D克隆报错,.ls和.lh都会报错。 2.2以上的版本Main Camera的clearFlag =3无法播放,clearFlag =1或0,播放时有黑背景,克隆没有尝试。 附件 : --> LayaScene_zh...
来源: Laya_社区 发布时间: 20191126
...的图片,改变scale时会出现图片不绘制的情况 demo项目里Main.ts下的onConfigLoaded方法里,使用Texture2D.setPixels创建了纹理,Sprite通过绘制纹理graphics.drawTexture的方式生成可视化图片,但这个Sprite在改变大小时会出现绘制失败的情况,de...
来源: Laya_社区 发布时间: 20200422
...ec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION precision highp float; #else...
来源: Laya2.0_文档 发布时间: 20210715