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

大约有 1,282 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

771. SCALE_FIXED_WIDTH适配屏幕的问题 [ 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_社区 发布时间: 20181213

772. 2d粒子旋转时大小也会随着改变 [ 61%]

2d粒子旋转时大小也会随着改变 代码: Laya.loader.load("res/Particles/Tail.part", Laya.Handler.create(this, this.OnPariticleAssetsLoaded), null, Laya.Loader.JSON); OnPariticleAssetsLoaded(setting:Laya.ParticleSetting) { let sp = new Laya.Particle2D(setting); sp.pos(200, 200); sp.emitt...

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

773. 设置适配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

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

775. 嵌入字体 · LayaAir3.0文档 · LAYABOX [ 61%]

...通过注册时传入的字体名称layabox使用关联字体2。通过ttfloader下载远程字体文件,注册时传入的字体名称为ttf文件名嵌入字体 1. 字体介绍 由于andriod设备种类繁多、android的字体文件不统一,每个系统默认的中文字体路径有差异(...

来源: Laya3.0_文档 发布时间: 20240528

776. 如何用代码控制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

777. 小游戏导入手机后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

778. 报错,这不是个构造函数 "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

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

780. 火狐浏览器上webgl异常 [ 60%]

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

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