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

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

191. 动画添加了 滤镜,drawcall 次数暴增,这是为啥???? [ 69%]

...数暴增,这是为啥???? var url = App.animManager.getUrl(id); this.ani.loadAtlas(url,null,id); this.ani.alpha = 0.5; this.ani.play(0, true); var grayMat = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]; //创建一个颜色滤镜对象,灰图 var scaleFilter = new Laya...

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

192. 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another [ 69%]

代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 代码定义动画剪辑播放报错 Uncaught Error: Animation:this clip has exist with another 附件 : --> 2017-10-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

193. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 69%]

...aded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani");...

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

194. Spine动画最后一帧无法正常显示 [ 69%]

...后发现在Skeleton::_update方法中的以下语句:var tGraphics; if (this._aniMode == 0) { tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex) || this._createGraphics(); if (tGraphics && this.graphics != tGraphics) { this.graphics = tGraphics; } }决...

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

195. 手机调试时http请求错误,返回Request failed Status:0 [ 69%]

...new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR, this, (e...

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

196. Animation创建时无法获取高度 [ 69%]

...无法获取高度 var roleAni = new Laya.Animation(); roleAni.loadImages( this.aniUrls( v1, v2, tip, frames ) ).play(); roleAni.pos(x,y); this.root.addChild( roleAni ); roleAni.pivotY = roleAni.getBounds().height; console.log("---> ", roleAni.getBounds() ); 打印为 ---> Rectangle {x: 0, y:...

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

197. replaceSlotSkinName对于spine换肤不成功 [ 68%]

... m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private o...

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

198. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...@regClass() export class BloodBar extends BloodBarBase { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animato...

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

199. LayaAir2.0 beta3 对骨骼动画应用发光滤镜的问题 [ 68%]

...发光滤镜,并没有一直new SpineMgr.inst.loadSpine(['spine/yasuo'], this, ()=>{ this._spine = SpineMgr.inst.createSpine('spine/yasuo.sk', 0); // this._spine.showSkinByIndex(1); this._spine.play('yidonggongji', true); this.testSkePos.addChild(this._spine); //创建一个发光滤镜 var fil...

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

200. [LayaAir3]Laya3.0 中设置舞台背景透明无效 [ 68%]

...ha = true;         Laya.stage.bgColor ="none";                 this.Show();             }           private iframe: any = Laya.Browser.document.createElement("iframe");     private _view: HTMLDivElement = document.createElement("div");           public Show(): void {  ...

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