• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0056 秒)

1471. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 47%]

...: 0 } sp = new Particle2D(data); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } })();canvas 和webgl 自行切換 附件 : --> 2018-01-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

来源: Laya_社区 发布时间: 20180109

1472. LayaAir DebugPanel 调试工具(TypeScript-2D进阶篇(TS)-调试相关) [ 47%]

...ff"; var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } new GameMain(); ``` 运行效果如图1所示 ![图1](img/1.png) (图1) ### 2、刷新显示对象节点树 默认状态下,显示对象节点树中只有`DebugIn...

来源: Laya2.0_文档 发布时间: 20210715

1473. emoji表情文字乱码 [ 47%]

...      var tSprite=new Sprite();                 this.addChild(tSprite);                 tHTMLChar.setSprite(tSprite);             }         }         return words;     }   2018-10-22 0 0 分享 微博 QZONE 微信 chen 赞同来...

来源: Laya_社区 发布时间: 20180517

1474. 打包成APK后,POST请求会先去Download请求的地址 [ 47%]

...imeout, dt=8,opttimeout=1798 03-09 21:15:03.207 23554 23663 I LayaBox :  [addChild][BoundReference]   download 成功log: ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 03-09 21:15:16.950 23554 23663 I LayaBox :  send httpRequest method:user.checkPlatformExist 03-09 21:...

来源: Laya_社区 发布时间: 20180315

1475. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 47%]

...挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加载 this.loadMcClips(); } /* ------------------------------------------------- * 对外唯一接口:随机播一条 * ----------...

来源: Laya_社区 发布时间: 20251211

1476. 关于微信小游戏渲染子域图的问题 [ 47%]

...hics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite);   }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpe...

来源: Laya_社区 发布时间: 20181123

1477. 截屏drawToCanvas的疑问 [ 47%]

...xture(texture);//把截图绘制到精灵上          * Laya.stage.addChild(sp);//把精灵显示到舞台          *          * <p>也可以获取原始图片数据,分享到网上,从而实现截图效果,示例:</p>          *          *...

来源: Laya_社区 发布时间: 20180719

1478. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 47%]

...123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

来源: Laya_社区 发布时间: 20180705

1479. tween有这个一个bug [ 47%]

...ale2d.y; share.x = this.Move2d.x; share.y = this.Move2d.y; this.SceneMajor.addChild(share); share.btShare.on('click',this,function(){ // Laya.SoundManager.playSound(SfxPool.btPress, 1, null); this.SceneShareDark(); }); share.btSignUp.on('click',this, SignUp_Func); var timeLine = new Laya.TimeLine();...

来源: Laya_社区 发布时间: 20180118

1480. 无法触发浏览器文件上传框 [ 46%]

...labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameM...

来源: Laya_社区 发布时间: 20170511