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

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

221. 销毁有声音的spine动画,skeleton中的_onAniSoundStoped有时会报undefined错误 [ 64%]

...*停止播放     */     __proto.stop=function(){         _super.prototype.stop.call(this);         /**     *停止播放。     */     __proto.stop=function(){         if (this.completeHandler)this.completeHandler.run();     } 猜测bug原因如下:...

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

222. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 64%]

...ends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张图片都是256*256大小的地图块 this....

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

223. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 64%]

...ic are: Laya.Rectangle = new Laya.Rectangle(0, 0, 60, 30); constructor() { super(); var _fish: Laya.Sprite = new Laya.Sprite() _fish.graphics.drawRect(this.are.x, this.are.y, this.are.width, this.are.height, "#00ff00"); _fish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, fun...

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

224. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 64%]

... class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.StandardMaterial(); sprite3DMat.cull = Laya.BaseMaterial.CULL_NO...

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

225. UI怎么设置居中显示,显示到游戏窗口中 [ 64%]

...a.Browser; export class ViewLogin extends ui.loginViewUI { constructor() { super(); this.smo this.visible = false; 我的问题是UI界面如何对齐,不是舞台。。 2018-02-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 taofljf...

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

226. clearRes好像没作用,或许我的用法不对 [ 64%]

...才代码路径有误,更正如下     constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")         ...

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

227. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 64%]

... horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +t...

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

228. 自定义场景继承导出,会在自定义类中加入Laya.前缀导致layaMaxUI文件报错 [ 64%]

...;         public btnClose:Laya.Button;         constructor(){ super()}         createChildren():void {             super.createChildren();             this.createView(GmPanelUI.uiView);         }     } }   2.0之前版本,是不会把Laya.前缀...

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

229. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 64%]

...eUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 2000, Laya.Ease.bounceOut...

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

230. 2.0下资源加载和销毁内存问题 [ 64%]

...tmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void     { if(this.szurl!="") this.disp() this.szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ thi...

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