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

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

3961. 竖屏游戏实现背景缩放铺满全屏,UI相对高度等比较缩放,UI位置始终按照竖屏比例显示在屏幕中间 [ 44%]

...少,Laya.stage.scaleMode使用哪种模式,Laya.stage.on(Event.RESIZE, this, onResize);如何处理比例问题? 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: ...

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

3962. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 44%]

...on (_super) {     function GameStart() {         GameStart.super(this);         Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode);             }   按下按键后一直输出undefined,在入口类...

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

3963. Opp rpk一启动就黑屏 [ 43%]

...age 05-31 15:57:02.604 17874 17959 E jswrapper: ERROR: Uncaught TypeError: this.drawImage is not a function, location: /data/user/0/com.nearme.instant.platform/app_game/app/com.fuck.module/1/libs/laya.core.js:0:0 05-31 15:57:02.604 17874 17959 E jswrapper: STACK: 05-31 15:57:02.604 17874 17959 E jsw...

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

3964. ja语言怎么样创建一个工具类在其他地方调用 [ 43%]

...的处理 var Load_ = (function (_super) { function Load_() { Load_.super(this); } //注册类 Laya.class(Load_, "Load_", _super); var _proto = Load_.prototype; _proto.run_Fast = function () { console.log("逻辑处理"); } return Load_; })(Laya.Sprite);我的代码,但是下面的继承位置Laya...

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

3965. LayaAir1.7.19.1 Beta预加载资源出问题 [ 43%]

...,还是加载失败了。 Laya.loader.create(urls, Laya.Handler.create(this, onComplete, [urls]), null, Laya.Scene); 跟Sprite3D有区别吗 188*****949 • 2018-07-26 11:31 这个问题还挺难搞的,因为只在我打包到远端加载的时候才会出问题,本地加载是ok的。到远...

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

3966. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 43%]

... 0; } export class TestClass2 extends TestClass { constructor() { super(); this.type = 1; } }测试代码如上所示,打印结果是:0,0,true,预期结果是:0,1,false才对。 获取TestClass2实例时,返回的是TestClass的实例对象,看了下源码,发现是获取类唯...

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

3967. 微信开发者工具问题 [ 43%]

...过WAGame.js:14 Wechat Lib:2.0.8, 2018.5.17 17:08:32 code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ} VM698:1 gameThirdScriptError Unexpected token in JSON at position 134;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 134     at JS...

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

3968. 请教文档中Graphic.drawTextures方法第二个参数的具体参数格式 [ 43%]

...;t.bitmap&&t.source){var i=t.uv,n=t.bitmap.width,s=t.bitmap.height;this.drawImageS(t.bitmap.source,i[0]*n,i[1]*s,(i[2]-i[0])*n,(i[5]-i[3])*s,t.offsetX,t.offsetY,t.width,t.height,e)}}   不过乱七八糟的。。。我本来想做场景过渡的,还是自己写算了。。。 2017-11-18 0...

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

3969. 安装layaair2-cmd一直失败 [ 43%]

...pm ERR! npm ERR! Failed at the gifsicle@4.0.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-02-11T...

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

3970. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 43%]

...../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { data = { "minStartColor": { "0": 1, "1": 0, "2": 0, "3": 1 }, "boxEmitterVelocity": { "0": 0, "1": 0, "2": 0 }, "minHorizontalStartRadian": ...

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