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

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

101. graphics怎么画透明色 [ 78%]

....clear(); graphics.save(); graphics.alpha(0.6); graphics.drawRect(0,0,Laya.stage.width,Laya.stage.height,'#000000'); graphics.restore(); sprite.graphics=graphics; 2018-12-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 dz5566 相关问...

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

102. 滤镜问题,有复现demo [ 78%]

...将btn.fitlers = null,这时舞台绘画的消失了???? */ Laya.stage.graphics.drawRect(200, 200, Laya.stage.width / 2, Laya.stage.height / 2, "#ffff00"); var btn:Sprite = new Sprite(); btn.size(200, 100); btn.graphics.drawRect(0, 0, btn.width, btn.height, "#ff00ff"); Laya.stage.addChild(bt...

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

103. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 78%]

...a.timer.clear(this, this.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); }  //恢复 GameEx.prototype.resume = function () { //在循环中创建敌人 Laya.timer.frameLoop(1,this,this.onLoop); console.log("恢复播放音乐") Laya.SoundManager.stopMusic(); Laya...

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

104. drawToCanvas转出图片与游戏内显示颜色差距过大 [ 77%]

...uctor() {         this.init();     }     init() {         Laya.stage.bgColor='#ffffff';         Laya.stage.addChild(new Laya.Image('comp/img/img1.png'));         Laya.timer.once(1000, this, this.delayShow);     }     delayShow() {         let canvas = Laya.stage.drawToCan...

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

105. 关于video [ 77%]

...处于底部,这个是什么问题 Laya.init(640,960,Laya.WebGL); Laya.stage.scaleMode = "exactfit"; Laya.stage.alignH = "center"; var Sprite = laya.display.Sprite; var Bg = new Sprite(); Bg.loadImage("../laya/assets/bg_back.png"); Laya.stage.addChild(Bg); Bg.on(Laya.Event.MOUSE_DOWN, this, functi...

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

106. 为何发布到微信小程序上,iphone xr会出现精灵显示不全的问题? [ 77%]

...Sprite(); bgSprite.loadImage("war/background.png"); bgSprite.scaleX = Laya.stage.width / 480; bgSprite.scaleY = Laya.stage.height / 852; Laya.stage.addChild(bgSprite);   在安卓和其他的ios设备上都正常,但是在iphone xr上就遇到了显示不全的问题。 有问题的设备的相...

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

107. 游戏铺满固定大小容器,火狐和谷歌正常,edge会有滚动条? [ 77%]

...s.lastClientWidth);                         if(Laya.stage.scaleMode != Laya.Stage.SCALE_SHOWALL){                             Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL;                         }              ...

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

108. [BUG]大量调用 graphics.drawCircle 导致错误 [ 77%]

...th.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebGL);//Laya.WebGL Laya.stage.scaleMode = "showall"; Laya.stage.alignH = "center"; Laya.stage.alignV = "center"; Laya.stage.useHDRender...

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

109. 打包app后可以横屏旋转 [ 77%]

...           mainCan = new Sprite();             Laya.stage.addChild(mainCan);                          dialogCan = new Sprite();             Laya.stage.addChild(dialogCan);                          tipCan = new Sprite(...

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

110. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 77%]

...决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop()       ILaya.m_worker = new Worker("libs/sleepThread.js");     ILaya.m_worker.onmessage = function () {         if (!ILaya.stage.isVisibility) {             // console.log("_e...

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