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

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

181. Mac下LayaAirIDE1.7.20版本声音预加载失败,但windows下同个版本加载正常 [ 61%]

...d/star_pick.mp3", type:Loader.SOUND},             {url:"res/sound/start_explode.mp3", type:Loader.SOUND}         ];         Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)); } private function onProgress(loadNum:Number):void { }   private...

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

182. 分享个平时做网页端,移动端开发的调试工具,实时同步PC移动设备刷新 [ 61%]

...(.laya目录所在的同级目录)后,启动服务器   browser-sync start --server --files "**" 5.   (为了不想记那么多代码把命令做成了bat执行文件,双击就好了) 6. 在浏览器输入 看你的 cmd提示输入(打开) http://localhost:3000/bin/index.html     如果...

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

183. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 61%]

...nable: boolean; protected _owner: laya.d3.core.Sprite3D; /**是否已执行start函数。*/ started: boolean; /** * 获取唯一标识ID。 * @return 唯一标识ID。 */ id: number; /** * 获取所属Sprite3D节点。 * @return 所属Sprite3D节点。 */ owner: laya.d3.core.Sprite3D; /** * 获取...

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

184. 粒子会不会有内存泄漏? [ 61%]

...oaded(settings) { var sp = new Particle2D(settings); sp.play(); sp.emitter.start(); sp.x = 100; sp.y = 100; sp.name = (i++).toString(); console.log(sp.name); Laya.stage.addChild(sp); setTimeout(function () { var emitter = sp.emitter; emitter.stop(); emitter.clear(); sp.stop(); sp.destroy(true); Laya...

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

185. laya.ani.swf.MovieClip [ 61%]

...dex:int = 0, loop:Boolean = true):void 播放动画。 MovieClip  playTo(start:int, end:int, complete:Handler = null):void 从开始索引播放到结束索引,结束之后出发complete回调 MovieClip pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分...

来源: Laya2.0_api 发布时间: 20190513

186. 分享:使用谷歌浏览器调试手机网页 [ 61%]

...mask? 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 求高人分享使用protobuff框架的游戏demo(TS版本或AS版本的) 问题状态 最新活动: 2016-01-26 10:04 浏览: 3480 关注: 4 人

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

187. spine 播放错乱 [ 60%]

...mplet: Laya.SpineTemplet; skeleton: Laya.SpineSkeleton; index = 0; private startFun(): void { //创建动画模板 this.templet = new Laya.SpineTemplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, th...

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

188. Laya3.0正式版spine3.8的动画资源不能正常显示 [ 60%]

...index: number = -1; public pageWidth: number; public pageHeight: number; onStart() { console.log("Game start"); Laya.loader.load("resources/res/spineboy-pma.skel", Loader.SPINE).then((templet: SpineTemplet) => { this.skeleton = new SpineSkeleton(); this.skeleton.templet = templet; this.owner.addC...

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

189. 示例打地鼠发布打包后提示TypeError: this.preinitialize is not a function [ 60%]

...包后提示TypeError: this.preinitialize is not a function $ adb shell am start -n "com.layabox.game/demo.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.layabox.game.test | com.layabox.game Connecting to com.layabox.gam...

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

190. 3D网格添加刚体后设置欧拉角出现位置错误 [ 60%]

...错误 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 怎么讲layaAir里的显示对象添加到matter.js里的物理引擎世界里 图片添加点击事件 有的不生效 Laya3D里的material可以设置flat shading么 龙骨skeleton鼠标点击区域的设置 发布H5...

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