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

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

151. LayaAir 2.0.1 切换场景报异常 Cannot read property ‘_physicsUpdateList’ [ 68%]

...erObject);         this._colliderShape.destroy();         _super.prototype._onDestroy.call(this);         this._nativeColliderObject=null;         this._colliderShape=null;         this._simulation=null;         (this.owner).transform.off(/*laya.events...

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

152. 自定义对话框设置zOrder后,关闭时报错 [ 68%]

... var CountdownBar = (function () { function countdownBar() { PauseDialog.super(this); this.name = 'CountdownBar'; Laya.stage.addChild(this); this.zOrder = 100; this.count = 4; this.countLabel.text = '' + this.count; Laya.timer.loop(1000, this, this.countdown); } Laya.class(countdownBar, "CountdownBa...

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

153. 3D场景跳转到2D场景问题 [ 68%]

...port default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大...

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

154. 获取的ui页面里下on事件无法触发 [ 68%]

...触发 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出...

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

155. Dialog中编辑的动画如何控制? [ 68%]

...ng 赞同来自: function TestUI() { var Event = laya.events.Event; TestUI.super(this); this.ani1.play(15);//play的第一个参数是从第几帧开始播放 Laya.stage.on(Laya.Event.CLICK,this,onClick); } Laya.class(TestUI, "TestUI", TestPageUI); function onClick() { this.ani1.stop();//停止播...

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

156. Clip组件Bug:Play方法无法结束循环 [ 68%]

...rows: number, interval?: number, isLoop?: boolean) {         super(path, cols, rows);         if (interval != void 0) {             this.interval = interval;         }          this.on(Laya.Event.COMPLETE, this, () => {       ...

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

157. layaMaxUI.ts的自动生成代码bug [ 68%]

...dule ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainSceneUI); } 期待生成SceneBase, 结果仍然生成Laya.SceneBase     其他关联链接: https://ask.la...

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

158. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 68%]

...ipt extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya.MeshSprite3D(); } //物体必须拥有碰撞组...

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

159. 天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 [ 68%]

...个父容器,父容器的轴线点也是中心 constructor(skin:Box) { super(); this.mc = skin; this._name = this.mc.name; this.addChild(this.mc); var xx:number = this.mc.x; var yy:number = this.mc.y; this.x = xx; this.y = yy; //一个轴心点中心的addChild到另一个轴线点位中心的 thi...

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

160. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 68%]

...次数 如果想三连跳 改成 3 即可 this.jumpCountMax = 2; Player.__super.call(this); this.init(); } //玩家动作 //跑 Player.RUN = "player_run"; //飞 Player.FLY = "player_fly"; //暂时没有用到的动作 Player.HERT = "player_hert"; //跳 Player.JUMP = "player_jump"; //状态 Player.DI...

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