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

大约有 1,442 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0051 秒)

841. JQ集成到Laya二次封装 [ 69%]

JQ集成到Laya二次封装 aWater = Laya.stage._childs; // //================= demo1 ======================= // JQ(aWater).click(function () { // //我已经打算废弃这样的事件用 on来动态绑定触法 // }) // //================= demo1 ======================= // //================= demo...

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

842. 关于as版的Animation.createFrames()不能工作? [ 69%]

...rt laya.display.Animation; import laya.display.Sprite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat....

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

843. 图集动画没有显示 [ 69%]

...loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 scorpio 赞同来自: 这个是哪里有问题吗?   2...

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

844. 技术文档中的示例js运行报错 [ 69%]

...oader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya.stage.addChild(cMask) } })()   附件 : --> 2018-08-10 添加...

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

845. List滚动条问题 [ 69%]

... true; list.renderHandler = new Laya.Handler(this, UpdateMarketItem); Laya.stage.addChild(list); list.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res...

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

846. 如何实现渐变填充对象呀? [ 69%]

...y_gradient.addColorStop(1,"#0000FF"); let sprite = new Laya.Sprite(); Laya.stage.addChild(sprite); sprite.graphics.drawRect(0,0,640,1136,my_gradient); 2018-09-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 纪龙 相关问题 两个...

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

847. 微信小游戏报错 the .lh file root type must be Scene [ 69%]

...n3DPath); let scene: Laya.Scene = Laya.Scene.load(this.screen3DPath); Laya.stage.addChildAt(scene, 0); this.InitCamera(scene); return scene; } 微信小游戏报错 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Erro...

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

848. 用layaair如何加載蒙皮動畫,请问怎么加载.lm文件和.ani文件,有沒有實例可以看下 [ 69%]

....ani文件,有沒有實例可以看下 代碼如下: this.scene = Laya.stage.addChild(new Laya.Scene()); //加载相机 this.camera = this.scene.addChild(new Laya.Camera()); this.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("3d/man/CunMinNan-...

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

849. dialog设置缩放问题 [ 69%]

...dialog.scale(dialog.scaleH, dialog.scaleH); dialog.x = Math.round(((Laya.stage.width - dialog.width * dialog.scaleH) >> 1) + dialog.pivotX);  dialog.y = Math.round(((Laya.stage.height - dialog.height * dialog.scaleH) >> 1) + dialog.pivotY);   希望官方能优化一下!!感谢 201...

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

850. 小米手机三指点击后,后续获得的触摸点失效 [ 69%]

...的触摸点失效,单点的情况下会获得三个触摸点信息Laya.stage.on(Laya.Event.MOUSE_DOWN, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag ...

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