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

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

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

...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);}private fu...

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

422. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 48%]

...{ this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document.getElementById("layaCanvas"); var spi = new Laya.Sprite(); var spi1 = new Laya.Sprite(); var spi2 = new Laya.Sprite(); this.tempTexture2D.loadImageSource(cans, true...

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

423. laya.d3.component.animation.KeyframeAnimations [ 48%]

...AnimationsProperties | Methods | Events Packagelaya.d3.component.animationClasspublic class KeyframeAnimationsInheritanceKeyframeAnimations Component3D EventDispatcher ObjectSubclasses RigidAnimations, SkinAnimations KeyframeAnimation 类用于帧动画组件的父类。 Public Properties Hide In...

来源: laya_api 发布时间: 20170929

424. laya.net.HttpRequest [ 48%]

...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...

来源: Laya2.0_api 发布时间: 20190513

425. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 48%]

... 2; ufo.y = Laya.stage.height / 2; ufo.play("ludo_ufo_kaishi", false); ufo.once(Laya.Event.STOPPED, this, () => { ufo.play("ludo_ufo_feixing", true); }); ufo.on(Laya.Event.LABEL, this, (e) => { if (e.name == "xiaoshi") { ufo.offAllCaller(this); // ufo.removeSelf();   } });  })); }  genSpine...

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

426. 图片像素精准点击问题! [ 48%]

...l(t: Laya.Image) { Laya.Tween.to(t, { scaleX: 0.95, scaleY: 0.95 }, 66); t.once(Laya.Event.CLICK, t, () => Laya.SoundManager.playSound(Laya.SButton.globalClickAudio, 1)); } private scaleBig(t: Laya.Image) { Laya.Tween.to(t, { scaleX: 1, scaleY: 1 }, 66); } } 2018-10-20 0 2 分享 微博 QZONE 微...

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

427. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 48%]

...口重新赋值。 > 动态修改摄影机视口 ```typescript Laya.timer.once(3000,this,function ():void { //获取第一个摄影的视口 var viewport1:Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var ...

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

428. 关于WebGL矢量图的遮罩问题 [ 48%]

...Laya.WebGL); } else{ Laya.init(1024, 1024); } //等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#fffff...

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

429. laya.d3.core.MeshRenderer [ 48%]

...事件。 EventDispatcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 Ev...

来源: Laya2.0_api 发布时间: 20190513

430. laya.d3.core.material.PBRMaterial_API3.0 [ 47%]

...bedoTexture detailNormalScale detailNormalTexture detailTilingOffset emissionColor emissionIntensity emissionTexture enableEmission enableVertexColor gpuMemory id materialRenderMode normalTexture normalTextureScale obsolute occlusionTexture occlusionTextureStrength parallaxTexture parallaxTextureSca...

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