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

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

531. TS setExternalLinkEx問題 [ 73%]

...nimationFrame(render); } window.requestAnimationFrame(render); document.addEventListener('touchstart',()=>{ if(Browser.window.conch){ var l = 50; var t = 50; var w = window.innerWidth-l*2; var h = window.innerHeight-t*2; Browser.window.conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,true...

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

532. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 73%]

...e.height); Laya.stage.addChild(this.info); Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, this.onDeviceorientation); } private  onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.f...

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

533. 为何对sp的监听事件没有反应呢? [ 73%]

...Laya.stage.height - xxx.height) / 2; Laya.stage.addChild(xxx); xxx.on(Laya.Event.CLICK, this, this.onXXX); private onXXX() {    console.debug("Hello"); } 2017-06-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

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

534. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 73%]

...0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉...

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

535. hitArea用法问题 [ 73%]

...hitArea = closeRect;  // closeBtn 为 Laya.Button 实例 this.closeBtn.on(Event.CLICK,this,this.closeWin); private closeWin():void {     console.log("the window has closed..."); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

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

...分享 微博 QZONE 微信 taofljf 赞同来自: namespace uiview { import Event = Laya.Event; import Browser = Laya.Browser; export class ViewLogin extends ui.loginViewUI { constructor() { super(); this.smo this.visible = false; 我的问题是UI界面如何对齐,不是舞台。。 2018-02-06 0 ...

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

537. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 72%]

...擎版本是1.7.16beta。package { import laya.display.Sprite; import laya.events.Event; import laya.maths.Point; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Main { private var _tex:Texture; p...

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

538. 动画监听回调怎么会无限成倍调用 [ 72%]

动画监听回调怎么会无限成倍调用 this.star.on(Laya.Event.COMPLETE, this, function () { 解决这个问题·两天了·我差点怀疑我的智商,写了好几遍正确的递归思路。结果就是成倍调用, 最后发现是 我在递归方法里面监听动画播放完毕,第...

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

539. 扩展脚本问题,麻烦帮看下 [ 72%]

...版 我这样载入场景问题出现在哪呢?? ios原生回调问题 event自定义事件的问题 关于主程序过大的问题 问题状态 最新活动: 2018-07-24 11:00 浏览: 1383 关注: 2 人 Nothing • 2018-07-24 11:03 好的,谢谢,frameOnce原来关键在这里,可以,今...

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

540. 一个没有动作的骨骼动画 替换插图没有用 [ 72%]

...     this.skebqb.play(4, false);         this.skebqb.on(Laya.Event.STOPPED,this,this.changeSkin);         this.owner.addChild(this.skebqb);         this.skebqb.pos(500, 600);         this.changeSkin();     }      changeSkin(){         this.skeb...

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