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

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

801. 关于as版的Animation.createFrames()不能工作? [ 61%]

...ya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.loader.on(Event.ERROR, this, onError); } protected function onError(error:String):void { trace(error); } protected function onLoaded():void { Animation.createFrames(["war/h...

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

802. [LayaAir3]LayaAir3.3使用Fairygui开发UI,滤镜效果对不上 [ 61%]

...交 2 个回复 layabox 赞同来自: 开发者自己写的错误代码,this._closeButton = fgui.UIPackage.createObject("Package1", "image"); 应该改成this._closeButton = fgui.UIPackage.createObject("Package1", "Component1"); 2025-09-08 0 2 分享 微博 QZONE 微信 LayaAir大为 赞同来自:...

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

803. 2.0Beta版本 TiledMap没办法使用 [ 60%]

... 分享 微博 QZONE 微信 136*****787 赞同来自: 谢谢回复,但是this.tiledMap = new TiledMap(); Typescript会在这个地方崩溃 @Laya_Aaron 2018-09-18 0 0 分享 微博 QZONE 微信 tea 赞同来自: 我也遇到这个问题啦 按官方文档也是错 还没有人回复 2018-12-17 0 0...

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

804. 改变Laya.stage.scaleMode的问题 [ 60%]

...下列方式监听视窗改变的事件。Laya.stage.on(Laya.Event.RESIZE,this,this.doResize.bind(this));  并且会在该事件(doResize)中改变 Laya.stage.scaleMode 的值。doResize () { Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; }    但是我发现在onResize事件里面改变Laya.st...

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

805. typescipt在一定范围内加载图片按照等比排列 [ 60%]

...omp/image.png'];     myTestUI.imgList.renderHandler = new Laya.Handler(this, onImgListRender);   function onImgListRender(box: Laya.Box) {     let model = box.dataSource;     let panel = box.getChildByName('panel') as Laya.Panel;     let img = panel.getChildByName('img') as Laya.Ima...

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

806. drawTexture 画出来的数据会有以前的数据 [ 60%]

...th = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1); } private function runGame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.g...

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

807. Unity导出的特效,怎么缓存让第一次加载的时候不卡呢 [ 60%]

...));                     effect.once(Laya.Event.HIERARCHY_LOADED, this, function(){                         var particle = effect.getChildAt(0).getChildAt(0).particleSystem;                         particle.on(Laya.Event.COMPLETE, this, function(){             ...

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

808. laya.display.Node [ 60%]

...。功能同Laya.timer.clearTimer()。 Parameters caller:* — 执行域(this)。  method:Function — 结束时的回调方法。 contains()method  public function contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Parameters node:Node — 指定的 Node 节点对...

来源: laya_api 发布时间: 20170929

809. laya.d3.core.Sprite3D_API3.0 [ 60%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void clone clone(): Node Defined in laya/d3/core/Sprite3D.ts:300 克隆。 Returns Node 克隆副本。 contains contains(node: Node): boolean Inherited from Node....

来源: Laya3.0_api 发布时间: 20231115

810. 加载SK文件时,报错如下:Uncaught getUint16 error - Out of bounds [ 60%]

... - Out of bounds 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/...

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