大约有 523 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)
Laya_社区(428) Laya2.0_文档(51) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...xml文件,在layaAir下预加载该xml文件,在加载完成后通过Loader.getRes("xxx.xml")获取,该类型为XMLDom类型,直接针对XMLDom的实例进行逻辑操作即可
来源: Laya_社区 发布时间: 20161201
...正确获取宽高。 3. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png", Handler.create(this, function() { var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png"); var sp:Spirte = new Sprite(); sp.graphics.drawTexture(tex...
来源: Laya2.0_文档 发布时间: 20210715
...正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height);...
来源: Laya2.0_文档 发布时间: 20210715
...点击事件,急,大神帮看哈 预设怎么在代码中使用 Laya.Loader.getRes请教 IDE通过.ui自动生成的ui代码报错 刮刮卡效果实现 请教一个关于laya2.5d项目美术规范的问题哈 dialog 自定义关闭效果,效果执行完,弹窗无法关闭 请教下微信小...
来源: Laya_社区 发布时间: 20180316
... ```typescript // A plane receive shadow. var grid = scene.addChild(Laya.Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1...
来源: Laya2.0_文档 发布时间: 20210715
...lor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+thi...
来源: Laya_社区 发布时间: 20170516
...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.cre...
来源: Laya2.0_文档 发布时间: 20210715
...网络资源 var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { url: "images/background.png", type : Laya.Loader.IMAGE}, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2)); Laya.URL.ba...
来源: Laya_社区 发布时间: 20180531
...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.creat...
来源: Laya2.0_文档 发布时间: 20210715
...擎功能吗? 请教下微信小游戏的内存和数据缓存? Laya.Loader.getRes请教 请教一个关于laya2.5d项目美术规范的问题哈 请教如何在UI上显示3D模型 【3D动画播放】 关于islooping覆盖问题,想请教一下 请教下,舞台设的宽度是800,600 为什...
来源: Laya_社区 发布时间: 20181027