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

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

461. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 84%]

... 微信 编号9527 赞同来自: private testFilter(){     let spirit = new Laya.Sprite();     this.displayObject.addChild(spirit);     spirit.x = 360;     spirit.y = 640;     const url = "lang/zh-cn/spine/hero/zhujue_attack/zhujue_attack.skel"     Laya.loader.load(url).then(()=>{...

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

462. iphoneX 用微信打开游戏,,做新手引导 抠图有问题,,, [ 84%]

...,,   //绘制一个蓝色方块,不被抠图 this.gameContainer = new Sprite(); Laya.stage.addChild(this.gameContainer); // 引导所在容器 this.guideContainer = new Sprite(); // 设置容器为画布缓存 this.guideContainer.cacheAs = "bitmap"; Laya.stage.addChild(this.guideContainer); t...

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

463. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 84%]

...ion init(e) { var width = stage.width; var height = stage.height; var bg = new Sprite(); stage.addChild(bg); bg.texture = e; bg.on("click", this, onClick); var guideContainer = new Sprite(); stage.addChild(guideContainer); guideContainer.mouseEnabled = true; guideContainer.cacheAs = "bitmap"; var hi...

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

464. Laya.class问题 [ 84%]

... — 类的完全限定名称。如Laya.class(a, "a.b.c", null)可以通过new a.b.c()创建实例 superClass:Function — 父类引用 miniName:String — 通过Laya.miniName访问类,只有在fullQulifiedName以laya开头时生效。如Laya.class(a, "a.b", null)可以通过new a.b()创建实例...

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

465. 目标纹理的使用(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 84%]

...escript //渲染到纹理的相机 var renderTargetCamera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderT...

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

466. 目标纹理的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 84%]

...//渲染到纹理的相机 var renderTargetCamera: Camera = scene.addChild(new Camera(0, 0.3, 1000)); renderTargetCamera.transform.position = new Vector3(-28.8, 8, -60); renderTargetCamera.transform.rotate(new Vector3(0, 180, 0), true, false); //选择渲染目标为纹理 renderTargetCamera.renderT...

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

467. 骨骼动画进阶(TypeScript-2D进阶篇(TS)-动画进阶) [ 84%]

....WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("res/spine/goblins/goblins.sk"); } onError() { console.log("parse...

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

468. Laya2.0 的3d截图 [ 84%]

...LContext as any).mainContext;         let pixels:Uint8Array = new Uint8Array(gl.drawingBufferWidth*gl.drawingBufferHeight*4);         gl.readPixels(0,0,gl.drawingBufferWidth,gl.drawingBufferHeight,gl.RGBA,gl.UNSIGNED_BYTE,pixels);         let sp:Laya.Sprite = new La...

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

469. 没有预加载的图片怎么获取width和height ? [ 84%]

没有预加载的图片怎么获取width和height ? new了一个Image,使用的没有预加载的图片,getGraphicBounds得到的width 和 height 都是 0,,怎么知道width和height? 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

470. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 84%]

...ya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, f...

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