大约有 1,723 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1004) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(49)
...ish.scoreItem.width/2; fish.scoreItem.y = fish.getBox().y - fish.scoreItem.height; this.scoreBox.addChild(fish.scoreItem); fish.scoreGold = new Laya.Image(); fish.scoreGold.skin = "assets/ui_imgs/icon_00312.png"; fish.scoreGold.x = fish.scoreItem.x; fish.scoreGold.y = fish.scoreItem.y; fish.scoreGol...
来源: Laya_社区 发布时间: 20180517
...场景有拉伸,但是可以全屏显示,esactfit、fixedwidth、fixedheight 2、场景按照最长边或者短边去等比缩放,不会有拉伸,但是可能会出现裁剪或者留空白边 showall、noborder 3、自动适配fixedwidth、fixedheight,按照屏幕的宽高去自动拉伸...
来源: Laya_社区 发布时间: 20170622
...ter.WIDTH) this.x = -Character.WIDTH; } } Character.WIDTH = 110; Character.HEIGHT = 110; new PerformanceTest_Cartoon2();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprite = Laya.Sprite...
来源: Laya2.0_示例 发布时间: 20260303
...的粒子特效 在LAYA里出现卡顿 跳帧 求解决办法 使用CreateHeightMap脚本生成高度图的时候,高度图旋转了90°是什么原因? 获取到的别人的粒子特效有办法使用吗 实现创建一个盒子,盒子里面放置文案,文案超过盒子的高度的时候...
来源: Laya_社区 发布时间: 20190110
...nal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoaded)); } //切记:设置tiledMap的宽高,需要在地图创建完成之后 private function onLoaded():void { var sp:Sprite=tiledMap.mapSprite() as Sprite;//为tiledMap整个地图的显...
来源: Laya_社区 发布时间: 20170419
...on login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stage...
来源: Laya_社区 发布时间: 20170806
...NE 微信 Laya_Aaron 赞同来自: 设置 宽高等于 Laya.stage.width, height 2018-07-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 liwenhua 相关问题 看了其他引擎才发现 LAYA 真的太太...
来源: Laya_社区 发布时间: 20180723
.../bg/" + window.gamebgUrl, }], scaleMode: "FIXED_HEIGHT", contextType: 'webgl', contextAttributes: {alpha: false}, }).then(() => { }).catch((err) => { }); } catch(err) { console.error('current env ...
来源: Laya_社区 发布时间: 20241010
...分渐变功能。 spbg.graphics.drawPath(0,0, radius(spbg.width,spbg.height,10),{ fillStyle: gradient}); 请问怎么写代码能调用下面的canvas原生代码?不用Laya的滤镜。 (Laya滤镜和webgl捆绑了) context.shadowColor = "re...
来源: Laya_社区 发布时间: 20180615
...iv class="upload-wrap" id="upload" style="left: 0px; top: 0px; width: 0px; height: 0px; display: none;"> <input type="file" class="upload-pic" id="upFile" accept="image/jpeg,image/png" value="upload Img"> <span class="upload-text"></span> </div> 我在html...
来源: Laya_社区 发布时间: 20170116