• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 581 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0044 秒)

241. 人物行走图动画 [ 68%]

...按照动画 -- 图集动画教程制作了人物行走图,图片是用TexturePackage导出的。但是不知道为什么图片是从第二张图片(迈出左脚的那张图片)开始的。   还有Loader.ATLAS是static] 图集类型,加载完成后返回图集json信息(并创建图集内...

来源: Laya_社区 发布时间: 20160712

242. Image 动态替换图片后变小了 [ 68%]

...omplete));      function loadMapBGComplete():void{       var tx:Texture = Laya.loader.getRes("map/157.jpg");       this._test.source = tx;      }  我这张图是913X1400没有打成图集的 我用image动态替换一个大图片时,为什么替换后那张图变成很小...

来源: Laya_社区 发布时间: 20170411

243. 怎么将图片转换成base64格式 [ 68%]

...a.loader.load("hall/111.png",Handler.create(this,function():void { var img:Texture = Laya.loader.getRes("hall/111.png"); var encode:String = Base64ImageTool.getBase64Pic(img); } 2017-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

来源: Laya_社区 发布时间: 20170613

244. laya默认模型的阴影没有渲染 [ 68%]

... false); // var material = new Laya.StandardMaterial(); // material.diffuseTexture = Laya.Texture2D.load("res/qiu/6.jpg"); // box.meshRender.material = material; box.meshRender.receiveShadow=true; box.meshRender.castShadow=true; var box2 = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(10, 10...

来源: Laya_社区 发布时间: 20180717

245. 图片通过drawTexture平铺出现缝隙 [ 67%]

图片通过drawTexture平铺出现缝隙 this.darwSprite = new Sprite();         this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);  ...

来源: Laya_社区 发布时间: 20160718

246. [LayaAir3]OPPO小游戏下图片地址无法加载 [ 67%]

...s://sh.mudgj.com/api/playe ... ot%3B, Laya.Loader.IMAGE ) .then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; sp.pos(0, 200); this.addChild(sp); });无法正常显示 检查发现 qg.downloadFile  报 error {         "errCode": -3,         "statusCode": 404,   ...

来源: Laya_社区 发布时间: 20250818

247. 使用fairygui加载网络图片资源时,laya.core.js中的drawTexture会报错 [ 67%]

使用fairygui加载网络图片资源时,laya.core.js中的drawTexture会报错 异常栈如上图,因为fairygui依赖laya.core.js,所以最后会调用到laya.core.js中, if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }执行到这段...

来源: Laya_社区 发布时间: 20180724

248. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 67%]

...下: ```java package { import laya.display.Sprite; import laya.resource.Texture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路...

来源: Laya2.0_文档 发布时间: 20210714

249. skydome可以替换贴图吗? [ 67%]

...al: SkyPanoramicMaterial = new SkyPanoramicMaterial();         Texture2D.load("res/jfb.jpg", Handler.create(null, function (tex: Texture2D) {             material.panoramicTexture = tex;             skymat.material = material;         })); 2020-03...

来源: Laya_社区 发布时间: 20200319

250. 3d导入粒子效果报错 [ 67%]

...anager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:11) at LoaderManager.__proto.create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs...

来源: Laya_社区 发布时间: 20180328