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

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

941. 关于Panel的双指响应问题 [ 52%]

...setup() {         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.hScro...

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

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

...: Laya.Scene3D.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

943. this.scene.physicsSimulation.rayCastAll 报错 [ 52%]

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

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

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

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

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

945. Laya.Video内存泄漏问题 [ 52%]

...频'; Laya.loader.load([{url: video_url, type: Laya.Loader.BUFFER }], Laya.Handler.create(this, createVideo)); var v; function createVideo() { var video_file = new Blob([Laya.loader.getRes(video_url)], {type: 'video/webm'}); var blob_url = URL.createObjectURL(video_file); var video = new Laya.Video(...

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

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

...r = "#ffcccc"; //加载资源 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 (_sup...

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

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

....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function onEvent(e:*):void { var tEventData:EventData = e as EventData; Laya.stage.addChild(mLabelSprite); mLabelSprite.x = mStartX; mLabelSprite.y = mStartY; mLabelSprite.graphics.clear(); mLabelS...

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

948. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

...00); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, ...

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

949. ts项目加载version.json失败 [ 51%]

...Version.FILENAME_VERSION; Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.beginLoad)); } private beginLoad(): void { console.debug("aaaaaaaaaaaaaaaaa"); var img = new Laya.Sprite(); img.loadImage("res/test.jpg"); Laya.stage.addChild(img); } } new GameMain(); 调试的时...

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

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

..., "protos/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/newg...

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