大约有 712 项符合查询结果, 库内数据总量为 30,939 项。 (搜索耗时: 0.0071 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
...mitter.start(); // sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 附件 : --> 2019-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自:...
来源: Laya_社区 发布时间: 20191227
SCALE_FIXED_WIDTH适配屏幕的问题 主要设置屏幕适配的代码是下面,大部分手机是好的,有少部分andriod机器有比较大的概率出现半屏的情况。请问下是引擎不兼容呢,还是代码写的不完善 问题手机有:三星S8+,oppo r9m,oppo x20,vivo y7...
来源: Laya_社区 发布时间: 20181208
...d 定时执行某函数一次。功能同Laya.timer.timerOnce()。 Node width():Number 获取地形X轴长度。 TerrainProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By _onAdded():void[override] Sprite3D _onRemoved():void[override] Sprite3DEv...
来源: Laya2.0_api 发布时间: 20190513
...ete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错...
来源: Laya_社区 发布时间: 20180316
...选中了一个对象,其属性“尺寸和位置”处,只有x、y、width、height。没有用于屏幕适应的left、right、top、bottom等。 附件 : --> 2019-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20190409
...t.itemRender = StoreItem; storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // 使用但隐藏滚动条 storeTxList.vScrollBarSkin = "store/c.png"; let scrollBar = storeTxList.getChildByName...
来源: Laya_社区 发布时间: 20190711
...this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Laya.Handler.create(this,this.loadedMap)); } loadedMap(){ this.sp=new Laya.Sprite(); this.sp.graphics.drawRect(0,0,100,100,"#FF0000"); var mapLayer = this.tiledMap.getLayerByIndex(1);...
来源: Laya_社区 发布时间: 20171125
...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() ...
来源: Laya_示例 发布时间: 20250318
...w Sprite(); mask.graphics.save(); mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 ); mask.graphics.restore(); mask.x = 0; mask.y = 0; Laya.stage.addChild( mask ); 麻烦看下是什么问题。 附件 : --> 2017-02-16 添加评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20170216
...是layaair2.1.0beta,截屏接口使用的是 drawToCanvas(this.basePanel.width, this.basePanel.height, this.basePanel.x, this.basePanel.y).toBase64("image/png", 0.9, function(base64){,另外看到也有其他人遇到这个问题,但是没人解答 附件 : --> 2019-06-24 添加评论 免...
来源: Laya_社区 发布时间: 20190624