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

大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0049 秒)

1191. 原生js传图片給laya的sprite,怎么设置其等比缩小? [ 52%]

...后的图片还是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

1192. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 52%]

...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

1193. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 52%]

...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

1194. HTMLDivElement下划线换行时,下划线颜色错误 [ 52%]

...,会用到这一段代码,错误应该是这段代码造成。 __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

1195. 特效LOADED监听不到 [ 52%]

...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

1196. 集成LayaPlayer运行器的ipa包 [ 52%]

...载layaplayer, 我在tools > Build App (standalone 没打勾)按start creating 出了一个android studio project 打开android studio 打包 然后就可以了 Laya_Aaron • 2018-06-27 15:07 构建的也是layaplayer自动直接运行游戏地址,如果地址有问题,就会停在 输入...

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

1197. 发布到微信小游戏后Timer的getHandler报错了 [ 52%]

...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

1198. 使用IDE打包图集工具出来的atlas,调用clearRes无法卸载资源 [ 52%]

...载时时这样调用 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

1199. 【laya2.0】加载并且显示图片,并且让该图片居于舞台中央,怎么写? [ 52%]

...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

1200. Swift中接入Native,执行完drawInRect后不执行update了! 附重现Demo! [ 52%]

...o示例 为什么ani动画执行的不是按中心点执行的 Laya.loader.create 进度回调函数执行两次 【附上DEMO】使用2.0.1发布,在微信版本低于7.0.3的手机上会出现画面撕裂!! layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 ...

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