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

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

201. 如何实现类似AS3下的BitmapData.draw去截取区域图片? [ 63%]

...   {             Laya.init(550,400);             Laya.loader.load("walk.png",Handler.create(this,onLoaded));         }         private function onLoaded():void         {             var texture:Texture=Laya.loader.getRes("walk.png");            ...

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

202. 粒子图片错误 [ 63%]

粒子图片错误 Laya.loader.load("res/yan.part", Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); var yan = new Laya.Particle2D(settings); yan.emitter.start(); yan.play(); this.particlesPos.addChild(yan);   编辑器里面设置是对的 但是在网页上运行,图片...

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

203. 图片显示好奇怪 [ 63%]

...实现方式: public function LayaAirDemo() { Laya.init(800,800); Laya.loader.load('logo.png',Handler.create(this,onLoaded)); } private function onLoaded():void { var texture:Texture=Loader.getRes('logo.png'); var sp:Sprite=new Sprite(); sp.graphics.clear();//把上次的绘制清除 sp.graphics.d...

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

204. TileMap有明显的bug [ 63%]

...2.3.0发布微信小游戏,自动缓存:查找不到资源问题的Bug Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug 问题状态 最新活动: 2019-01-02 15:17 浏览: 438 关注: 1 人

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

205. UI编辑发布后运行lose skin [ 63%]

...aya.WebGL; import Begin = ui.testUI; import Handler = Laya.Handler; import Loader = Laya.Loader; // 程序入口 class GameMain{ private begin: Begin; constructor() { Laya.init(600,400, WebGL); Laya.stage.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); ...

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

206. img点击事件。点击图片外,也触发了事件。请问怎么解决 [ 63%]

...Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.loader.load("res/img/m1.jpg",Laya.Handler.create(this,load)); function load(){ let ctn2=new Laya.Sprite(); Laya.stage.addChild(ctn2); var gq=new Laya.Sprite(); gq.loadImage("res/img/m1.jpg",100,100,100,100);   ctn2.addChild(...

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

207. 微信小游戏加载外部json可以加载成功,但是加载外部图片就不行,没有任何反应 [ 63%]

...加载成功,但是加载外部图片就不行,没有任何反应 Laya.loader.load(["https://xxdzz.shoujiyeyou.net/ ... ot%3B, "https://xxdzz.shoujiyeyou.net/ ... ot%3B], Handler.create(this, this.onLoaded), null, "json");   Laya.loader.load(["https://xxdzz.shoujiyeyou.net/mmphp/19.png"], Handl...

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

208. 抖音小游戏 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) La...

来源: Laya3.0_文档 发布时间: 20251010

209. 使用IDE生成图集后,无论使用图集下的某个小图 [ 63%]

...生成图集后,放到img/assets目录下 然后这样使用:   Laya.loader.load([{ url : 'http://localhost:3000/shoot/v2/img/assets/assets.json', type : Loader.ALTAS }], Handler.create(this, function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log...

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

210. fillTexture使用问题 [ 63%]

... number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillT...

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