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

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

441. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 65%]

...source:Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addC...

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

442. 图片显示好奇怪 [ 65%]

...实现方式: 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

443. 粒子图片错误 [ 65%]

粒子图片错误 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

444. mac系统下 TypeScript 语言 ,声音无法播放? [ 65%]

...请: 与内容相关的链接 提交 1 个回复 纪龙 赞同来自: Laya.loader.load("res/sounds/light.mp3", Laya.Handler.create(this, ()=>{               console.log("load light.mp3");               Laya.SoundManager.playMusic("res/sounds/light.mp3");        ...

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

445. layabox 网络加载异常慢 [ 65%]

...几个文件会超过秒级,有时会20几秒,用的加载方式是 Laya.loader.load( url,Handler.create(this,comFun),null,Loader.IMAGE,0); 这个等待时间有没有大牛搞过啊   附件 : --> 2018-07-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

446. 不存在的资源路径问题 [ 65%]

...,导致这个问题是因为没有资源也调用了加载完成, Laya.loader.on(Laya.Event.ERROR, this, this.onLibError); Laya.loader.load([{ url:com.globals.GameConfig.XML_LIB_URL, type:Loader.BUFFER }], Handler.create(this, this.onLibLoaded)); 资源是不存在的,然后还是调用了 thi...

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

447. 微信小游戏怎么加载本地的配置文件 [ 65%]

...nfig(){ this.configAsset=[ {url:"res/config/playerCard.json",type:laya.net.Loader.TEXT} ]; Laya.loader.load(this.configAsset,Handler.create(this,this.loadConfigCallBack)) } public loadConfigCallBack(str:boolean){ if(str){ var config; config=laya.net.Loader.getRes("res/config/playerCard.json"); Playe...

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

448. 有偿解答 Laya致命问题 -预加载,进度问题 [ 65%]

... Laya致命问题 -预加载,进度问题 使用情况描述: 使用Laya.loader.load加载2d和声音资源使用 Laya.loader.create加载3D场景和模型资源 问题描述: 预加载效果不明显(每次进入时,加载进度都非常慢,需要花半分钟加载,20mb的资源)加载模型...

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

449. Laya.Quaternion.lookAt函数的参数只能用Laya.Vector3??? [ 65%]

...擎有没有管理或访问系统剪贴板的方法函数 请问laya.net.Loaderlaya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 注册函数里面 事件侦听函数的执行域 的详解 关于customRender函数不执行的问题...

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

450. 粒子加载报错 [ 65%]

...。 新建一个粒子,加载就报错。   playQiPaoParticle() { Laya.loader.load('noLanguage/test.part', Laya.Handler.create(this, this.onAssetsLoaded), null, Laya.Loader.JSON); }  onAssetsLoaded(settings: Laya.ParticleSetting) { let sp = new Laya.Particle2D(settings); // sp.emitter.start(); /...

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