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

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

51. (有图片附件)图集用的atlas 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are [ 87%]

...as 在LayaAir里可以正常跑,但是发布后,运行报错 Failed to load file.Cross origin requests are Failed to load file:///H:/WeChatQ1Snake/release/layaweb/v1.0.0/res/atlas/images.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, h...

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

52. 微信小游戏的4M本地包与动态资源加载(TypeScript-小游戏适配文档-微信小游戏) [ 87%]

...径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,一旦超过这...

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

53. 自定义shader-边缘光照shader [ 87%]

...tion = new Laya.Vector3(1, -1, 0); var dude = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude.once(Laya.Event.HIERARCHY_LOADED, this, function () { var customMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/thr...

来源: Laya_示例 发布时间: 20260929

54. movieclip destroy 后重新加载失败 [ 87%]

...=============== >>getMovieClipAtlas: res/swf/bomb.swf true >>onLoadedHandler1: Handler {once: true, _id: 6, caller: LayaSample, args: undefined} >>bomb: MovieClips {frames: 0, callback: null, _isRemove: false, _group: null, _start: 384…} Texture {offsetX: 0, offsetY: 0, sourceWid...

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

55. 微信小游戏设置网络动态加载无法显示 [ 87%]

...3B%3B var asset = []; asset.push({ url : "res/atlas/game.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "res/atlas/bubbles.atlas", type:Laya.Loader.ATLAS }); asset.push({ url : "game/bgGame.png", type:Laya.Loader.IMAGE });  Laya.loader.load(asset,Laya.Handler.create(this,loadingCallback),nul...

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

56. protobuffer加载失败 [ 87%]

...资源地址使用中括号 )加载 .proto 文件失败:     Laya.loader.load(["res/protobuf/user.proto"], Handler.create(this, onAssetsLoaded)); 错误提示如下: [warn]Retry to load: E:/LayaBox/ProtobufLoadTest/bin/res/protobuf/user.proto [error]Failed to load: E:/LayaBox/ProtobufLoadTe...

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

57. 灯光-点光 [ 87%]

...0.0, 3.0); pointLight.range = 3.0; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, funct...

来源: Laya_示例 发布时间: 20260929

58. clearUnLoaded的bug LayaAirIDE1.7.9 [ 87%]

clearUnLoaded的bug LayaAirIDE1.7.9 function test(){     var arr = [res.popup.atlas("loadingUI"), res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))...

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

59. Mesh.load()加载的模型自动旋转了90°是什么原因? [ 87%]

Mesh.load()加载的模型自动旋转了90°是什么原因? 问题1:Mesh.load()场景自动旋转了90°是什么原因问题2:createFromMesh()放大了地形面积,如何才能保证地形图和原始场景吻合   Demo见附件!   //正常情况 var roomSprite = scene.addChild(Laya.Sp...

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

60. 材质-BlinnPhong-高光贴图 [ 86%]

..., 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")); dude1.transform.positi...

来源: Laya_示例 发布时间: 20260929