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

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

501. spine动画放大后,遮罩显示不正常 [ 93%]

...); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene("test/TestScene.scene"); }  onEnable() {         this.loadActor(this.actor1,"comp/r_01_...

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

502. 为何我加载spine的动画drawcall会那么高,shader的指标也很高 [ 93%]

...pleteCaller:any,completeFun:Function):void         {             this.m_spineCopmleteFun = completeFun;             this.m_completeCaller = completeCaller;             this.m_curLoadingUrl = url;             if(this.isLoaded(url) == false)             {         ...

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

503. 1.7.13版本以上的的截屏功能有问题 请测试下 [ 93%]

...question/4150, 我测试了下 自从1.7.13之后 截屏功能就跪了  this.road.drawToCanvas(this.road.width,this.road.picHeight,0,0); 要改成 this.road.drawToCanvas(this.road.width,this.road.picHeight);或者 this.road.drawToCanvas(this.road.width,this.road.picHeight,this.road.x,this.road....

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

504. 动画-新版骨骼动画 [ 93%]

...kinModel/Zombie/new/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]...

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

505. 材质-BlinnPhong-法线贴图 [ 93%]

...发语言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); this.rotation = new Laya.Vector3(0, 0.01, 0); this.normalMapUrl = ["../../res/threeDimen/staticModel/lizardCal/rock_norm.png", "../../res/threeDimen/staticModel/lizardCal/lizard_norm.png", "../../res/threeDimen/staticModel/liz...

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

506. laya animation播放图片集合,切换时会闪烁一下 [ 93%]

...: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.play(0); return  this.animation } 我不知道你是怎么做的。这...

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

507. 如何在游戏入口处获取对象的子对象 [ 93%]

...yer; var loadMap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/le...

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

508. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 93%]

...邀请: 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRe...

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

509. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 93%]

...uot;"+itemlo.image, m_label:""+allEquipArr[i].amount}); } } this.otherItem_list.array = data; this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender); fengjingmeng • 2018-03-21 16:44 你这个是list的逻辑,item的更新逻辑呢。item拿到数据后你做了...

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

510. UI-ComboBox [ 93%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { let cb = this.createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } createComboBox(skin) { const ComboBox = Laya.Com...

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