大约有 620 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)
Laya_社区(477) Laya2.0_文档(51) Laya3.0_api(50) Laya2.0_示例(16) Laya_示例(12) Laya3.0_文档(10) laya_api(2) Laya2.0_api(2)
...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
...y 中使用默认骨骼导出动画数据 var clip: AnimationClip = Loader.getRes("res/gltfMode/Aniamtor/dalaozuo-dalaozuo.lani"); if (!clip) return; var layer: AnimatorControllerLayer = new AnimatorControllerLayer("test"); var animatorState: AnimatorState = new AnimatorState(); animatorState.clip =...
来源: Laya2.0_文档 发布时间: 20210715
...nfo = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "ui/round...
来源: Laya_社区 发布时间: 20170215
...ource.ts:147 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:151 如果设置一个已缓存的...
来源: Laya3.0_api 发布时间: 20231115
...oadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.wi...
来源: Laya_社区 发布时间: 20180302
...码添加场景雾: //添加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
...){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this._skBufferUrl...
来源: Laya_社区 发布时间: 20190419
...s/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018-06-04 14:38 另外说下你的压缩包如果不是...
来源: Laya_社区 发布时间: 20180604
...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