大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0140 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
...,, //绘制一个蓝色方块,不被抠图 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
...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
... — 类的完全限定名称。如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
...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
...边界 private visualizeBoundaries() { const graphics = new Laya.Sprite(); this.owner.addChild(graphics); this.addBoundaryLabels(); } private addBoundaryLabels() { const minXLabel = new Laya.Text(); minXLabel.text = `min...
来源: Laya_社区 发布时间: 20251125
...//渲染到纹理的相机 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
....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
...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
没有预加载的图片怎么获取width和height ? new了一个Image,使用的没有预加载的图片,getGraphicBounds得到的width 和 height 都是 0,,怎么知道width和height? 2017-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20170118
...溃 scene.physicsSimulation.shapeCastAll(colliderShape, new Laya.Vector3(-10,0,0), new Laya.Vector3(10,0,0), hitResults); // ---------代码结束 // ---------这部分代码不会崩溃 // scene.physicsSimulation.raycastAllFr...
来源: Laya_社区 发布时间: 20200530