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

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

191. 使用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

192. 1.5.4_beta,动画播放完毕的监视器很大概率会不起作用了 [ 68%]

...    {         // 第一次创建一个动画         if (null == this.mAnimaCur)         {             this.mAnimaCur = new laya.display.Animation();             this.mAnimaCur.interval = 100;             this.addChild(this.mAnimaCur);         }         var lo...

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

193. ReferenceError: Loading_fly is not defined [ 68%]

...ading_fly = function (_super) { function Loading_fly() { Loading_fly.super(this); this.onPlay(); } Laya.class(Loading_fly, "Loading_fly", _super) var _proto = Loading_fly.prototype; _proto.onPlay = function () { UIConfig.popupBgAlpha = 0.85; UIConfig.closeDialogOnSide = false; this.diango = new Laya...

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

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

...暴增,这是为啥????   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

195. 在写屏蔽词库的程序时,字符串中没有屏蔽字库中的词,indexOf会出现返回0的情况 [ 68%]

... 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何东西的时候...

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

196. DOMException报错 [ 68%]

...a5416 • 2017-08-25 09:47 AudioSound类的play方法 177行 channel.url = this.url; 提示这个url报错 yonghua5416 • 2017-08-25 09:49 应该是切换,播放背景音乐时报错的 yonghua5416 • 2017-08-25 10:20 确定是切换背景音乐的导致的报错

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

197. 关于2.3.0动作克隆问题,AB两个怪物用同一个模型,A的动作会影响B。 [ 68%]

.../attack state.clipStart = clipStart; state.clipEnd = clipEnd; state.clip = this._animator.getDefaultState().clip; this._animator.addState(state);每个状态的clip都是 this._animator.getDefaultState().clip 这个对象。 播放动作时,是根据动作类型设置是否循环。 this._animato...

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

198. 在绘制扇形CD进度条时会在IOS上百分百出现绘制不完全的BUG(有必现Demo) [ 68%]

...在IOS上百分百出现绘制不完全的BUG:如下图     update() { this.updatePowerProgressTest(); } //更新蓄力进度圈 updatePowerProgressTest() { //是否为增加进度条 if (this.isIncPower) { //蓄力速度 this.currentPower += 5; if (this.currentPower >= this.powerTotal) { thi...

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

199. 照着官方文档写的 Dialog 报错? [ 68%]

...r LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype...

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

200. [LayaAirIDE3]skel骨骼动画播放失败,编辑器预览没问题 [ 68%]

...re ... ot%3B, Laya.Loader.SPINE).then((templet: Laya.SpineTemplet) => { this.skeleton = new Laya.SpineSkeleton();     this.skeleton.templet = templet;     console.log("动画数量:", this.skeleton.getAnimNum());     for (let i = 0; i < this.skeleton.getAnimNum(); i++) {         co...

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