大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...= new Laya.Scene(); //var scene = Laya.Scene.load('res/models/scene1.ls'); this.scene = Laya.stage.addChild(scene); if(!scene) return; var camera = this.scene.addChild(new Laya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new ...
来源: Laya_社区 发布时间: 20180126
...判断是否已经存在某个定时器。 比如:Laya.timer.once(3000, this, this.stopRoll); 怎样判断下是否有这个定时器?怎样判断? 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w...
来源: Laya_社区 发布时间: 20180502
...g", type:Loader.IMAGE}); Laya.loader.load(assets, Handler.create(this, loadMapBGComplete)); function loadMapBGComplete():void{ var tx:Texture = Laya.loader.getRes("map/157.jpg"); this._test.source = tx; } 我这张图是913X1400没有打成图...
来源: Laya_社区 发布时间: 20170411
... destroyItemsMovie() { let n: number = 25; while (--n > 0) { let mov0 = this["item" + n] as MovieClip; if (mov0) { mov0.visible && (mov0.visible = false); mov0.playing && mov0.stop(); mov0.parent && mov0.parent.removeChild(mov0); mov0.destroy(true); delete this["item" + n]...
来源: Laya_社区 发布时间: 20181025
...调方法赋值导致的,你可以赋值的方法后面增加上".bind(this)",或者回调方法用Handler.create(this,你的回调方法)。两种方法都可以解决你的问题! 2017-02-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...
来源: Laya_社区 发布时间: 20170211
...代码: override protected function initialize():void { on(Event.ADDED, this, onShow); on(Event.REMOVED, this, onHide); } protected function onShow():void { } protected function onHide():void { }我创建的View类 重写onShow方法可以正常使用,但dialog重写就没用,我看代码dialo...
来源: Laya_社区 发布时间: 20161220
...", type: Laya.Loader.FONT }); Laya.loader.load(assets, Laya.Handler.create(this, onAssetsLoaded)); function onAssetsLoaded(){ var bitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/fontWord.fnt"); //必出错 } 只要使用 Laya.Loader.FONT 必出错 难道是要改成 Laya.Loade...
来源: Laya_社区 发布时间: 20170329
...ntInvMat: Matrix4x4 = Transform3D._tempMatrix0; this._parent.worldMatrix.invert(parentInvMat); Vector3.transformCoordinate(value, parentInvMat, this._localPosition); 2020-05-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...
来源: Laya_社区 发布时间: 20200520
...1/Conventional/smoke.lh"]; Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是很慢,好久才进入到createBuild函...
来源: Laya_社区 发布时间: 20190702
...yRequest(): com.bigao.h5.proto.BinaryRequest { // return this.aaaa = Pool.getItemByClass(ProtoPool.PROTO_BINARY_REQUEST, com.bigao.h5.proto.BinaryRequest); // } // get getParams(): com.bigao.h5.proto.ParamsProto { // return Pool.getItemByCl...
来源: Laya_社区 发布时间: 20170807