大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0114 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
...c drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document.getElementById("layaCanvas"); var ...
来源: Laya_社区 发布时间: 20191230
... Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene()); scene.shadingMode = Laya.BaseScene.VERTEX_SHADING; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5)); camera.transform.rotate(new Laya.Vect...
来源: Laya_社区 发布时间: 20170515
...Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostProcess2D(); //创建变色效果 let colorEffect2D = new Laya.ColorEffect2D(); //创建后期处理效果数组 let effectGroup: Laya.PostProcess2DEffect[] = []; //将变色效果添加到后期处理效果数...
来源: Laya3.0_文档 发布时间: 20251010
...象。 ```typescript //聚光灯 var spotLight:SpotLight = scene.addChild(new SpotLight()) as SpotLight; //设置聚光灯颜色 spotLight.color = new Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = s...
来源: Laya2.0_文档 发布时间: 20210715
...ng 赞同来自: XiaozeRain private function createMap():void { tiledMap = new TiledMap(); tiledMap.createMap("tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoaded)); } private function onLoaded():void { var sp:Sprite=new Sp...
来源: Laya_社区 发布时间: 20170526
...= [ {url: "res/atlas/comp.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh.json",type: Laya.Loader.ATLAS}, {url: "res/atlas/newhfh2.json",type: Laya.Loader.ATLAS}, ]; Laya.loader.load(resArray, Laya.Handler.create(null, LoadResComplete)) } function LoadResComplete() { //背景颜色 Laya.stag...
来源: Laya_社区 发布时间: 20170228
...dow.BMap; // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口 private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init...
来源: Laya2.0_文档 发布时间: 20210714
...自己自定义的一个类是不是不能创建多个? g_uiScroll = new UIScroll(610,127); g_uiScroll.pos(70,30); scollbg.addChild(g_uiScroll); m_talkScroll = new UIScroll(610.0, 250); m_talkScroll.pos(60, 500); this.addChild(m_talkScroll); 2017-11-22 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20171122
...e { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest = new Laya.HttpRequest(); //设置超时时间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", "", "get", "text");//需要在resources文件夹下新建一个data.txt文件 //设置...
来源: Laya3.0_文档 发布时间: 20250104
..., this, onMouseUp); })(); function createCanvases() { var graphicsCanvas = new Sprite(); Laya.stage.addChild(graphicsCanvas); var liveGraphicsCanvas = new Sprite(); Laya.stage.addChild(liveGraphicsCanvas); liveGraphics = liveGraphicsCanvas.graphics; canvasGraphics = graphicsCanvas.graphics; } functi...
来源: Laya_示例 发布时间: 20251130