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

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

381. 新手!谁懂得把下面两个文件转成layaair可以运行的代码 [ 69%]

...         private var log:ILogger;         }           public function Game()         {             CONFIG::debug             {                 log = Log.getLogger("Game");             }               this.addEventListener(Event.ADDED_TO_STAGE, onAdde...

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

382. 动态阴影被切割了?为啥没有显示完成的阴影 [ 69%]

...3 0 0 分享 微博 QZONE 微信 qqyemingqq 赞同来自: var LayaAir3D = (function () { var currentCube; var moveTimer; var currentTexture = 0; var prevBox; var boxList = []; var initBoxW = 1; var initBoxH = 1; var initBoxL = 0.5 function myCube(x, y, z, textureUrl, posX, posY, posZ) { posX = posX ...

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

383. 微信小游戏报错 the .lh file root type must be Scene [ 69%]

...游戏报错 Scene: the .lh file root type must be Scene,please use other function to load this file.;at api readFile success callback function Error: Scene: the .lh file root type must be Scene,please use other function to load this file. at Scene.__proto.onAsynLoaded (http://127.0.0.1:62629/game/c...

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

384. 在UI类里调用启动类的静态函数失败了 [ 69%]

...在这个类里调用GameMain.aaa();提示TypeError: GameMain.aaa is not a function 问题是我调用其他类的静态函数就没问题,请问这是什么?   /**Created by the LayaAirIDE*/ module view { export class GameInfo extends ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on...

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

385. js预加载声音报错 [ 69%]

...ate(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...

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

386. 微信小游戏编译出错 [ 69%]

...r Unexpected number in JSON at position 1;at api readFile success callback function SyntaxError: Unexpected number in JSON at position 2018-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来...

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

387. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 69%]

...3-28 10:33 var roleTemp = new Templet(); roleTemp.on(Event.COMPLETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/...

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

388. 没有人尝试使用3d物理引擎么 [ 69%]

...reBody:Object; private var world:Object; private var CANNON:Object; public function LayaAir3D() { //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode=Stage.SCALE_FULL; Laya.stage.screenMode=Stage.SCREEN_VERTICAL; //开启统计信息 Stat.show(); //添加3D场景 var scene...

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

389. 输入设备-指南针 [ 69%]

...ar directionIndicator:Sprite; private var firstTime:Boolean = true; public function InputDevice_Compass() { Laya.init(700, 1024, WebGL); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handle...

来源: Laya2.0_示例 发布时间: 20251130

390. 绑定播放完毕事件后的音频,如何暂停 [ 69%]

....SoundManager.playSound("res/audio/CoreState.mp3",1,new Laya.Handler(this,function(){ ..}) 如代码所示该音频绑定了事件, 然后调用Laya.SoundManager.stopSound("res/audio/CoreState.mp3")就直接报错 bundle.js:512 Uncaught RangeError: Maximum call stack size exceeded 多的也就...

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