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

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

731. 生成的粒子特效怎么设置colorComponentInter无效? [ 70%]

...cle2D(settings); sp.emitter.start(); sp.play(); sp.x = 90; sp.y = 55; this.addChild(sp); } 还是会有几种颜色,我希望跟在IDE里预览的时候效果一样 只有一种 我这样设置再传入Particle2D不对吗? settings.colorComponentInter = true; 2016-12-30 添加评论 免费帖 --...

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

732. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 70%]

...肤 hero.showSkinByIndex(0); //播放 hero.play(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroClick); let bbox = hero.getSelfBounds(); hero.hitArea = bbox; }); } 附件 : --> skeleton.zip 2018-09-05 添...

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

733. laya的各种light支持culling mask吗? [ 70%]

... 16:36 我unity场景中设置,代码中 this._PlayerLight = this._scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this._PlayerLight.color = new Laya.Vector3(0.7, 0.6, 0.6); this._PlayerLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); this._PlayerLight.layer = ...

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

734. 加载时间轴动画报错 [ 70%]

...   function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); }   运行时报 TypeError:Cannot read property '_create' of null     at Animation._proto.timerLoop(file:///f:/........./bin/libs/laya.core.js:9493:14)     at Animation._proto.play(fi...

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

735. 求教 JS项目的Promise如何使用 [ 70%]

...ure(Laya.loader.getRes(this.monkey2),100,50); //添加到舞台 Laya.stage.addChild(img); }求教一下Promise方式来实现这段代码应该写,谢谢 2017-08-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

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

...layer.loadImage("unit/test.png"); this.tMapPlayer.zOrder = 1000; testLayer.addChild(this.tMapPlayer); }楼上您好,我照着你的代码写的,但是还是看不到我自己的sprite,请问是怎么回事呢? 我可以确定player层是在最上面层的 2017-11-19 0 2 分享 微博 QZONE ...

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

737. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 70%]

..."; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); return txt; } })() ``` ![2](img/2.png) 可以看到3种方法的对文本处理的不同,每种处理都有各自的优缺点,性能比最高的还是hidden。 除了通过对文本区域设置overflow ,...

来源: Laya2.0_文档 发布时间: 20210714

738. 3D场景中背景无法透明,版本2.7.1 [ 70%]

...loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, fa...

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

739. UI编辑发布后运行lose skin [ 70%]

...oaded)); } private onLoaded(): void { this.begin = new Begin(); Laya.stage.addChild(this.begin); } } new GameMain(); 2018-08-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 李吱儿哇 赞同来自: file:///C:\...

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

740. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 70%]

...dth >> 1, Laya.stage.height -bg.height >> 1); //加载到舞台 Laya.stage.addChild(bg); } /***创建计数器切片***/ private function createCounter():void { //实例化计数器切片 counter = new Clip(clipSkin, 10, 1); //自动播放 counter.autoPlay = true; //播放间隔时间1秒 counter.in...

来源: Laya2.0_文档 发布时间: 20210714