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

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

71. 关于类中方法的调用 [ 80%]

...Child(m_talkScroll); // this.onAction(); // this.onAction = function(){ // console.log("-------------hhhhhhhhhhh "); // } //第一种解决方法 onAction(); function onAction(){ console.log("这是第一种解决方法"); } //第二种解决方法 this.onAction(); } Laya.class(NpcLayer,"NpcLayer",_...

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

72. 【求助】关于Cannot read property 'visible' of undefined问题 [ 80%]

...(foodsList); addFoodListener(); } private function addFoodListener():void{ console.log(foodsList[this.index]); this.currentFood = this.foodsList[this.index]; console.log(currentFood); this.currentFood.on(Event.MOUSE_DOWN, this, onMouseDown); this.currentFood.on(Event.MOUSE_UP, this, onMouseUp); }cur...

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

73. Spine骨骼动画点击区域偏移 获取不到width height [ 80%]

...e.play("idle", true);         Laya.stage.addChild(sprite);         console.log(sprite.getBounds());           console.log(sprite.width,sprite.height));      } 附件 : --> ZG.zip 2016-11-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

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

74. unity 1.7.13.3插件(unity版本5.6.3、2017.1)+1.7.13库,载入lh文件报错 [ 80%]

...错误。那个插件菜单栏上面显示Version 1.7.13.3beta。但unity Console窗口Explore Data时显示的是1.7.14beta。是因为版本问题?? qian • 2018-01-15 17:30 1.7.14的插件确实有点问题 现在正在修复 推荐你下13版本的 woxiarong • 2018-01-15 17:38 @qian:请...

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

75. UI-RefreshList [ 80%]

...rollBarIsStopBind(){ return this.scrollBarIsStop; } onListMouse(e, index){ console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(this.openedItem,...

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

76. matter中有没有类似于unity中的OnCollision碰撞检测函数呀,用js怎么写 [ 80%]

...', this.onCollision);   2.碰撞检测 private onCollision(event): void { console.log("碰撞了..");  var home = _gamePage._mainPage._playPage;  for(var i = 0; i < event.pairs.length; i++) {  var pair = event.pairs[i];  if(!(pair.bodyA.label === 'gun' || pair.bodyB.label == "gun")) continue...

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

77. 我竟然被射线检测这个小功能给难了一天了 [ 80%]

...wner.scene as Laya.Scene3D;   this.physics=scene.physicsSimulation;     console.log("相机位置",(this.owner.getChildByName("Main Camera") as Laya.Sprite3D).transform.position) } onStart(): void {     Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya....

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

78. 对接上架字节跳动小游戏技术指南(TypeScript-小游戏适配文档-字节跳动小游戏) [ 80%]

...ta.duration }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发者根据需求,...

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

79. 微信小游戏分包实战(ActionScript-小游戏适配文档-微信小游戏) [ 80%]

...。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本篇文档主要是讲分...

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

80. rigidBody.applyForce 物体不会移动 [ 80%]

....MeshSprite3D = building.getChildByName( "fence15" ) as Laya.MeshSprite3D; console.log("-----"); console.log(building); console.log("-----"); console.log(moveArea); } private playRun(): void { this.animator.play("Running"); this.animator.speed = 1.0; } private playIdle(): void { this.animator.play("...

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