大约有 235 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
Laya_社区(149) Laya2.0_文档(47) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(7) Laya3.0_api(2) Laya2.0_api(2)
...las", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader....
来源: Laya2.0_文档 发布时间: 20210714
...ndMeshRender(webXRInput:WebXRInputManager){ let rightControl = Laya.loader.getRes("res/OculusController/controller.gltf") as Sprite3D; let leftControl = Laya.loader.getRes("res/OculusController/controller-left.gltf") as Sprite3D; let pixelright = new PixelLineSprite3D(20,"right"); let pixelleft = ne...
来源: Laya3.0_文档 发布时间: 20251010
...ar ani:Animator; private var effectTemp:Sprite3D; effectTemp = Laya.loader.getRes("res/LayaScene_Fire/Fire.lh"); 先查到节点 for(var i:int = 0;i<ani._avatarNodes.length;i++) { if(AnimationNode(ani._avatarNodes[i]).name == "weaponEffect") { animationNodeTemp = ani._avatarNo...
来源: Laya_社区 发布时间: 20170821
...his, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY = _this.row_data.property.y_m * texture....
来源: Laya_社区 发布时间: 20180530
...(url:String):void { if(!MiniAdpter.isZiYu) { var atlasJson:Object = Loader.getRes(URL.formatURL(url)); if(atlasJson) { var textureArr:Array = (atlasJson.meta.image as String).split(","); //构造加载图片信息 if (atlasJson.meta && atlasJson.meta.image) { //带图片信息的类型 var t...
来源: Laya_社区 发布时间: 20180830
...码添加场景雾: //添加3D场景 GamePanel.curScene = Laya.loader.getRes("res/LayaScene_wu/Conventional/wu.ls"); Laya.stage.addChildAt(GamePanel.curScene, 0); //开启雾化效果 GamePanel.curScene.enableFog = true; //设置雾化的颜色 GamePanel.curScene.fogColor = new Laya.Vector3(0.59,...
来源: Laya_社区 发布时间: 20190412
...estory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } 2019-06-13 0 0 分享 微博 QZONE 微信 打点酱...
来源: Laya_社区 发布时间: 20190320
...ya_Fred 赞同来自: 您好,按您说的将basePath设置成目录,在getRes内进行url的format后结果如下图: 2021-09-16 0 0 分享 微博 QZONE 微信 shiyang 赞同来自: 在微信上面,直接导入release/wxgame BugDemo1.rar 2021-09-16 0 0 分享 微博 QZONE 微信 shiyang ...
来源: Laya_社区 发布时间: 20210909
.../2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); let sp = new Sprite() ...
来源: Laya_社区 发布时间: 20171220
...制到building Sprite上 let texture = Laya.loader.getRes("res/building.png"); this.building.graphics.drawTexture(texture, 0, 0); }), null, Laya.Loader.IMAGE ); } // 可视...
来源: Laya_社区 发布时间: 20251125