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

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

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

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

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

1622. 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

1623. 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

1624. 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

1625. 重力感应 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

1626. 给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

1627. 请问在LayaAir中 怎么样控制动画播放的速度? [ 79%]

... LM20081991 • 2018-01-25 10:10 能否举一个例子,比如我现在是 this.skill = new Laya.Animation(); this.skill.play(); 就是播放技能的动画。是this.skill.interva()这样吗, 中间有没有什么参数?

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

1628. Laya.Physics.rayCastAll 和 Laya.RaycastHit [ 79%]

...检测,这么写运行就提示没有该方法 Laya.Physics.rayCastAll(this.ray, this.outHitAllInfo, 30, 0); RaycastHit 是在创建是时候就报错了 提示没有这个东西。 看官方网站介绍,该勾选的类库我都勾选了,运行还是不行。 2018-12-19 添加评论 免费帖 ...

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

1629. 怎么监听AnimationClip.addEvent添加的事件 [ 79%]

...params = ["move"];  test_e.time = 0.2;  let test_cp:Laya.AnimationClip = this._ani.getDefaultState().clip;  test_cp.addEvent(test_e);  test_cp.on("move_over",this,this.test_over); 预想是播放到0.2秒就会发送"move_over",但事实好像不是这样的,那么怎么监听 通过addEvent...

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

1630. APP打包后运行效果与调试效果不一致(sprite,child) [ 78%]

...运行效果与调试效果不一致(sprite,child) Laya.timer.frameLoop(1,this,this.run()); public run():void{    var childs:Array<Laya.Sprite> = this._childs;    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; } ...

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