大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...后的图片还是100%显示,$pic.loadImage(_pic, 14, 192, 0, 0, Handler.create(this, function(){ $pic.height = 246; $pic.scaleX = $pic.scaleY; trace("$pic.width:" + $pic.width); })); 请问:我用原生上传了一张图片,然后传給layaAir,这个图片的scale是未知...
来源: Laya_社区 发布时间: 20170503
...s/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199...
来源: Laya2.0_文档 发布时间: 20210715
...s/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.stage.addChild(scene); var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.transform.localPosition = new Laya.Vector3(8.937199...
来源: Laya2.0_文档 发布时间: 20210715
...,会用到这一段代码,错误应该是这段代码造成。 __proto.createOneLine=function(startWord,lastWords,hasLine,graphic,recList){ var lineY=lastWords.y+lastWords.height; if(hasLine) graphic.drawLine(startWord.x,lineY,lastWords.x+lastWords.width,lineY,this.color,1); var hitRec=HTMLHitRe...
来源: Laya_社区 发布时间: 20190801
...ll"; Laya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } private function createAnimation(_e:*=null):void { var ani:Animation = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播...
来源: Laya_社区 发布时间: 20170628
...载layaplayer, 我在tools > Build App (standalone 没打勾)按start creating 出了一个android studio project 打开android studio 打包 然后就可以了 Laya_Aaron • 2018-06-27 15:07 构建的也是layaplayer自动直接运行游戏地址,如果地址有问题,就会停在 输入...
来源: Laya_社区 发布时间: 20180622
...etHandler (http://127.0.0.1:55825/game/code.js:22446:17) at Timer.__proto._create (http://127.0.0.1:55825/game/code.js:22320:21) at Timer.__proto.once (http://127.0.0.1:55825/game/code.js:22365:8) at MyData.__proto.catchCard ( 于是我定位到编译好的code.js, 是在Timer的这个函数中,...
来源: Laya_社区 发布时间: 20180520
...载时时这样调用 Laya.loader.load("res/MainBlood.atlas", Laya.Handler.create(this, this.onAtlasLoaded), null, Laya.Loader.ATLAS); 卸载时这样 Laya.loader.clearRes("res/MainBlood.atlas");在Laya.Loader.loadedMap里查找是没有了,但是统计面板的CurMem降不下来,工程已经打...
来源: Laya_社区 发布时间: 20180305
...ya.stage.addChild(logo); logo.loadImage("res/atlas/test.png", Laya.Handler.create(this, function(){ console.log("complete!!"); logo.x= Laya.stage.width/2-logo.width/2; logo.y= Laya.stage.height/2-logo.height/2; //logo.pos(Laya.stage.width/2-logo.width/2,Laya.stage.height/2-logo.height/2); })); 2018-...
来源: Laya_社区 发布时间: 20181010
...o示例 为什么ani动画执行的不是按中心点执行的 Laya.loader.create 进度回调函数执行两次 【附上DEMO】使用2.0.1发布,在微信版本低于7.0.3的手机上会出现画面撕裂!! layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 ...
来源: Laya_社区 发布时间: 20190510