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

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

1741. [LayaAir3]调用renderTexture.getDataAsync且同时勾选camera的hdr或msaa,webgl必报错 [ 45%]

...ext | WebGL2RenderingContext = Laya.WebGLEngine.instance.gl; let errorCode:number = gl.getError(); if(errorCode != 0) {     console.log("webgl报错了,错误代码为" + errorCode); }   3 camera勾选hdr或者msaa   运行报错 webgl报错了,错误代码为 1282   不勾选hdr msaa或者...

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

1742. 使用laya官方示例代码制作微信小游戏无法显示 [ 45%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

1743. 在List渲染的时候,在滚动一个list的时候,如何实现另一个list也跟着滚动,并且两个list同时滚动一模一样。 [ 45%]

...list渲染 */ private OnRankLisLabRender(item:component.UIButton, index: number): void { item.name = index.toString(); item.onClick(this,this.OnCliickItem); } /** 点击item单个道具的时候*/ private OnCliickItem(item: component.UIButton) { let index = parseInt( item.name ); }

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

1744. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 45%]

...击其中的任何一个list item,触发方法: private onSelect(index:number):void { console.log("当前选择的索引:" + index); //this.theItem = new DlgNote2(); //this.theItem.popup(); Laya.Scene.open("note2Dlg.scene"); } ——就是这里:我希望打开b的时候...

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

1745. 关于TS环境下的第三方库导入的疑问 [ 45%]

...了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; ..................................然后在ts文件中 new autobahn.引用华丽丽的出现了   如果谁有更好的方法 一起讨论研究.. 2018-08-05 1 4 分享 ...

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

1746. laya.d3.core.pixelLine.PixelLineMaterial [ 45%]

...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial  blend : int 获取混合方式。 PixelLineMaterial  blendDst : int 获取混合目标。 PixelLineMaterial  blendSrc : int 获取混合源。 PixelLineMaterial...

来源: Laya2.0_api 发布时间: 20190513

1747. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 45%]

...刷新几次就变大了。 class GameMain{     public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight;     constructor()     {         console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', pxTimes=' + GameMain.pxTimes);         Laya...

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

1748. UI-Label [ 45%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

1749. laya.d3.core.trail.TrailRenderer [ 45%]

...BaseMaterial> 获取浅拷贝材质列表。 BaseRender sortingFudge : Number排序矫正值。BaseRenderProtected Properties PropertyDefined By  _projectionViewWorldMatrix : Matrix4x4TrailRendererPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  ...

来源: Laya2.0_api 发布时间: 20190513

1750. laya.d3.core.material.StandardMaterial [ 45%]

...aTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial  ambientColor : Vector3 设置环境光颜色。 StandardMaterial  ambientTexture : BaseTexture 获取环境贴图。 StandardMaterial blend : int透明混合。Ba...

来源: laya_api 发布时间: 20170929