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

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

1741. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 47%]

...48导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

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

1742. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 47%]

...口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建TiledMap地图 this.tMap.createMap("map/"+mapname+".json",viewRect, laya.utils.Handler.create(this, this.test));//, null, new Laya.Point(1600, 816)); } private test(){ var testLayer:Laya.MapLay...

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

1743. 如何在场景中获得node的位置信息? [ 47%]

...根节点,根据index索引获取,如果是panel节点,根据panel的width和heigh获取,如果是动画节点就用矩阵变换获取 2017-11-21 0 8 分享 微博 QZONE 微信 wudi199553 赞同来自: target3.transform.position 2017-11-21 0 0 分享 微博 QZONE 微信 Faith_mkx 赞同来...

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

1744. [LayaAirIDE 2.0]Laya官方的视频例子,用LayaAir2.1.1.1版本开发,在ios无论是safari还是通过微信打开的h5链接都无法播放 [ 47%]

... Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是能够播放的。差别就在于是否设置了video元素的style   2020-07-11 0 2 分享 微博 QZONE ...

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

1745. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 47%]

...         partIns.play();          partIns.x = Laya.stage.width / 2;          partIns.y = Laya.stage.height / 2;     }        报错如下: ReferenceError: Loader is not defined preload.js:55     at LoveView.onEnable (file:///D:/laya/myLaya/myZootopia/bin/js/bund...

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

1746. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found [ 47%]

...per but module 'tslib' cannot be found   定位到代码中是: let { width, height } = Laya.stage;  mac上却没有问题,win10上却出问题了,求解?难道只支持ts2.x?不支持解析赋值语法? 附件 : --> 2020-04-09 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

1747. 事件绑定不触发bug [ 47%]

...WebGL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);             Laya.stage.alignV = Stage.ALIGN_MIDDLE;             Laya.stage.alignH = Stage.ALIGN_CENTER;             Laya.stage.scaleMode = "showall";          ...

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

1748. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 47%]

...ne" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="LoginScene.scene"; static sce...

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

1749. Spine动画最后一帧无法正常显示 [ 47%]

...后一帧时其使用的graphics值与倒数第二帧graphics使用的x/y/width/height一致,故猜测最后一帧使用了和倒数第二帧一样的外观导致动画停止后外观看起来还是倒数第二帧的外观。   对于Spine动画播放的源码我没有全部看一遍故不能找...

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

1750. 动态图集 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

... atlasManager.getLargeTexture(0); console.log(`大纹理尺寸: ${largeTex.width} x ${largeTex.height}`); 获取所有大纹理对象 //接口 getAllLargeTextures(): LargeTexBase[] 获取所有底层大纹理对象的数组,用于调试或高级操作。 返回值:LargeTexBase 对象数组。 //...

来源: Laya3.0_文档 发布时间: 20260131