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

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

1171. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 61%]

...OLOR ,null,0); } private function ef():void { if( TheGame.GetServerTime() > endTime ){ this.stop(); return; } var now:int = ( endTime - TheGame.GetServerTime() )/cdTime * 360; this.set360(now); } public function play(time:int,startTime_:int = 0):void { this.cdTime = time; var startTime:int = ( (s...

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

1172. TypeError: relativePath is undefined [ 61%]

TypeError: relativePath is undefined 文档 --> 扩展模块 --> 用LayaAir引擎解析Tiled Map地图 我的代码完全是复制的,一个字都不差 但是运行之后报错:TypeError: relativePath is undefined 文档传送门:https://ldc.layabox.com/doc/?nav=zh-js-3-4-0 2017-12-05 ...

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

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

... 风信子 赞同来自: 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

1174. 新手请问下如何开启Laya3D的physics [ 61%]

...olObj.getCollisionFlags(); if ((this.owner).isStatic){ if ((flags & 2)> 0) flags=flags ^ 2; flags=flags | 1; }else { if ((flags & 1)> 0) flags=flags ^ 1; flags=flags | 2; } btColObj.setCollisionFlags(flags); this._nativeColliderObject=btColObj; _super.prototype._onAdded.call(this); }...

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

1175. 每次发布小米快游戏,IDE都会重新自动生成main.js,之前在main。js改动的代码就丢失了 [ 61%]

...正式版签名的问题: 1) 在发布窗口打开的情况下,菜单 -> 帮助 -> 开发人员工具   执行 codeMain.publishProWin2.openDevTools() 2) 发布完成后,拷贝发布log到文件,附加到问题里,我们排查一下 2020-01-07 0 0 分享 微博 QZONE 微信 周少卿...

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

1176. 分享一个自己做的游戏公告功能,跑马灯效果 [ 61%]

.../ isPlayIng:boolean = false /** 空格 */ private space:string = "<span>                          </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() th...

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

1177. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 61%]

...中包围盒是否包含另一个点 if(this.num2 == 1) { if(this.tsizex > this.osizex && this.tsizez > this.osizez) { var eat = new Laya.Vector3(0, 0.5, 0);//龙卷风方法直接上升 other.owner.transform.translate(eat,true,false); //0.1秒后删除 Laya.timer.once(100, null, Wipe)...

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

1178. 使用命名空间遇到的问题 [ 61%]

...候就会有问题。 ts里官方可以用/// <reference path="A.ts" />来引用到其他文件中的类。 但是laya在编译的时候,并没有把其他文件的ts转换到bundle.js中。导致在运行过程中找不到。 laya只处理了import  {A} from "......" 。这样用的真的...

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

1179. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 61%]

...ro/zhujue_attack/zhujue_attack.skel"     Laya.loader.load(url).then(()=>{         let spine = spirit.addComponent(Laya.Spine2DRenderNode)         spine.source = url;         spine.skinName = "default";         spine.play("idle", true);         spirit.postProcess = new L...

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

1180. mac 下翻译出来的顺序问题 [ 61%]

..._dataObj[this._valueName]=this._value; SaveBase._cache[SaveBase._cache._length++]=this; this._newSubmit && (context._curSubmit=Submit.RENDERBASE,context._renderKey=0); } SaveBase._createArray=function(){ var value=; value._length=0; return value; } SaveBase._init=function(){ var namemap=Save...

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