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

大约有 2,691 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0106 秒)

911. "Background is not defined"怎么会没定义呢???求救 [ 69%]

...super){ function Background(){ Background.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Background; return Background; })(Laya.Sprite); 2017-04-20 0 2 分享 微博 QZONE ...

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

912. [LayaAir3]如何在3D场景添加文字呢 [ 69%]

...ene2D 的 RuntimeScript 中用 this.scene3D 去访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getCompone...

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

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

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

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

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

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

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

915. Text的中划线(删除线) [ 69%]

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

916. 使用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

917. 官方视频教程中飞机大战 "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

918. 官方案例里摄像机绕物体旋转脚本的问题 [ 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_社区 发布时间: 20190224

919. list item 添加事件后无法监听 [ 69%]

...在最底部显示? Animation如何加点击事件 关于遍历产生的sprite的点击事件,急,大神帮看哈 关于发布oppo、vivo快游戏,无法生成Rpk问题 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时...

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

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