大约有 2,416 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0100 秒)
Laya_社区(1456) Laya2.0_文档(592) Laya3.0_文档(82) Laya3.0_api(65) Laya_示例(61) Laya2.0_api(60) laya_api(54) Laya2.0_示例(46)
...溃  - Laya是有提供忽略文件的选项的,but ! 它是隐藏的. 你可以通过命令来显示一些隐藏的文件 但是 .DS_store还是无法显示的 至少在您的laya编辑器里 您是无法直接添加它...
来源: Laya_社区 发布时间: 20220207
...ar p:Image; for(var i:int = 0;i<len;i++){ p = new Image("test/footprint.png"); p.pos(i*PATH_LEN,0); arr.push(p); _path.addChild(p); } //注释下面这行就正常了 _path.scrollRect = new Rectangle(0,0,(len-1)*PATH_LEN,58); btn_start.clickHandler = new Handler(this,StartMove,[len]); } private f...
来源: Laya_社区 发布时间: 20171113
...) }; console.log("图片加载中...") image.src = canvas.toDataURL("image/png"); return image; } </script>2. 在 as 代码中加入如下函数: private static var createTextureCallBack:Function; public static function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ crea...
来源: Laya_社区 发布时间: 20170718
...ps://www.layaair.com/3.x/de ... atlas https://www.layaair.com/3.x/de ... o.png 不带安卓工程的代码见附件,名字叫testspine.zip 带安卓工程的代码因为太大无法上传,请点击链接下载http://47.94.158.137:8999/mctgd1117/testspine%E5%B8%A6%E5%AE%89%E5%8D%93%E5%B7%A5%E7%A8...
来源: Laya_社区 发布时间: 20231221
...= Laya.Browser.createElement("img"); tipElmt.src = getResURI("ui/guide_tip.png"); tipElmt.style.zInddex = Laya.Render.canvas.style.zIndex + 2; Laya.Browser.document.body.appendChild(tipElmt); function fitDOM() { Laya.Utils.fitDOMElementInArea(videoElmt, reference, 0, 0, reference.width, reference.he...
来源: Laya_社区 发布时间: 20180802
...ull, "json"); Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handler.create(this, this.nlll), null, "image"); 一样的代码,上面加载json就可以,下面加载image就不行。。。什么错也不报,,就是加载不出来没有任何反应 附件 : --> 2019-10-...
来源: Laya_社区 发布时间: 20191024
... = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, }); sp = new Laya.Sprite(); w = size/5, h=size; sp....
来源: Laya_社区 发布时间: 20180625
...r": { "0": 0, "1": 1, "2": 0, "3": 1 }, "textureFileName": "comp\\clip_num.png", "emissionRate": 0, "minHorizontalVelocity": 0, "emitterType": "null", "textureCount": 1, "minVerticalVelocity": 0, "boxEmitterVelocityAddVariance": { "0": 0, "1": 0, "2": 0 }, "ringEmitterCenterPosition": { "0": 0, "1":...
来源: Laya_社区 发布时间: 20180109
...-----------------3"); //存储文件的方 Laya.Browser.window.conch.saveAsPng( arrayBuff,width,height,Laya.Browser.window.conch.getCachePath()+"/test.png" ); console.log("onCharge-------------------------4"); Laya.Browser.window.globalImage = window.document.createElement("img"); console.log("onCha...
来源: Laya_社区 发布时间: 20170609
...ector4(1.3, 1.3, 1.3, 1); material.diffuseTexture = Texture2D.load("res/bg.png"); plane.meshRender.material = material; //生成坐标中心,其实是球体 var sphere = scene.addChild(new MeshSprite3D(new SphereMesh(0.05,100,100))) as MeshSprite3D; var material = new StandardMaterial(); material....
来源: Laya_社区 发布时间: 20170314