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

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

751. 关于Panel的双指响应问题 [ 51%]

...{         Laya.loader.load("../../res/ui/dialog (3).png", Laya.Handler.create(this, function(){     var dialog = new Image("../../res/ui/dialog (3).png");     dialog.scaleX = 2;     dialog.scaleY = 2;     var panel = new Panel();     panel.vScrollBarSkin = "";     panel.hScrollBarSki...

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

752. 通过Spine工具导出缩小了比例,游戏中显示部分节点坐标和比例出错 [ 51%]

....Skeleton();         tmpSpine.load("spineFile/6402.sk",Laya.Handler.create(this,()=>{             tmpSpine.showSkinByIndex(2);//皮肤ID:1,2             tmpSpine.play("idea",true);         }),1);         tmpSpine.x = 365;         tmpSpine.y = ...

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

753. 分享:Skeleton下Event.LABLE('label')事件的使用 [ 51%]

... "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) if(tEventData.name=="'fall'") { trace('fall'); } else if(tEventData.name=="'jump'") { trace('jump'); } else if(tEventData.name=="'stand'") { trace('stand'); } else if(tEventData.name=="'walk'") { trace('...

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

754. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 51%]

...ew Laya.Sprite(); sp.loadImage("res/apes/monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); ``` loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 1. **直接调用size设置:** ```javascript Laya...

来源: Laya2.0_文档 发布时间: 20210715

755. 求助关于TiledMap的版本问题 [ 51%]

...ectangle(0, 0, Browser.width, Browser.height); //创建TiledMap地图 tMap.createMap("res/TiledMap/orthogonal-outside.json",viewRect, Handler.create(this, this.onCreateMapLoaded)); } private function onCreateMapLoaded():void { trace("loaded..."); } } } testTiledMap.zip 2018-04-28 2 2 分享 微博 Q...

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

756. this.scene.physicsSimulation.rayCastAll 报错 [ 51%]

...ya.Scene3D.load('LayaScene_OldHouse/Conventional/OldHouse.ls',Laya.Handler.create(this,this.onComplete)); 的onComplete方法进行赋值的吗?这里赋值的onComplete(scene) 应该是Scene3D 的吧? 努力 • 2019-05-24 21:22 大佬,我将代码上传了,您看一下,谢谢

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

757. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 51%]

...ge.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?谁给解释一下啊 2018-10-10 添加评论 免费帖 --> 分享 微博 QZONE...

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

758. laya里的相机镜头 与u3的插件里的不一致, [ 50%]

...cene3D.load("LayaScene_game_scene/Conventional/game_scene.ls",Laya.Handler.create(this,function (scene) {             Laya.stage.addChild(scene); } 我这样导入场景,不new相机,就是在unity运行时什么样LayaBox运行也什么样 如果你在Laya中又重新new了相机,比如...

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

759. 启用版本管理后,加载的资源很奇怪的在正确的路径后面又加了一次路径 [ 50%]

...s/samplegame.proto", ];   Laya.loader.load(this._proto_files,Laya.Handler.create(this,this.OnProtoLoaded),null, Laya.Loader.TEXT);     打包的时候在release/web下面有了protos/loginxxxxxxxx.proto这样的文件 然后运行的时候,报了这样的错 GET http://xxxxxxxx.com/newgame/pr ....

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

760. 模仿教程里的打地鼠写的代码,运行报错 [ 50%]

...cccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addChild(tempBG); } })();在background.js里是这样写的 var background = (function (_super) { fu...

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