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

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

421. 鼠标事件out ,move 发生再up事件之后 [ 94%]

...p事件之后 一个页面,绑定事件  initEvent() {         this.bubbleView.on(Laya.Event.MOUSE_MOVE, thisthis.mouseMoveCallback);         this.bubbleView.on(Laya.Event.MOUSE_UP, thisthis.mouseUpCallback);         this.bubbleView.on(Laya.Event.MOUSE_OUT, this,...

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

422. 为什么自定义shader大图正常,小图就被缩小了 [ 94%]

...使用自定义着色器时,需要设置该显示对象类的渲染模式this._renderType |= Laya.RenderSprite.CUSTOM;并且需要重写该类的渲染处理函数 */ var myShaderSprite = (function (_super) { this.iNum = 0; function myShaderSprite() { myShaderSprite.super(this); } Laya.class(mySha...

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

423. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 94%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果 * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本方...

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

424. Geolocation.watchPosition [ 94%]

Geolocation.watchPosition Geolocation.enableHighAccuracy = true; this.gps_handler = Handler.create(this, this.update_gps); this.failed_handler = Handler.create(this, this.gps_failed); this.watch_id = Geolocation.watchPosition(this.gps_handler, this.failed_handler); this.gps_handler 只会回调一...

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

425. 关于this [ 94%]

关于this Laya的有许多方法,关于this(执行与域),我写的项目可能和大多数人不一样,我的域有很多,找不到有些this指的什么,Laya有没有什么方法可以找到this的地址? 2018-02-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

426. tween [ 94%]

...行 这是暂停函数: __proto.pause=function(){ Laya.scaleTimer.clear(this,this._beginLoop); Laya.scaleTimer.clear(this,this._doEase); 以下是Tween类里面的 create 函数的代码段 BUG就出在 Laya.scaleTimer.once(delay,this,this.firstStart,[target,props,isTo]); if (runNow){ if (delay &l...

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

427. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 94%]

...//在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.v...

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

428. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 94%]

...//在舞台上添加鼠标事件监听 Laya.stage.on(Laya.Event.MOUSE_DOWN,this, this.onMouseDown); } //点击触发事件 onMouseDown() { //记录点击到舞台上的点 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.v...

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

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

...l 求指导~~       __proto._onDestroy=function(){          (this._inPhysicUpdateListIndex!==-1)&& (this._simulation._physicsUpdateList.remove(this));          var physics3D=Laya3D._physics3D;         delete PhysicsComponent._physicObjectsMap[this.id];     ...

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

430. 滤镜-模糊滤镜 [ 94%]

...a.stage.bgColor = "#232628"; Laya.loader.load(apePath, Laya.Handler.create(this, this.setup)); } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.gr...

来源: Laya2.0_示例 发布时间: 20250224