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

大约有 1,740 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

581. protobuf使用问题 [ 61%]

...oto文件中import b.proto文件这种场景 在使用ProtoBuf.loadProto = function(proto, builder, filename)加载的时候的,参数 1 填入的是a.proto文件的内容,参数 2, 3如何填,不填的话 会报错“cannot determine import root” 附件 : --> 2017-01-18 添加评论 免...

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

582. LayaNative中的 config.js 的具体使用文档 [ 61%]

...述了logo和loadingView的使用,demo里面有 window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); }类似的 onLayaInitError 的,还有其他事件或者属性可以用吗? 2018-03...

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

583. Laya 2.2.0 只支持编译 target 为 es6的相关问题 [ 61%]

...小游戏  es6中的 async/await 编译 es6时会被翻译成 yield 和 function*() 的实现方式 yield function*() 导致真机黑屏,开发者工具没问题。 laya2.2.0 只支持 es6 的 target 编译, 如果改为 target 为 es 编译,会出现 Class constructor XXX cannot be invoked w...

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

584. laya.resource.Texture_API3.0 [ 61%]

...完成回调 Returns Promise<void> off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删除...

来源: Laya3.0_api 发布时间: 20231115

585. 5.2.3播放背景音乐,切换到后台再切回来报错。 [ 61%]

...播放完后的回调时间 导微信小程序报错window.focus is not a function runtime运行报错! 官网示例摇一摇报错,就解决方案 求教: soundManager如何停止正在播放的背景音乐 用了ByteArray的zlib.min.js后报错 IDE通过.ui自动生成的ui代码报错 视...

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

586. 1.7.13 版本 musicVolume 和setMusicVolume 设置音量 音乐会重新从开始播放 [ 61%]

...来自: 我这里只有 代码 和背景音乐 //播放背景音乐 public function gameSoundPlay():void {      SoundManager.playMusic("GameSound/bgSound.mp3", 0); } //音量调节 public function yyHSliderChanged(parm):void { SoundManager.setMusicVolume(parm/100); } bgSound.rar 2018-03-30 0 7 ...

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

587. 发布时勾选压缩js后,gulp uglify生成的sourcemap在哪里 [ 61%]

... // 压缩js gulp.task("compressJs", ["compressJson"], function () { if (config.compressJs) { return gulp.src(config.compressJsFilter, { base: releaseDir }) .pipe(sourcemaps.init({loadMaps:true})) .pipe(uglify({ mangle: { keep_fnames:true } })) .pipe(sourcemaps.write(releaseDir +...

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

588. laya.d3.core.light.LightSprite_API3.0 [ 61%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

来源: Laya3.0_api 发布时间: 20231115

589. 微信小游戏 [ 61%]

...hirdScriptError laya is not defined ReferenceError: laya is not defined at Function.EventDispatcher.__init$ (http://127.0.0.1:49737/game/code.js:613:26) at http://127.0.0.1:49737/game/code.js:15:71 at Array.forEach (<anonymous>) at Object.__init (http://127.0.0.1:49737/game/code.js:15:36) at h...

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

590. cameramovescript添加报错,有添加脚本的详细教程么as的 [ 61%]

... 微信小游戏编译报错 导微信小程序报错window.focus is not a function 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 启动引擎报错 mPlugin.game_plugin_init(3); IDE通过.ui自动生成的ui代码报错 请问 《学习开...

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