大约有 2,642 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0087 秒)
Laya_社区(2120) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(48)
...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_社区 发布时间: 20170714
... // 绘制遮罩区,含透明度,可见游戏背景 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
...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
...意来袭 加载到舞台的3D模型不显示贴图 关于遍历产生的sprite的点击事件,急,大神帮看哈 unity中的模型导出后在laya中显示不正常 循环依赖不能运行 Circular dependency: 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是...
来源: Laya_社区 发布时间: 20201105
有关TimeLine的疑问 游戏中有很多Hero和Enemy类继承Sprite,类里用到很多TimeLine实例,如tl1,tl2,一个技能可能就会用到一个。在Game类里实例化这些Hero和Enemy,让他们进行对战,如: hero1 = new Hero1; hero2 = new Hero2; enemy1 = new Enemy1...
来源: Laya_社区 发布时间: 20161128
...答(最新版本: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
...然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是...
来源: Laya_社区 发布时间: 20171102
...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
2.0中如何移动一组静态刚体? 我在一个sprite A下创建了一组静态刚体 如果A上没有刚体 移动A后子刚体不移动 但是子刚体的sprite跟着移动 子刚体发生碰撞后对应sprite回归原位 如果A上有刚体 移动A后子刚体不移动但是对应spri...
来源: Laya_社区 发布时间: 20190212
...相关的链接 提交 1 个回复 李伟 赞同来自: var Wall_TL = new Sprite(); Laya.stage.addChild(Wall_TL); Wall_TL.graphics.drawRect(0, 0, 400, 32, "#ffff00"); Wall_TL.pivot(200, 16); var Collision_Wall_TL:any = Matter.Bodies.rectangle(200, 400, 400, 32, { layaSprite:Wall_TL,isStatic: true...
来源: Laya_社区 发布时间: 20180529