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

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

91. Resources already exist,is repeated loading 加载特效报重复加载 [ 72%]

...  Laya.stage.addChild(this.sp);          this.sp.x = Laya.stage.width / 2;         this.sp.y = Laya.stage.height / 2;     } } 打印的报错: 11111111111 TransformDemo.ts:73 Resources already exist,is repeated loading: D:/myLaya/myLaya/bin/res/threeDimen/particle/2d.lh laya...

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

92. 绘制三角形、多边形及根据数据绘制图案(JavaScript-LayaAir基础篇(JS)-矢量图) [ 71%]

...33);//五角星J点           canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");        } })(); ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例代码的写法,是不是感觉代...

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

93. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 71%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); function clickHandler(){...

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

94. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 71%]

...J点坐标               canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");       }     } } new laya.Sprite_DrawShapes(); ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例...

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

95. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 71%]

...                    canvas.graphics.drawPoly(Laya.stage.width / 2, Laya.stage.height / 2, path, "#FF7F50");             }     } } ``` 代码运行效果如下图所示: ​ ![blob.png](img/4.png) ​ (图4) ​ 通过上面的示例代码的写法,...

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

96. Text的中划线(删除线) [ 70%]

...awUnderline=function(align,x,y,lineIndex){             var lineWidth=this._lineWidths[lineIndex];             switch (align){                 case 'center':                     x-=lineWidth / 2;                     break...

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

97. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...现这种效果。 var data = '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px">' + '<em>I</em> like ' + '<span style="color:white; te...

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

98. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 70%]

...t.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private cl...

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

99. 资源加载 · LayaAir3.4 · 引擎文档 · LAYABOX [ 70%]

...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...

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

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

...* @en Draws the current object to a RenderTexture2D object. * @param canvasWidth The width of the canvas. * @param canvasHeight The height of the canvas. * @param offsetX The X-axis offset for drawing. * @param offsetY The Y-axis offset for drawing. * @param rt The render target. * @param isDrawRend...

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