大约有 1,240 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(920) Laya3.0_api(80) Laya2.0_文档(78) Laya_示例(64) Laya2.0_示例(51) Laya3.0_文档(43) laya_api(2) Laya2.0_api(2)
... } this.rotate(vec); } } 监听的鼠标移动事件 Laya.stage.on(Laya.Event.MOUSE_UP,this,this.mouseUp); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE,this,this.mouseMove); private mouseDown():void{ let mX:number = Laya.stage.mouseX; this.lastM...
来源: Laya_社区 发布时间: 20180113
...(this.x + this.width) < this.maxRight){ this.isOutComplete = true; this.event(Floor.OUT_COMPLETE, this); }else if((this.x + this.width) < 0){ //判断整个floor是否不在屏幕里面了 如果不在了 移除当前floor Laya.timer.clear(this, this.onLoop); this.visible = false; this.event(F...
来源: Laya_社区 发布时间: 20160801
Laya.Event.RESIZE,舞台宽度未发送改变,还是一直重复执行 监听舞台的变化,Laya.stage.on(Laya.Event.RESIZE,this,this.autoScreen); 打开页面什么都不做,autoScreen函数不停的循环执行。。。 2017-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20171112
...res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); ...
来源: Laya_示例 发布时间: 20251130
...cene.load("../../res/threeDimen/scene/PBRScene/Demo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCA...
来源: Laya_示例 发布时间: 20251130
..., "$bar.png"); this.callLater(this.changeValue); this._sizeChanged(); this.event(Event.LOADED); }加载过程中, 组件执行了destroy()方法后, this._bg.skin = this._skin;// 这行会报错 2020-01-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...
来源: Laya_社区 发布时间: 20200108
...tar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmature(0); this.avatar.play(0,true); 2017-07-18 添加评...
来源: Laya_社区 发布时间: 20170718
...is._checkMask); this.popupEffect && this.popupEffect(dialog); this.event(/*laya.events.Event.OPEN*/"open"); }这个是源码open方法的实现~ if (closeOther)this.removeChildren(); 只有删除所有“孩子”的操作 并没有判断 每个child是否存在 closeHandler 2017-08-07 0 0...
来源: Laya_社区 发布时间: 20170807
BUG:添加RigidBody组件会使anchorX、anchorY失效 onClick(event: Laya.Event) { let sp = new Laya.Image(); sp.skin = "comp/tab.png" let body = new Laya.RigidBody(); body.gravityScale = 0; sp.addComponentIntance(body); sp.anchorX = sp.anchorY = 0.5; sp.pos(event.stageX, event.stageY); this.own...
来源: Laya_社区 发布时间: 20200216
...("../../res/threeDimen/skinModel/Zombie/old/Zombie.lh")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { zombie.transform.rotation = new Laya.Quaternion(-0.7071068, 0, 0, -0.7071068); zombie.transform.position = new Laya.Vector3(0.3, 0, 0); addSkinComponent(zombie); loadUI(); }); var s...
来源: Laya_示例 发布时间: 20251130