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

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

431. 运行时网页黑屏,报错提示 [ 52%]

...nCurveWall方法内,instantiate复制对象内传入的参数拼写错误this.wallCurvePre没有,应该是改为this.wallCurve。 CubeLearn_Laya.zip 2022-03-31 1 1 分享 微博 QZONE 微信 Laya_Yan 赞同来自: 没有losd这个方法,您想用的是load吗? 2022-03-25 0 0 分享 微博 QZ...

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

432. clip里的WeakObject.I缓存的数据有问题 [ 52%]

...stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } }   2017-11-28 0 0 分享 微博 QZONE 微...

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

433. 发现TimeLine的一些问题,像是BUG [ 52%]

...er.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 Laya.stage.bgColor="#353535"; sp1=createSprite(50,50);//创建方块1 sp2=createSprite(250,50);//创建方块2 sp3=createSprite(450,50);//创建方块3 a...

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

434. 分享:如何使用IDE创建的动画.ani文件进行显示! [ 52%]

...用到的资源 Laya.loader.load("res/atlas/fly.json", Laya.Handler.create(this, onAssetLoaded), null, Laya.Loader.ATLAS); function onAssetLoaded() { var ani=new Laya.Animation();//创建animation实例 ani.loadAnimation('Ani.ani');//加载IDE制作的动画 Laya.stage.addChild(ani);//显示动画 a...

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

435. 特效LOADED监听不到 [ 52%]

...ya.stage.bgColor = "#232628"; Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS); } private function createAnimation(_e:*=null):void { var ani:Animation = new Animation(); ani.loadAtlas(AniConfPath); // 加载图集动画 ani.interval = 30; // 设置播放间隔...

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

436. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 52%]

...通过下面的代码,可以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new...

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

437. 休眠触发Event.BLUR的函数里有静音的话,恢复网页后报错 [ 52%]

...复网页后报错 游戏中有这样一个监听Laya.stage.on(Event.BLUR, this, onBlur); onBlur函数里有这样一个语句SoundManager.stopAll(); 进行了主动静音,这样做的目的是休眠后游戏自动结束,结束后的界面是没有背景音的,这样再复原时也不会播放...

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

438. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 52%]

...Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg...

来源: Laya2.0_文档 发布时间: 20210715

439. discard property,please use transform's property instead [ 52%]

...,             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion);         ...

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

440. TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'. [ 51%]

...y' of null alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] 问题状态 最新活动: 2018-03-09 16:34 浏览: 1564 关注: 3 人 stephen • 2018-03-06 09:12 应该不可能啊,这是官方实例。 stephen • 2018-03-05 12:03 版本是1.7.15...

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