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

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

1. js飞机大战报错 请大神看看 [ 100%]

... not defined runtime运行报错! 启动引擎报错 mPlugin.game_plugin_init(3); 2.2.0beta4,微信上动态合批报错. 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 用了ByteArray的zlib.min.js后报错 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (...

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

2. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 99%]

... • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"; this.init() } ini...

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

3. 继承自Laya.BaseMaterial并且自定义Shader的的自定义材质如何设置透明渲染 [ 91%]

...terial { public static _mainTex : number; public static _mainCol : number; inited : boolean = false; constructor() { super(); if(!this.inited) { CMat._mainTex = Laya.Shader3D.propertyNameToID("u_MainTex"); CMat._mainCol = Laya.Shader3D.propertyNameToID("u_MainCol"); CMat.initShader(); this.inited = ...

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

4. playSound和playMusic结束时候有异常抛出 [ 89%]

...程序入口 class GameMain {     constructor()     {         Laya.init(640,1100, Laya.WebGL);         //设置适配模式         Laya.stage.scaleMode = "showall";         //设置剧中对齐         Laya.stage.alignH = "center";         //设置横竖屏         L...

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

5. layacmd使用ui命令,读取文件D:\s3mh5_client\laya\pageStyles.xml出错 [ 89%]

...服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 问题状态 最新活动: 2017-10-28 14:22 浏览: 2026 关注: 1 人

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

6. 在Laya中使用Matter.js的最简示例 (JS) [ 85%]

...aya的渲染器,而不是matter自带的渲染器 2、必须执行 Laya.init(stageWidth, stageHeight, WebGL);否则会报错:TypeError: Cannot read property 'frameLoop' of nullvar Browser = Laya.Browser; var WebGL = Laya.WebGL; var Matter = window.Matter; var LayaRender = window.LayaRender; var...

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

7. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 79%]

示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Conn...

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

8. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 79%]

... 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = new Sprite(); // 城堡 this.tower = new Spr...

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

9. 2.0.0beta5 can not find class Laya.Text [ 78%]

...iew.scene undefined Warning!,this class[MiniAdpter] already exist: Object {init: } 2.0.0编译报错Cannot find global type 'Array' 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. LayaNative2.2运行报错。:getBitmapData Cannot find the specified character in all fon...

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

10. socket大型项目回调 [ 76%]

...private handshakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = fun...

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