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

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

491. layaAir2.3克隆以及获取节点重大bug!!! [ 80%]

...摄像机 获取.lh文件节点克隆显示正常         //Laya.loader.create(resource, Laya.Handler.create(this, this.onPreLoadFinish1));         //第二种 用自己unity导出的场景直接克隆整个.lh文件也显示正常         //Laya.loader.create(resource, Laya....

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

492. Animation._loadAnimationData方法内释放.ani文件的调用位置不对 [ 80%]

...._loadAnimationData方法内释放.ani文件的调用位置不对 如图,Loader.clearRes(url)在没加载完.ani就调用了,应该在Laya.loader.load的的完成回调内调用 附件 : --> 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

493. 鼠标交互-Hold [ 80%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, tex...

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

494. 导入微信小游戏的时候 [ 80%]

...esInfo.__proto.event (http://127.0.0.1:65353/game/code.js:483:28)     at LoaderManager.__proto._endLoad (http://127.0.0.1:65353/game/code.js:13152:11)     at Loader.onLoaded (http://127.0.0.1:65353/game/code.js:13128:10)     at EventHandler.__proto.runWith (http://127.0.0.1:65353/game/code.js:...

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

495. 鼠标交互-Hold [ 80%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(apePath, Handler.create(this, this.createApe)); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this...

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

496. Animation创建和销毁的问题 [ 80%]

...同样的代码,第一次创建就可以显示动画,然后当使用了Loader.clearRes之后再次创建就怎么都显示不了,是哪里用错了么?求指点 附件里上传了测试工程,打开后先按A键可以看到屏幕有两条鱼,然后再按空格将其彻底移除,然后...

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

497. 材质的功能介绍(JavaScript-3D基础(JS)-LayaAir3D之Material材质) [ 80%]

...质 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //从场景获取球型精灵 this.sphere = scene.getChildByName("Sphere"); //获取球型精灵自带的BlinnPhong材质 billinMaterial = this....

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

498. LayaAir IDE 语言包的使用? [ 80%]

...age { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("l...

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

499. 微信小游戏资源总是加载旧的资源 [ 80%]

...   引擎版本1.7.18beta   我是用这样的方式加载的图集 Laya.loader.load([{url: "res/atlas/xxx1.json", type: Loader.ATLAS},         {url: "res/atlas/xxx2.json", type: Loader.ATLAS},          {url: "res/atlas/xxx3.json", type: Loader.ATLAS}], Handler.create(...   并且在...

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

500. 微信小游戏与加载图片时不会触发erroe事件 [ 80%]

微信小游戏与加载图片时不会触发erroe事件 Laya.loader.on(Laya.Event.ERROR, this, function(){ console.log("err"); }); Laya.loader.load([{url:"res/general/test.png",type:laya.net.Loader.IMAGE}]); 2018-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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