大约有 778 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
Laya_社区(405) Laya2.0_文档(169) Laya_示例(108) Laya2.0_示例(67) Laya3.0_文档(16) Laya3.0_api(11) Laya2.0_api(2)
... private var log:ILogger; } public function Game() { CONFIG::debug { log = Log.getLogger("Game"); } this.addEventListener(Event.ADDED_TO_STAGE, onAdde...
来源: Laya_社区 发布时间: 20200217
...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
...游戏报错 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
...在这个类里调用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
...ate(this, onSoundProgress, null, false)); //游戏资源加载进度函数 function onSoundProgress(pro) { console.log("sound" + pro); } 这样写哪里错了? 2016-12-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个...
来源: Laya_社区 发布时间: 20161216
...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
...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
...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
...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
....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