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

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

791. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 61%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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

792. meshRender修改材质问题 [ 61%]

... (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:483:28) at LoaderManager.__proto._endLoad (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12841:11) at Loader.onLoaded (file:///E:/LayaWorkspace/javaScriptLaya/bin/libs/laya.core.js:12818:10) at EventHandler.__proto.runWi...

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

793. 如何用代码控制panel的vscroll滚动幅度 [ 61%]

...ueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json",Handler.create(this,...

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

794. 小游戏导入手机后Sprite.Mask没有正常显示 [ 61%]

...,微信开发工具里好好的,导入手机里就不行了- -   Laya.loader.load(url, Handler.create(this, function () { var t = Laya.loader.getRes(url) var sp = new Sprite() sp.graphics.drawTexture(t, 0, 0, 80, 80) that.addChild(sp)  var cMask = new Sprite() cMask.graphics.drawCircle(40, 40,...

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

795. 报错,这不是个构造函数 "StartPage is not a constructor" [ 61%]

...n(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage...

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

796. 3D开启多线程报错 [ 61%]

3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true;   加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh");   报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...

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

797. 火狐浏览器上webgl异常 [ 61%]

...上下滑动了 怎样获取浏览器地址传过来的GET参数 请问下loader如何强制加载一个文件,避免浏览器的缓存 请问有人遇到oppo小游戏字体显示异常 问题状态 最新活动: 2018-05-08 17:35 浏览: 1864 关注: 2 人 jacksing888 • 2017-11-20 14:12 更新...

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

798. Dialog.show 的 showEffect参数在微信真机上的问题 [ 61%]

...个测试,在微信小游戏上显示一个Dialog 代码如下: Laya.loader.load(["res/atlas/comp.atlas"], Laya.Handler.create(this, function(){ console.log("load atals ok"); var dlg1:ui.TestDlgUI = new ui.TestDlgUI(); Laya.stage.addChild(dlg1); dlg1.show(); }));在微信小游戏的模拟器上...

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

799. 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? [ 61%]

...红框内的修改  if (Browser.onMiniGame){ console.log(1); tSound=Laya.loader.getRes(url); } if (!soundClass)soundClass=SoundManager._soundClass; if (!tSound){ console.log(2); tSound=new soundClass(); tSound.load(url); if (Browser.onMiniGame){ Loader.cacheRes(url,tSound); } }; 2个if判断...

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

800. ColorPicker组件的皮肤制作标准是? [ 60%]

...lor = "#efefef";//设置画布的背景颜色。               Laya.loader.load("resource/ui/color.png", Handler.create(this,onLoadComplete));//加载资源。           }           private function onLoadComplete():void           {               trace("资源加载完...

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