大约有 197 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0064 秒)
Laya_社区(154) Laya2.0_文档(17) Laya3.0_文档(10) Laya3.0_api(10) Laya2.0_api(2) laya_api(2) Laya_示例(1) Laya2.0_示例(1)
...pe); //这里是我注释掉的代码 //var texture: Texture = Laya.loader.getRes(this.ApePath); //this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; //这里是我加的代码 this.ape.graphics.drawCircle(50, 50, 30, "#ff000...
来源: Laya_社区 发布时间: 20171106
...); } private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf"); if(arr && Browser.window.conch) { Browser.window.conch.setFontFaceFromBuffer("hu",arr); } var text:Text=new Text(); text.font="hu"; text.fontSize=50; text.text="لحسن نهر12...
来源: Laya_社区 发布时间: 20180705
...){ 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
...]; //查看log,清理前资源一直在内存中 console.log(Laya.loader.getRes(asset)); //调用清理方法 Laya.loader.clearRes(asset); //查看log,清理后,资源被卸载 console.log(Laya.loader.getRes(asset)); } }); 1.4 关于滤镜、遮罩 尝试尽量减少使用滤镜效果。将滤...
来源: Laya3.0_文档 发布时间: 20251010
.../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
...wf():void { // console.log("ssss"); // let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); } } } new laya.Loader_MultipleType(); 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180203
...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
...(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
...(resUrl=>{ var tex = Laya.Loader.getRes(resUrl) as Laya.Texture; tex.bitmap = bit; }); this.onResLoadFinish(bit); }),null,"htmlimage",...
来源: Laya_社区 发布时间: 20200317
...在这之前已经加载并设置了版本文件 URL.version=Laya.loader.getRes("resVersion.json"); 我们游戏已经在微信小游戏之外的平台上线了的,以前热更新都没问题,最近发到微信小游戏真机上调试就有问题 求官方大大尽快修复 2018-05-05 添...
来源: Laya_社区 发布时间: 20180505