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

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

911. 滤镜-颜色滤镜 [ 64%]

...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_示例 发布时间: 20251209

912. 1.7.9LayaIDE 发布出现Cannot find module 'colors'错误 [ 64%]

...at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/private/var/folders/g5/h6n06svn2z315kkr_yd3sl340000gn/T/AppTranslocation/00AE3A00-14A8-45D8-BBAE...

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

913. 疑似clearRes内存泄漏问题 [ 64%]

...增。 【问题如下】: 问题1:clearRes释放资源之后,Laya.loader.load重新加载同一个资源为什么GPUMemory会不停的增加? 问题2:Laya.loader.clearRes之后,GPUMemory为什么不降低,如果clearRes不会释放内存,那这个接口的作用是什么? 【Demo...

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

914. 分享:Dragonbones/Spine的换肤操作 [ 64%]

...al';//竖屏显示 templete=new Templet();//实例化动画模板 templete.loadAni('DragonDragon/DragonDragon.sk');//加载龙骨动画数据 templete.on(Event.COMPLETE,this,onPleteComed);//数据解析完成后的调度事件。 } private function onPleteComed():void { skeleton=templete.buildArmatu...

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

915. 微信开放数据域(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...

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

916. 微信小游戏开放域(ActionScript-小游戏适配文档-微信小游戏) [ 64%]

...。 ```typescript if(Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Handler.create(this,function(){ //加载完成 //使用接口将图集透传到子域 MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将jso...

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

917. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 64%]

...``typescript if(Laya.Browser.onMiniGame){ //加载一个json和图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用...

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

918. laya.resource.Texture2D [ 64%]

... BaseTexture  getPixels():Uint8Array 返回图片像素。 Texture2D  load(url:String, complete:Handler):void[static] 加载Texture2D。 Texture2D  loadImageSource(source:*, premultiplyAlpha:Boolean = false):void 通过图片源填充纹理,可为HTMLImageElement、HTMLCanvasElement、HTMLVide...

来源: Laya2.0_api 发布时间: 20190513

919. 3d项目发布到微信工具真机预览无法加载场景ls文件??? [ 64%]

...信工具调试库 2.2.1 最新 都是最新的     加载方式:Laya.loader.create 获取方式:scene = Laya.loader.getRes(path) as Scene;   2018-08-02 1 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 可以 2018-08-02 0 0 分享 微博 QZONE 微信 承 赞同来自: 真的可以么 ...

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

920. UI-Clip [ 64%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var b...

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