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

大约有 2,642 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0087 秒)

901. 3D中摄像机绕物体旋转该如何实现? [ 69%]

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

902. 设置半透遮罩层后,无法屏蔽穿透点击事件 [ 69%]

... // 绘制遮罩区,含透明度,可见游戏背景 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

903. 官方视频教程中飞机大战 "this.addChild is not a function" [ 69%]

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

904. 2.8.0上默认模型不能产生和接受阴影 [ 69%]

...意来袭 加载到舞台的3D模型不显示贴图 关于遍历产生的sprite的点击事件,急,大神帮看哈 unity中的模型导出后在laya中显示不正常 循环依赖不能运行 Circular dependency: 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是...

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

905. 有关TimeLine的疑问 [ 69%]

有关TimeLine的疑问 游戏中有很多Hero和Enemy类继承Sprite,类里用到很多TimeLine实例,如tl1,tl2,一个技能可能就会用到一个。在Game类里实例化这些Hero和Enemy,让他们进行对战,如: hero1 = new Hero1; hero2 = new Hero2; enemy1 = new Enemy1...

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

906. 使用Pool的时候创建的对象怎么传递参数 [ 69%]

...答(最新版本: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

907. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 69%]

...然不重合?? 我使用一个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

908. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 69%]

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

909. 2.0中如何移动一组静态刚体? [ 69%]

2.0中如何移动一组静态刚体? 我在一个sprite A下创建了一组静态刚体   如果A上没有刚体 移动A后子刚体不移动 但是子刚体的sprite跟着移动 子刚体发生碰撞后对应sprite回归原位   如果A上有刚体 移动A后子刚体不移动但是对应spri...

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

910. 如何旋转2d的物理系统的矩形 [ 69%]

...相关的链接 提交 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