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

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

221. 物理环境如何摧毁 [ 76%]

物理环境如何摧毁 engine = Matter.Engine.create  和  var render = LayaRender.create    再创建物理环境加入了 这两!  gameover 中这两个 怎么摧毁? stop 吗?Matter.World. add(刚体 )  有没统一 remove 的方法! 因为有些临时变量!所以 不易...

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

222. 加载ls文件 completeHandler 有时不触发? [ 76%]

加载ls文件 completeHandler 有时不触发? Laya.loader.create(Consts.SubPackagePath+"/scenes/"+msceneinfo.unityName+".ls",Handler.create(this,this.completeHandler),null,Scene); 2018-07-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

223. 问一下tween的一些参数怎么设置 [ 76%]

...ddChild(sp); sp.pos(100,100); Tween.to(sp,{x:500},1000,Ease.backIn,Handler.create(this,onTween1)); } private function onTween1():void { // TODO Auto Generated method stub num ; trace(num); Tween.clearTween(onTween1); Tween.to(sp,{x:100},1000,Ease.backIn,Handler.create(this,onTween2)); } private func...

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

224. 粒子-粒子演示1 [ 76%]

...th += "../../"; Laya.loader.load("res/particles/GravityMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage...

来源: Laya_示例 发布时间: 20251209

225. 粒子-粒子演示2 [ 76%]

...ath += "../../"; Laya.loader.load("res/particles/RadiusMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage...

来源: Laya_示例 发布时间: 20251209

226. 粒子-粒子演示3 [ 76%]

...th += "../../"; Laya.loader.load("res/particles/particleNew.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage...

来源: Laya_示例 发布时间: 20251209

227. 二进制文件打包后,读取不到zip包内的文件 [ 76%]

...a.Loader.PLFB }]         Laya.loader.load(loaditem, Laya.Handler.create(this, function (res) {             let item = 'res/layabox.png'             let getres = Laya.loader.getRes(item)             console.log('getres',getres) //这个返回und...

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

228. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 76%]

...法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 Laya.stage...

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

229. 滤镜-模糊滤镜 [ 76%]

...LL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this...

来源: Laya2.0_示例 发布时间: 20251209

230. 混淆 JS 后不支持()=>{}的回调? [ 76%]

...Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 Laya.loader.create 进度回调函数执行两次 打包百度小游戏不能播放声音?是api不支持 还是发生了改变 或者格式问题? Laya.Handler.create 回调 问题状态 最新活动: 2018-04-18 14:32 浏览: 678 ...

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