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

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

431. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 59%]

...private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png",...

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

432. 输入设备-指南针 [ 59%]

...esText.pos(0, compassImg.y + 400); degreesText.fontSize = 100; degreesText.color = "#FFFFFF"; } // 方位指示器指向当前所朝方位。 function createDirectionIndicator() { directionIndicator = new Sprite(); Laya.stage.addChild(directionIndicator); directionIndicator.alpha = 0.8; directionInd...

来源: Laya_示例 发布时间: 20251209

433. 在list的data中给HTMLDIVElement 的innerHTML赋值不成功 [ 59%]

...sticDistance = 200; var arr:Array=[]; news.innerHTML='<span style="color:#75AC78;font-size:20px;">'+"fgdfdfgdfgdfgdf"+'</span>'; for (var i:int = 0; i < chatListData.length; i++){ var obj:Object={ day:{text:chatListData[i].day}, time:{text:chatListData[i].time}, ne...

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

434. laya.d3.core.render.posteffect.ColorGradEffect_API3.0 [ 59%]

...rited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/ColorGradEffect" ColorGradEffect Class ColorGradEffect ColorGradEffect 类用于创建调色Effect Hierarchy PostProcessEffect ColorGradEffect Index Constructors constructor Properties _lutTex SHADERDEFINE_ACES SHADERDEFINE_C...

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

435. 输入设备-指南针 [ 59%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.create...

来源: Laya2.0_示例 发布时间: 20251209

436. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 59%]

...rue, the texture will be flipped vertical. Default is false. * @param clearColor Optional. If provided, the texture will be cleared to this color before drawing. Default is null. * @returns The drawn RenderTexture2D object. * @ZH 绘制当前对象到一个 Texture 对象上。 * @param canvasWidth ...

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

437. 高级应用-实时阴影 [ 59%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 3; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影...

来源: Laya_示例 发布时间: 20251209

438. 一个简单的跑酷曲面shader分享 [ 59%]

...tor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static initShader() { var attributeMap: object = { "a_Position": Laya.VertexM...

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

439. 为什么我的hello laya是这样的 [ 58%]

... Laya.init(800,400); var txt=new Laya.Text(); txt.text="Hello World"; txt.color = "#ffffff"; Laya.stage.addChild(txt); 就这么两行啊 附件 : --> 2018-10-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya...

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

440. 输入设备-地图 [ 58%]

...ew Text(); Laya.stage.addChild(infoText); infoText.fontSize = 50; infoText.color = "#FFFFFF"; infoText.size(Laya.stage.width, Laya.stage.height); } // 更新设备位置 function updatePosition(p) { // 转换为百度地图坐标 var point = new BMap.Point(p.longitude, p.latitude); // 把原始坐...

来源: Laya_示例 发布时间: 20251209