大约有 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)
... Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPi...
来源: Laya_社区 发布时间: 20171120
...ter.Bodies.circle(bodyLocationArr[i].x, bodyLocationArr[i].y, 50,Options); this.boxBody = []; this.boxBody.push(bodyA); var img1 = new Laya.Sprite(); img1.loadImage("../xxxx.png",0,0,100,100); var img2 = new Laya.Image(); img1.addChildAt(img2,0); var img3 = new Laya.Image(); img1.addChildAt(img3,1);...
来源: Laya_社区 发布时间: 20180901
...信息是有个alert弹窗,上面的文字: exception info:[TypeError: this._nativeObj.addGlobalValueDefine is not a function.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line 4664. 附件 : --> 2020-02...
来源: Laya_社区 发布时间: 20200218
...题 class Scene_Test { constructor() { super(); Laya.timer.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。 请问有人碰到过...
来源: Laya_社区 发布时间: 20180808
...urceVersion.enable("version.json?"+Math.random(), Handler.create(this, beginLoad)); 熊猫大侠 • 2018-09-07 16:44 @155*****359:加载的时候 后面跟一个随机数 每次都会拉取最新的 155*****359 • 2018-09-07 17:00 嗯嗯,明白了。多谢朋友! 。。 • 2018-11-2...
来源: Laya_社区 发布时间: 20180518
...Laya.Tween.to(spring2,{scaleX:1.0,scaleY:1.0},500,null,Laya.Handler.create(this,function(){ if(!spring2.destroyed){ // 添加判断后就不出bug了 Laya.Tween.to(spring2,{alpha:0},300,null,Laya.Handler.create(this,function(){ if(cal...
来源: Laya_社区 发布时间: 20170217
...oTFmekUA/96 现在我试了这两种方案,都是不行的 方案1: this.img_head.loadImage(imgUrl, 0, 0, 96, 96); 方案2: var p: Laya.HTMLDivElement = new Laya.HTMLDivElement(); p.name == "headIcon"; this.img_head.addChild(p); var html: string = "<img src='" + imgUrl + "'/>";// styl...
来源: Laya_社区 发布时间: 20170709
...stage.bgColor = "#ffffff"; if (Browser.onMiniGame) { Laya.timer.once(1000, this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主域往子域透传消息 __JS__('wx').postMessage({type:"resizeShared"...
来源: Laya_社区 发布时间: 20180525
...-06-30 12:21 哦 仔细看了一下,CameraMoveScript里也有一行代码this.camera.transform.localRotation = this.tempRotationZ; 也不是用cloneTo的,还是一样的问题,如果我用cloneTo就无法设置,
来源: Laya_社区 发布时间: 20170628
...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...
来源: Laya_社区 发布时间: 20181227