大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0407 秒)
Laya_社区(2836) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(55)
...acheAs = "normal"; private function createCity(worldMapData:Object):void { var itemObj:Object; for(var i:int = 0 ; i < worldMapData.items.length ; i++) { itemObj = worldMapData.items[i]; var city:City = new City(); city.x = itemObj.x; city.y = itemObj.y city.staticData = itemObj; city.mouseEnable...
来源: Laya_社区 发布时间: 20180327
...ype; _proto.__playAfterLoaded = function () { if (!this.__toPlays) return; var i = 0, len = 0; var toPlays; toPlays = this.__toPlays; len = toPlays.length; var tParams; for (i = 0; i < len; i++) { tParams = toPlays[i]; if (tParams[2]) { if (!(tParams[2]).isStopped) { this.play(tParams[0], tParams...
来源: Laya_社区 发布时间: 20201014
...串我无法输出,不知道是不是load写错了 function initJson() { var fileURL="json/ENDLESS_TABLE.json"; var strJson=Laya.loader.load(fileURL,Handler.create(this,readJsonFinish),null,Loader.JSON); function readJsonFinish() { console.log(strJson); var contact = JSON.parse(strJson);...
来源: Laya_社区 发布时间: 20151110
... 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