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

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

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

...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

432. 720 全景图 手指滑动 滑动距离 [ 85%]

... 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

433. 后期处理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 85%]

...Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostProcess2D(); //创建变色效果 let colorEffect2D = new Laya.ColorEffect2D(); //创建后期处理效果数组 let effectGroup: Laya.PostProcess2DEffect[] = []; //将变色效果添加到后期处理效果数...

来源: Laya3.0_文档 发布时间: 20251010

434. SpotLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 85%]

...象。 ```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

435. 区块地图增加对象 [ 85%]

...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

436. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 85%]

...= [ {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

437. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 85%]

...dow.BMap;       // 百度地图命名空间 private convertor = new this.BMap.Convertor(); // 坐标转换接口   private mapDiv; // 包含百度地图的div容器 ``` ### 二、接着是构造函数: ```typescript class WatchPosition { constructor() { Laya.init(1, 1); this.init...

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

438. 自定义panel类问题 [ 85%]

...自己自定义的一个类是不是不能创建多个?   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

439. 网络通信 · LayaAir3文档 · LAYABOX [ 85%]

...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

440. 其他引擎的Demo-Example_21 [ 84%]

..., 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