大约有 3,979 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0078 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
... function copyText(str) { new ShowDiv(str); } function ShowDiv(str) { var _this = this; this.AppConfirm = document.getElementById("AppConfirm"); if (this.AppConfirm == null) { this.AppConfirm = document.createElement("div"); document.body.appendChild(this.AppConfirm); this.AppConfirm.id = "App...
来源: Laya_社区 发布时间: 20181214
...分创建新的Texture, 基于这个Texture创建的image是不显示的 var texture:Texture = new Texture(Browser.window.sharedCanvas); var texture2:Texture = Texture.createFromTexture( texture, 0,0, 100, 100); //取前面100像素 var image:Image=new Image() image.texture=texture2 2018-05-31 添...
来源: Laya_社区 发布时间: 20180531
...3 0 10 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 这个进度条 var 为pro 另外一张图的类继承了之前页面发布生成的类,直接用this.pro.value 就能修改进度条的值 如果不明白问我,我一定讲到你明白为止,不要急,我有充足的耐心直到你...
来源: Laya_社区 发布时间: 20171213
...则是场景中没有光照,物体的环境光颜色是不会显示的! var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; directionLight.ambientColor = new Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Vector3(0.6, 0.6, 0.6); directionLight.di...
来源: Laya_社区 发布时间: 20170319
...在1.7.6版本是可以的。附上代码,麻烦大神看看,谢谢了var spr:laya.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); ...
来源: Laya_社区 发布时间: 20170825
...Matter到全局。具体做法,在matter.js最后面增加一行: var Matter = window.Matter; 同理,使用LayaRender的时候,在pc上调试直接使用LayaRender没任何问题,但是导出到wx小程序/游戏上会存在问题,需要使用window.LayaRender,如果觉得麻烦...
来源: Laya_社区 发布时间: 20180628
...bin\libs里找到laya.core.js,找到static drawToCanvas方法 ....不变 var dt = ctx._targets.getData(0, 0, canvasWidth, canvasHeight); //增加开始,进行反预乘处理 for (var i= 0, len= dt.length; i < len; i += 4) { var alpha = dt[i + 3] / 255.0; if (alpha > 0) { dt /= alpha; dt[i ...
来源: Laya_社区 发布时间: 20231110
...]).then( ()=>{ this.ShowContent(); } ); } private ShowContent(): void { var clipnum: Laya.FontClip = new Laya.FontClip(this._ClipNum); var fontClip: Laya.FontClip = new Laya.FontClip(this._FontClip); var testFontClip: Laya.FontClip = new Laya.FontClip(this.TestFontClip); var testClipNum: Laya.Fon...
来源: Laya3.0_文档 发布时间: 20240910
...改后的onLoaded函数。 function onLoaded(): void { //laya相关代码 var div:any = Laya.Browser.document.createElement("div"); div.style.width = "600px"; div.style.height = "400px"; Laya.Browser.document.body.appendChild(div); var myChart = new Laya.Browser.window.echarts.init(div); var option ...
来源: Laya_社区 发布时间: 20180707
自己画的view不支持鼠标点击吗? var path:Array=[["moveTo", 68, 1080], //画笔移到A点 ["lineTo", 500, 1080], //画到B点 ["lineTo", 650, 700], //再画到C点 ["lineTo", 340, 700], //继续画到D点 ["closePath"] //闭合路径 ]; btn_1=new View(); btn_1.graphics.drawPath(0, 0, pat...
来源: Laya_社区 发布时间: 20180709