大约有 2,682 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)
Laya_社区(2157) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(51)
有关TimeLine的疑问 游戏中有很多Hero和Enemy类继承Sprite,类里用到很多TimeLine实例,如tl1,tl2,一个技能可能就会用到一个。在Game类里实例化这些Hero和Enemy,让他们进行对战,如: hero1 = new Hero1; hero2 = new Hero2; enemy1 = new Enemy1...
来源: Laya_社区 发布时间: 20161128
...意来袭 加载到舞台的3D模型不显示贴图 关于遍历产生的sprite的点击事件,急,大神帮看哈 unity中的模型导出后在laya中显示不正常 循环依赖不能运行 Circular dependency: 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是...
来源: Laya_社区 发布时间: 20201105
...nt.color; var lineWidth = options.lineWidth || 2; //中划线 var sp = new Sprite(); element.addChild(sp); //画线 sp.graphics.drawLine(0, element.height / 2, element.width, element.height / 2, lineColor, lineWidth); } 2018-05-31 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: ...
来源: Laya_社区 发布时间: 20171019
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏如何使用ttf字体? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement...
来源: Laya_社区 发布时间: 20171208
...super){ function BackGround(){ BackGround.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("war/background.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite);报错 "TypeError: this.addChild is not a function at BackGrou...
来源: Laya_社区 发布时间: 20181003
...:Assets.zip 导出资源:LayaScene_Model_1001.zip 加载代码 Laya.Sprite3D.load("res/LayaScene_Model_1001/Conventional/Model_1001.lh", Laya.Handler.create(null, (sprite:Laya.Sprite3D) => { this.mScene.addChild(sprite); sprite.transform.translate(new Laya.Vector3(-0.3, 0, 0)); })); 报...
来源: Laya_社区 发布时间: 20200107
...sform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.targetAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); t...
来源: Laya_社区 发布时间: 20190224
...在最底部显示? Animation如何加点击事件 关于遍历产生的sprite的点击事件,急,大神帮看哈 关于发布oppo、vivo快游戏,无法生成Rpk问题 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时...
来源: Laya_社区 发布时间: 20180724
...flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage...
来源: Laya_社区 发布时间: 20151224
... // 绘制遮罩区,含透明度,可见游戏背景 var maskArea: Laya.Sprite = new Laya.Sprite(); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); maskArea.mouseThrough = false; Laya.stage.addChild(maskArea); 2018-09-11 添加评论 免费...
来源: Laya_社区 发布时间: 20180911