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

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

1. 微信小游戏渲染开放域卡顿处理 [ 100%]

...      */         protected onCreate(): void {             var self = this;             // 纹理             var texture = self.$texture = pfUtils.getShareCanvas();             var bitmap = self.$bitmap = texture.bitmap;             self.graphics.drawTexture(text...

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

2. Laya Label text不显示 [ 95%]

...lic static showNativeGroup() { /* if (this.nativeGroup) { return; } */ var self = this; Laya.View.load(SdkUtil.sdkDomain + "sdkres/laya/native/NativeGroup.json", new Laya.Handler(this, function (group: Laya.View) { /* if (this.nativeGroup) { return; } */ self.nativeGroup = group; self.nigrop = new N...

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

3. dialog里面的内容怎么不能添加到舞台 [ 94%]

...ole.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); L...

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

4. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 94%]

....onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.onClose=function (ws){ if (_self.onclose !=null){ _self.onclose(); } } this._socket.onOpen=function (ws){ if (_self.onopen !=null){ _self.onopen(); } } this._socket.onError=function (ws){ if (_s...

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

5. onTriggerEnter(other:*, self:*, contact:*)如何使用第三个参数 [ 92%]

onTriggerEnter(other:*, self:*, contact:*)如何使用第三个参数 请问layaAir 2.0中在脚本中重写onTriggerEnter(other:*, self:*, contact:*)时,第三个参数是什么意思?如何使用第三个参数? 2019-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

6. onTriggerEnter(other: any, self: any, contact: any) 参数使用 [ 92%]

onTriggerEnter(other: any, self: any, contact: any) 参数使用 onTriggerEnter(other: any, self: any, contact: any) 参数使用 2020-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 ...

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

7. Tween动画中的Sprite点击事件失效 [ 92%]

...件失效 Tween动画中的Sprite点击事件失效: 简单代码: var self = this; self.loserPrize.on(Laya.Event.MOUSE_DOWN,self,function(){     self.clickHanlder(); }) Laya.Tween.to(self.loserPrize, {      y: Laya.Browser.clientHeight }, Math.random() * 1500); self.gameZone.addChild(self....

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

8. laya3d 增加全局触控 [ 90%]

...需要精确到建模射线检测, 直接使用全局触控即可   var _self = this; document.addEventListener("mousedown",function(event){_self.onActDown(event);},false); document.addEventListener("mouseup",function(event){_self.onActUp(event);},false); document.addEventListener( 'touchstart', fu...

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

9. 发射射线检测不到,物体有包围盒 [ 81%]

...,物体确定加包围盒了      onStart(): void {         var self = this;             this.hitResult=new Laya.HitResult();                  Laya.Scene3D.load("res/LayaScene_game/Conventional/game.ls",Laya.Handler.create(null,function(scene3d){             // HelperAp...

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

10. 设置后box2d 的 worldRoot 后平移场景 物理世界原地不动 [ 81%]

...来自: 是要模仿镜头移动功能吗,这样可以 onAwake() { const self = this; self.gameObj = self.owner as Laya.Sprite; Laya.Physics.I.worldRoot = self.gameObj; this.cameraRect = new Laya.Rectangle(0, 0, 2000, 1000); this.gameObj.scrollRect = this.cameraRect; } onUpdate() { this.cameraRect...

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