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

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

1641. 3D场景中背景透明 [ 51%]

...参数,改为如下代码 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height, _config); 然后就Ok了   修改好的项目,已上传到附件里了,你也可以对照附件来看一下。 xiangmu2.rar 2020-10-22 0 0 分享 微博 QZONE 微信 程程 赞同来自:   图片...

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

1642. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 51%]

...     this.label.pos(500, 400);               this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000";             this.label.zOrder=9980             Laya.stage.addChild(this.label);          ...

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

1643. 微信开放数据域加载图片后报错 Cannot read property 'USER_DATA_PATH' of undefined [ 51%]

...   var img:Image = new Image("../res/test.png"); img.height = 100; img.width = 100;             Laya.stage.addChild(img); } 附件 : --> 2019-05-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 早...

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

1644. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 51%]

...dMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) }  private onMap(){ var idx = this.map.getLayerByIndex(0).getTileDataByScreenPos(20,20); var pass = this.map.getTileProperties(0,idx - 1,'pass'); console.log('...

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

1645. ios里如何调用js方法 [ 51%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 IOS运行游戏界面发生偏移,请问是什么问题? 问题状态 最新活动: 2020-04-08 18:07 浏览: 3163 关注: 3 人 圣诞老人的麋鹿 • 2020-08-19 15...

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

1646. [LayaAir3]list.selectHandler [ 51%]

...lbl=new Laya.Label(val); this.lbl.name="val"; this.lbl.size(Item.width,Item.height); this.lbl.align="center"; this.lbl.valign="bottom"; this.lbl.padding="0,0,1,0"; this.btn.addChild(this.lbl); } this.btn.name=index.toString(); this.uiCtrl=uiCtrl; this.btn.on(&...

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

1647. 源码List的一次代码错误 [ 51%]

...X, numY) { var box = this._content; var cell = this._getOneCell(); var cellWidth = cell.width + this._spaceX; var cellHeight = cell.height + this._spaceY; if (this.cacheContent) { var cacheBox = new Box(); cacheBox.cacheAsBitmap = true; cacheBox.pos((this._isVertical ? 0 : startY) * cellWidth, (this...

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

1648. 如何使用graphics绘画虚线 [ 51%]

...ot; +"<g fill=\"none\" stroke=\"black\" stroke-width=\"4\">" + " <path stroke-dasharray=\"5,5\" d=\"M5 20 l215 0\" />" + "<path stroke-dasharray=\"10,10\" d=\"M5 40 l215 0\" />" + &q...

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

1649. 物体每帧y方向移动,超出屏幕高度消失,可还没有超出屏幕高度就提前消失了! [ 50%]

... Laya.WebGL); //屏幕适配 Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL; //-----------上面和下面的代码在两个不同的页面------------- _...

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

1650. bitmap渲染问题 [ 50%]

... bm2:Bitmap = new Bitmap(bmd2); this.addChild(bm2); bm2.x = 50; trace(rect.width); trace(rect.height); 输出正常,不知道你那边是如何写的?

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