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

大约有 769 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0064 秒)

361. spine 播放错乱 [ 65%]

...parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / 2, Laya.Browser.height / 2 + 100); //this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.Event.STOPPED, this, this.play); this.play(); } private onError()...

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

362. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 65%]

...我Event.COMPLETE写错了?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     var name=_outHitAllInfo<em>.sprite3D.name;                ...

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

363. Cannot read property 'rayCast' of undefined [ 65%]

...aya.Config3D(); config3D.isAlpha = true; Laya3D.init(0, 0, config3D); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //2.设置舞台背景色为空 Laya.stage.bgColor = null; this.scene = new Laya.Scene3D(); this.camera = new Laya.Camera(0, 0.1, 100); ...

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

364. 关于对象池Laya.Pool的用法 [ 65%]

...{ var sp = Pool.getItemByClass(SPRITE_SIGN, Sprite) sprites.push(sp); Laya.stage.addChild(sp); } } initialize(); Laya.stage.on("click", this, function() {     var sp;     for(var i = 0, len = sprites.length; i < len; i++)     {         sp = sprites.pop();    ...

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

365. 【官网代码】加载dom音频报错,怎么回事? [ 65%]

...ext();analyser = audioContext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}priv...

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

366. 相对布局,重新适应问题 [ 65%]

...top = 0,left = 0,right=0,bottom=0) 变化,必须手动监听Laya.stage.on(Laya.Event.RESIZE,,)来二次适配吗 // this.imgBG.left = 0 ; // this.imgBG.right = 0 ; // this.imgBG.top = 0 ; // this.imgBG.bottom = 0 ;   还有一个就是 layoutEnabled 属性 在什么情况用!   2...

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

367. 使用mask后,只要调用 Laya.Resource.destroyUnusedResources() 就会引起报错 [ 65%]

...aphics.drawRect(0, 0, 200, 200, "#0xFFFF00"); bgSprite.pos(300, 300); Laya.stage.addChild(bgSprite); let mask = new Laya.Sprite(); bgSprite.mask = mask; mask.graphics.drawCircle(0, 0, 100, "0x0000FF"); window.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { ...

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

368. layaair怎样使用嵌入到web项目中 [ 65%]

...屏项目,需要在页面中的某个容器里使用layaair。 试过把stage添加到容器中,但stage的尺寸还是获取的屏幕的尺寸而不是容器的尺寸,鼠标事件也有错位现象 2017-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

369. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 65%]

...了第:"+index+"个btn"); } //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonCli...

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

370. Texture内存回收(ActionScript-2D进阶篇(AS3)-性能优化) [ 65%]

...1000, 800); //显示一个图片 sp = Sprite.fromImage("res/bg.jpg"); Laya.stage.addChild(sp); //显示一个动画 var ani:Animation = new Animation(); ani.loadAtlas("res/fighter.atlas"); ani.play(); ani.pos(400, 200); sp.addChild(ani); Laya.stage.on("keydown", this, onKeyDown); Stat.show(); } priv...

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