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

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

1621. 游戏系怎么把一些共用的功能独立出来 [ 79%]

...ATLAS },         ];         Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false)); 3、注入JSvar js:any = Laya.loader.getRes("res/atlas/choujiang.js"); Browser.window.eval(js); 4、运行JS var ChouJiang = Browser.window.eval("模...

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

1622. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 79%]

...0); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {     MyBoot.s...

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

1623. tween 的 update 怎么是回调一次!!! [ 79%]

...Gold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){                 trace('obGold.value', obGold.value)             }), 0)             tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 免费帖 --> ...

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

1624. tween如何更改3d物体位置 [ 79%]

... x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animationDelay);   无法直接设置原因...

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

1625. 播放粒子没反应 [ 79%]

播放粒子没反应 使用unity导出粒子this.parAni = this.path2.getChildByName("anjian").getChildByName("huang").particleSystem;然后使用this.parAni.play();播放没有效果 2019-01-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

1626. TiledMap地图下显示问题 [ 79%]

... 提交 2 个回复 AiLiner 赞同来自: 知道问题了 加载的时候 this.tiledMap.createMap("../laya/assets/map/orthogonal-test-movelayer.json", new Rectangle(0, 0, 5000, 5000),new Laya.Handler(this,this.finishLoadMap));     Rectangle设置太小,分开加载了,加载会从下开始加...

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

1627. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 79%]

...                    Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName);                                  }else{                                  var item:Sprite3D = Pool.getItem(_path);     ...

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

1628. drawToCanvas无法截取到有子元素。 [ 79%]

...ite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, 0); const canvas = htmlCanvas.getCanvas(); trace(canvas.toDataURL('image/png')); const texture = new Laya.Texture(htmlCanvas); const sp = new Sprite(); sp.g...

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

1629. 重力感应 Accelerator 发布微信游戏后失效。是因为什么? [ 79%]

...后失效。是因为什么? Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); function monitorAccelerator(acceleration, accelerationIncludingGravity, rotationRate, interval) {         let x = accelerationIncludingGravity.x;         let y = accelerationIncludingGravity....

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

1630. 给Sprite 注册的触发器事件为什么没反应? [ 79%]

... 注册的触发器事件为什么没反应? ape.on( Event.TRIGGER_STAY, this, TRIGGER_STAY1);     ape.on(Event.TRIGGER_ENTER, this, TRIGGER_ENTER1);     ape.on(Event.TRIGGER_EXIT, this, TRIGGER_EXIT1);   鼠标拖拽一个Sprite 到 另外一个 Sprite 上,注册的上面3个事件都...

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