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

大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0066 秒)

521. TiledMap地图 · LayaAir3.0文档 · LAYABOX [ 66%]

...is.tMap.createMap("resources/TiledMap/orthogonal.json", viewRect, new Laya.Handler(this, this.completeHandler)); } //添加地图到Scene2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHa...

来源: Laya3.0_文档 发布时间: 20230303

522. 屏幕适配-屏幕适配 [ 66%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Image = Laya.Image, Text = Laya.Text; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); //设置适配模式 Laya.stage.scaleMode = "noscale"; //设置横竖屏 Laya.stage.screenMod...

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

523. LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 [ 66%]

LIST renderHandler的ITEM高度自定义后,设置content变更其内部容器大小不生效 ViewActivityLimitedTask.prototype.initComp = function() { this.list_view.vScrollBarSkin = ""; this.list_view.scrollBar.elasticBackTime = ListConst.elasticBackTime; this.list_view.scrollBar.elasticDistanc...

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

524. 资源加载清除问题 [ 66%]

资源加载清除问题 Laya.loader.load(mapBit, Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后...

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

525. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 66%]

...ctangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { } } new GameMain();运行的时候报错!错误信息如下: 附件 : --> 2019-02-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

526. 为什么手机端网页播放8k的音频要点一下才能播放,因为下载慢吗,电脑端网页都不用 [ 66%]

...上的示例,SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, this.onComplete));初始化的时候有load资源Laya.loader.load(this.soundPath, Handler.create(this, this.setup)); 2019-08-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

527. tiledMap类createMap()创建地图 如何理解这个viewRect视口区 [ 66%]

...    tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler));     } /**      * 地图加载完成的回调      */     function completeHandler()     {          //设置缩放中心为左上角         tiledMap.setView...

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

528. ts 空项目 版本1.7.20 下的load 调用2次 第二次 失效 [ 66%]

...h({url:"res/atlas/build.atlas",type:Loader.ATLAS}) Laya.loader.load(assets,Handler.create(this,null),Handler.create(this,this.proces,null,false)); 第一次成功 当我第二次调用失败 资源not found 资源是不同的 2018-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

529. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 66%]

...Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE...

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

530. load完成后能否获取到具体是哪个对象资源完成 [ 66%]

...s"); private LoadAsset(path: string): void { Laya.loader.create(path, Laya.Handler.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回调了,请问要怎样处理,是否有现成的...

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