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

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

1071. layaAir TS项目如何引用protoBuf库? [ 61%]

...: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;         Laya.init(550, 400);         //加载协议...

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

1072. Cannot read property 'load' of null [ 61%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

1073. 滤镜的集中实现 [ 61%]

...; //设置舞台背景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/...

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

1074. 加载TiledMap 不显示 [ 61%]

...{     //  this.tiledMap = new TiledMap();     //  // Laya.loader.create(["res/tiledMap/t1.json", "res/tiledMap/2201001.png"], Laya.Handler.create(this, () =>     //  // {     //      this.tiledMap.createMap("res/tiledMap/t1.json", new Rectangle(0, 0, Laya....

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

1075. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 61%]

...下: ```typescript //先加载plf类型的合并后文件Image.json Laya.loader.load([{url: "res/Image.json", type: "plf"}], Handler.create(this, function():void { //在回调里,正常使用原来的图集 Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, function():void { var img:T...

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

1076. 引擎 TiledMap 居然不支持图块翻转 [ 61%]

...450;             this._gridHeight = 450;             this._jsonLoader = null;             this._loader = null;             this._tileSetArray = [];             this._currTileSet = null;             this._completeHandler = null;             this._mapRect = ne...

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

1077. 动画不显示 [ 61%]

...aya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh;     import laya.debug.DebugP...

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

1078. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 61%]

..."; Laya.stage.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.Ap...

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

1079. 材质-物理基础渲染材质 [ 60%]

...'; var envinfo = '../../res/threeDimen/env/' + env + '/envinfo.json'; Laya.loader.load(envinfo, Laya.Handler.create(this, onEnvDescLoaded, [envinfo, '../../res/threeDimen/env/' + env + '/'])); function onEnvDescLoaded(envinfo, envpath) { var envinfoobj = Laya.loader.getRes(envinfo); var camera = new...

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

1080. SCALE_FIXED_WIDTH适配屏幕的问题 [ 60%]

...Laya.View.regComponent("ScaleButton", ScaleButton);             Laya.loader.load("res/atlas/com/loading.atlas", Laya.Handler.create(this, this.loadGame));         }         private loadGame(): void {             var resArray = [                 { url: "res/atlas/lobby/cre...

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