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

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

521. 图集资源clearRes清除之后下次再用到load时加载失败 [ 79%]

...下次再用到load时加载失败 public LoadImg(url:string):void { Laya.loader.load([{ url:url, type: Laya.Loader.ATLAS }],Laya.Handler.create(this,this.Loa,null)); } private Loa():void { console.log("在又有意义有意义有意义有意义有意义有意义有意义有意义"); } public ClearI...

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

522. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 79%]

...ya.core.js:681)     at ResInfo.__proto.event (laya.core.js:460)     at LoaderManager.__proto._endLoad (laya.core.js:11993)     at Loader.onLoaded (laya.core.js:11972)     at EventHandler.__proto.runWith (laya.core.js:681)     at Loader.__proto.event (laya.core.js:460)     at Loader.__pro...

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

523. 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds [ 79%]

...链接 提交 1 个回复 微笑 赞同来自: 龙印 已经解决:: Laya.loader.load("ani/jingbubeipi.sk",Handler.create(this,asd),null,Loader.BUFFER);  在预加载动画时这样在后面参数加上loader.buffer; 2018-09-13 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠...

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

524. 加载多个protobuf文件报错 [ 79%]

...ar assets:Array = [];    assets.push( { url:"protobuf/user.proto", type:Loader.TEXT } );    assets.push( { url:"protobuf/bag.proto", type:Loader.TEXT } );        Laya.loader.load(assets, Handler.create(this, onAssetsLoaded));   首先确认下类型是为TEXT吗,如果这样写就是...

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

525. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 79%]

... 柠檬_酸 赞同来自: 今天也遇到了哈,new Texture就行,Laya.loader.load试了还是 不行 var Texture1= new Laya.Texture(); Texture1.load("res/1.png",Laya.Handler.create(this,function(){     this.sprite.graphics.drawTexture(Texture1,0,0,50,50,null,1,"#FFFFF"); })); 2021-09-17 ...

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

526. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 79%]

...s/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComplete():void{ //创建3D角色 //实例化角色 this.role = Laya.loader.getRes("res/L...

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

527. UI编辑发布后运行lose skin [ 79%]

...aya.WebGL; import Begin = ui.testUI; import Handler = Laya.Handler; import Loader = Laya.Loader; // 程序入口 class GameMain{ private begin: Begin; constructor() { Laya.init(600,400, WebGL); Laya.stage.bgColor = "#000000"; Laya.loader.load("comp/button.png", Handler.create(this, this.onLoaded)); ...

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

528. 预加载音频文件遇到的问题 [ 79%]

...载音频的代码(JS飞机大战示例), //加载声音资源 Laya.loader.load("res/sound/bloodstream_bg.mp3", Laya.Handler.create(this, onLoadedSound), null, Laya.Loader.SOUND); // })(); function onLoadedSound(){ Laya.SoundManager.playMusic("res/sound/bloodstream_bg.mp3", 0, Laya.Handler.cre...

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

529. 滤镜-颜色滤镜 [ 79%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.normalizeApe(); this.makeRedApe(); this.grayingApe(); } normalizeApe() { let originalApe = this.createApe(); originalApe.x = (Laya.stage.width - ap...

来源: Laya2.0_示例 发布时间: 20251219

530. 材质的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 79%]

... ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //从场景获取球型精灵 sphere = scene.getChildByName("Sphere") as MeshSprite3D; //获取球型精灵自带的BlinnPhong材质 ...

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