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

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

801. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 51%]

...   {             apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {                 Laya.loader.load(picAy[i],Handler.create(this, onAssetLoaded))             }     ...

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

802. Animation 的createFrames 使用已经加载的图集缓存动画失败 [ 51%]

..."); } } Animation.createFrames(url,"myFighter"); fly=new Animation(); Laya.stage.addChild(fly); fly.play(0,true,"myFighter"); } } 其他案例请参考:LayaAir开发实战-------Role.as文件也有相关使用方式,仅供参考。   2016-06-13 0 0 分享 微博 QZONE 微信 为什么被折叠?...

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

803. box2d 弹性异常 [ 50%]

...啦圈 相关问题 ios14系统下 blendMode='lighter' 图片异常 修改stage的scale后,会发生异常情况 1.7.15 小游戏3d 发布后在手机预览显示异常 unity到导出场景加载时抛异常,不知所措 构建iOS工程后,真机上运行显示“网络异常,请检查您的...

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

804. 龙骨skeleton鼠标点击区域的设置 [ 50%]

...例: mArmature = mFactory.buildArmature(1); mArmature.play(0,true); Laya.stage.addChild(mArmature); mArmature.pos(300,600); var rect:Rectangle=new Rectangle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 ...

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

805. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSiz...

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

806. [LayaAir3][LayaAir3.0.10]预制体的Scale变化会导致transform.getForword输出也发生变化 [ 50%]

...体报错 自定义场景类导出layaMaxUI.ts有前缀导致报错 修改stage的scale后,会发生异常情况 高频使用遮罩 导致手机扫码测试闪屏/黑屏 2.12.2 打包QQ小游戏,rayCast发出的射线检测到的物体与点击的不一致,在浏览器和微信小游戏没有...

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

807. 更新到1.7.6beta之后,HBox有bug [ 50%]

...mg.width; s.height = img.height; s.addChild(img); hbox.addChild(s); } Laya.stage.addChild(hbox); } 2017-06-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 lusky 相关问题 Layabox 2.0 bate5 运行编译之...

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

808. tiledmap有时尺寸不正确 [ 49%]

...te Complete():void{ this._mLoadState = ESceneLoadState.eLoadComplete; Laya.stage.on(Laya.Event.RESIZE, this, this.onResizeHandler); this.onResizeHandler(); if (this._mCompleteHandler){ this._mCompleteHandler.run(); } } private onResizeHandler():void{ this._mTiledMap.changeViewPort(this._mViewPortX, ...

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

809. Sp.graphics.drawTexture()中的color参数使用的时候,会概率性导致整个场景中的节点颜色改变成我们使用过的颜色。 [ 49%]

...记得之前遇到过类似的,不知道你的背景是不是用的Laya.stage.color设置的。如果是的话,你可以尝试弄一张纯色的图片当做背景,然后在跑下你说的问题,看看是不是就没问题。 如果换成纯色背景还有问题的话,可以提供一个必...

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

810. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 49%]

...et pNewScene = <Laya.Scene3D>Util3d.getRes(this.sMapRes, false) Laya.stage.addChild(pNewScene); Util3d.getChildByPath(pNewScene, "Main Camera").active = false; let pBull = <Laya.Sprite3D>Util3d.getRes(this.sBullRes) let pEnemy = <Laya.Sprite3D>Util3d.getRes(this.sEnemyRes) pNewScen...

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