大约有 898 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.7076 秒)
Laya_社区(577) Laya2.0_文档(152) Laya_示例(79) Laya3.0_文档(40) Laya2.0_示例(40) Laya3.0_api(8) Laya2.0_api(2)
...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
...径,比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过4M的话,只要能找到本地的资源,怎么写也没问题。 但是, 微信小游戏的本地包有4M的限制,一旦超过这...
来源: Laya2.0_文档 发布时间: 20210715
...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
...=============== >>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
...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
...资源地址使用中括号 )加载 .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
...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
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
Mesh.load()加载的模型自动旋转了90°是什么原因? 问题1:Mesh.load()场景自动旋转了90°是什么原因问题2:createFromMesh()放大了地形面积,如何才能保证地形图和原始场景吻合 Demo见附件! //正常情况 var roomSprite = scene.addChild(Laya.Sp...
来源: Laya_社区 发布时间: 20170531
..., 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