大约有 61 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0033 秒)
...行域错了,this变成window了。简单的解决办法是回调改成Handler,你这个也可以看下你添加回调方法得地方,改下也可以。,方法后面增加.bind(this) 2017-01-18 0 0 分享 微博 QZONE 微信 xuhu1518 赞同来自: RequestConfig.instance.getRequestConfig(Stri...
来源: Laya_社区 发布时间: 20170118
...hongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { //纹理加载完成后赋值 material.albedoTexture = tex; })); //将材质赋值给自定义模型 box.meshRenderer.material = material; ``` (图1) 当然,...
来源: Laya2.0_文档 发布时间: 20210715
...下,最后回到原大小或原位置,应该用什么缓动模式 Laya.Handler.create和new Laya.Handler有啥区别 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 atlas目录下.json文件与.atlas的区别 LAYAAIR...
来源: Laya_社区 发布时间: 20181219
...在bin/h5目录下 下面是代码: Laya.loader.load("Base.min.js", Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{ //加载完回调 //__JS__('window.eval(data + "//# sourceURL=" + "Base.min.js")'); //new需要的类 //_base = new Browser.window.Base(); _base = __J...
来源: Laya_社区 发布时间: 20180507
...取鼠标滚轮是放大开始缩小 怎么获取对象的坐标 tree mouseHandler 怎么获取条目 怎样获取浏览器地址传过来的GET参数 Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 问题状态 最新活动: 2018-05-30 23:03 浏览: 1268 关注: 2 人 冰水blue...
来源: Laya_社区 发布时间: 20180530
.../加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** * 加载完成 */ onComplete(scene){ // 将场景加到舞台上 Laya.stage.addChild(scene); } } ``` 运行效果(图2): (图2)
来源: Laya2.0_文档 发布时间: 20210715
...aya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("...
来源: Laya_社区 发布时间: 20160722
...值? private jsonParse() { Laya.loader.load("res/atlas/resTest0.json", Handler.create(this, this.onLoaded), null, Loader.JSON); } private onLoaded() { var json : JSON = Laya.Loader.getRes("res/atlas/resTest0.json"); var jsTx = JSON.stringify(json); } 已经通过上面代码获取整个json内容...
来源: Laya_社区 发布时间: 20171016
...个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上是正常的,但是在手机上就看不...
来源: Laya_社区 发布时间: 20180525
...colorPicker.skin = this.skin; colorPicker.pos(100, 100); colorPicker.changeHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log...
来源: Laya3.0_文档 发布时间: 20240910