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

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

21. 引用游戏的JS变得很卡 [ 94%]

...7408 03-21 20:29:03.636 19155-19190/com.mygame.laya I/LayaBox﹕ found the file in the package:cache/192.168.167.103.8085_html_static_h5_DSGAME_h5/f6e896a2 03-21 20:29:03.739 19155-19190/com.mygame.laya I/LayaBox﹕ found the file in the package:cache/192.168.167.103.8085_html_static_h5_DSGAME_h5/17...

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

22. 添加Include(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 94%]

... > 引用的方式导入文件 ```typescript import LightingGLSL from "./files/Lighting.glsl"; import BRDFGLSL from "./files/PBRLibs/BRDF.glsl"; import PBRSpecularLightingGLSL from "./files/PBRLibs/PBRSpecularLighting.glsl"; import PBRStandardLightingGLSL from "./files/PBRLibs/PBRStandardLighting.gl...

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

23. 怎么在模拟点击事件 [ 94%]

...点击事件1</button> <input accept="image/*" id="file" type="file" /> <script> function button1(){ document.getElementById('file').click(); } 这是一个上传图片的input,但是我在layabox的某个function中写 Browser. document.getElementBy...

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

24. 通过html的input类型file上传图片,然后通过FileReader获取图片数据之后设置laya的image.skin图片不显示 [ 94%]

UI相关问题 通过html的input类型file上传图片,然后通过FileReader获取图片数据之后设置laya的image.skin图片不显示 __proto.uploaderHandler=function (files) {              var self=this; var file=files[0];              var reader=new FileReader();       ...

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

25. 如何在native端保存文件到cache中,laya不提供file操作,只能用原生吗? [ 94%]

如何在native端保存文件到cache中,laya不提供file操作,只能用原生吗? 如何在native端保存文件到cache中,laya不提供file操作,只能用原生吗? 2017-03-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

26. Animation创建动画模板问题 [ 94%]

...下: TypeError: url.indexOf is not a function at Function.URL.formatURL (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:4418:12) at Function.Loader.getRes (file:///E:/EarlyChildhood/EARLY_GAME_001/bin/libs/laya.core.js:11178:32) at Graphics.__proto.loadImage (file:///E:/EarlyChildh...

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

27. 运行调试layaair后黑屏,用的js [ 94%]

...r: Cannot read property 'call' of undefined at Function.<anonymous> (file:///Users/moos/Company/EmersonGame/bin/libs/laya.core.js:130:41) at new GameInfo (file:///Users/moos/Company/EmersonGame/src/GameInfo.js:4:18) at onLoaded (file:///Users/moos/Company/EmersonGame/src/Game.js:43:25) at Even...

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

28. 将字节数组转为图片 [ 94%]

...完整附上flash air端和layaAir端代码: 1.flash air端代码: var file:File = File.applicationDirectory;             var picPath:String = file.resolvePath("img.png").nativePath;//获取图片路径             //读取图片文件到字节数组             var re...

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

29. XMLHttpRequest cannot load [ 94%]

...时出了问题?求教 firstGame.max.js:9742 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.j...

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

30. 加速器是不是不支持input:file [ 93%]

加速器是不是不支持input:file  <div class="upload-wrap" id="upload" style="left: 0px; top: 0px; width: 0px; height: 0px; display: none;">     <input type="file" class="upload-pic" id="upFile" accept="image/jpeg,image/png" value="upload Img">     <span class="upload-tex...

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