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

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

21. laya微信小游戏加载外部素材失败 急急急 [ 84%]

... 可以重现我说的问题    function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; ...

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

22. 图集类型(ATLAS)文件的的png文件没有加上时间戳 [ 84%]

...题可以通过重写Laya.URL.customFormat来实现,例如: var IMAGE_VERSION = "20170610"; Laya.URL.customFormat = function (url) { if (!Render.isConchApp && url.indexOf("?v=") < 0) url += ("?v=" + IMAGE_VERSION); return url; } 附件 : --> 2017-06-02 添加评论 免费帖 --> 分...

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

23. laya.gltf.glTFResource_API3.0 [ 82%]

...onstructors constructor Properties destoryedImmediately lock name url uuid version DEBUG Accessors cpuMemory deps destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _parse _removeReference _setCPUMemory _setCreateURL _setGPUMemory addDep addDeps ...

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

24. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 81%]

...hrough = require('through2') const clean = require('gulp-clean') let staticVersion = {} gulp.task('clean', function () { return gulp.src('./src/assets/*', {read: false}).pipe(clean()) }) /** 创建文件hash清单 */ gulp.task('create:hash',['clean'], () => { return gulp.src([ './server/static/**...

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

25. version management 找图片 [ 80%]

version management 找图片 没用version management 是没事的 this.ballGame.ball = Laya.Browser.document.getElementById('b_ball'); this.ballGame.ball.src = 'gameUI/ball.png'; 用了后这个 ball.png 变成这样 ball67163cd2.png 就找不到这个 ball.png 请问怎样把这个version managem...

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

26. Scene.load加载的时候无法正确的识别ResourceVersion [ 80%]

Scene.load加载的时候无法正确的识别ResourceVersion 普通调试的时候没有问题,但是发布的时候再文件尾部加上了hash,加载其他UI之类的接口都没有问题,但是加载3D部分的时候,通过Scene.load加载进去的依赖资源,比如lmat之类的并...

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

27. 安卓/iOS构建 · LayaAir3.0文档 · LAYABOX [ 79%]

...打包之后无法运行。单机版的地址固定为 http://stand.alone.version/index.js 打包资源 资源是脚本、图片、声音等资源。对于在线游戏,只要有游戏的url就能正常运行,但是把资源直接打进App包中的话,可以避免网络下载,加快资源载...

来源: Laya3.0_文档 发布时间: 20230303

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

...ayaGameEngine: game_plugin_set_option key=gameUrl value=http://stand.alone.version/index.html D/LayaGameEngine: game_plugin_init url =http://stand.alone.version/index.html D/LayaGameEngine: url=http://stand.alone.version/index.html D/RuntimeProxy: laya_get_value key=CacheDirInSdcard D/RuntimeProxy: ...

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

29. ios读取文件 [ 79%]

...: var xhr = new XMLHttpRequest(); xhr.open('GET','http://10.10.20.19:7766/version',true); xhr.onload=(e)=>{     var f = window.appcache.getCachePath()+'/version';     fs_writeFileSync(f,xhr.responseText);//把结果写到f文件中     url='';//自己决定url     loadUrl(url); } xhr.oner...

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

30. ios打包后【单机版】运行崩溃,附上报错log与demo [ 78%]

...7 13:33:42.475072+0800 sanguo[777:557379]  xhr.GET url=http://stand.alone.version/index.js 2019-01-07 13:33:42.478836+0800 sanguo[777:557379] found the file in the package:a79d20b7 2019-01-07 13:33:42.485250+0800 sanguo[777:557275] >>>JCConchRender::clearAllData =21785472 2019-01-07 13:33:...

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