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

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

181. TestArea为什么没有读取txt里的文本内容? [ 56%]

...同来自: 实验了下,将TextPageUI.surper(this);修改成TextPageUI.__super.call(this);就可以了。 2018-12-25 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 鱿鱼小丝 相关问题 文本如何自动换行 关于文本遮挡 ...

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

182. 一个场景中加两个线形碰撞体出错 [ 56%]

...is.label = (this.label || "ChainCollider");             return super.getDef();         }   改成这样既可 2018-11-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 188*****406 相关问...

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

183. Dialog中编辑的动画如何控制? [ 56%]

...ng 赞同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播...

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

184. 封装类的时候 怎么在类中表示自身? [ 56%]

...类中表示自身? class BackGround extends Laya.Sprite{ constructor() { super(); new init(); function init() { var bg1 = new Laya.Sprite(); var bg2 = new Laya.Sprite(); //背景图 // box.loadImage("../bin/background.png"); // Laya.stage.addChild(box); bg1.loadImage("../bin/background.png"); this....

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

185. 分享一个Shader版的CoolDown实现 [ 56%]

...        }\             ";             */             super(vs, ps, "coolDownShader");         }     } import WebGLContext = laya.webgl.WebGLContext;     import Value2D = laya.webgl.shader.d2.value.Value2D;     import CONST3D2D = laya.webgl.utils.CONST3D2D;     expor...

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

186. 加载UI不成功,项目源码已经上传 [ 56%]

...2017-11-13 19:48 class TestUI extends ui.test.TestPageUI { constructor() { super(); } } Laya.init(600, 400); Laya.stage.bgColor = "#FFFFF00"; this.onLoaded(); function onLoaded(): void { var testUI: TestUI = new TestUI(); Laya.stage.addChild(testUI); } 这是加载ui的代码

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

187. 获取Sprite位置问题 [ 56%]

...ss Plant extends Laya.Sprite { public body :Laya.Animation; constructor(){ super(); this.body = new Laya.Animation(); Laya.Animation.createFrames(["res/war/hero_fly1.png","res/war/hero_fly2.png"],"fly"); this.addChild(this.body); this.body.play(0,true,"fly"); //获取动画大小区域 var bound:Lay...

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

188. laya如何用audio播放音频? [ 56%]

...播放音频? private elentAutio: HTMLAudioElement; constructor(){     super();     this.btn_play.on(Laya.Event.CLICK, this, this.onPlay);     this.elentAutio = <HTMLAudioElement>document.createElement('audio');     this.elentAutio.src="res/10.mp3"; } onPlay():void{     this.elentA...

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

189. Animation未释放资源的引用 [ 56%]

... 先上源码 destroy(destroyChild: boolean = true): void { this.stop(); super.destroy(destroyChild); this._frames = null; this._labels = null; }animation的destory方法,只是将_frames赋值为null,并没有对_frames的graphics进行destroy, 这样会导致动画的图集引用计数不会...

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

190. 3d中 在update里对局部坐标赋值,当父物体运动起来就会有问题 [ 56%]

...起来就会有问题 public _lateUpdate(state: Laya.RenderState): void { super._lateUpdate(state); this.gun.transform.localPosition=this.pos; } 2017-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****75...

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