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

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

101. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 78%]

...ctor() {         wx.onMessage(data => {             console.log(data);             if (data.isDisplay) {                 wx.getFriendCloudStorage({                     success: res => {                     ...

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

102. 有关Laya3D碰撞检测疑问 [ 78%]

...体";  Laya.timer.frameLoop(1, this, this.checkHit);  this.loadUI();  console.log("碰撞结果:" + boxCollider1.boundBox.containsSphere(cylinder.meshRender.boundingSphere)); console.log("碰撞结果:" + boxCollider1.boundBox.containsBoundBox(cylinder.meshRender.boundingBox)); console.log("碰...

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

103. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 78%]

...dChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold 哪定义的呢 xdkaka • 2017-12-13 17:17 上面图片截图了,是在UI编辑模式下 -公用-...

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

104. 怎么对动画进行毎帧侦听? [ 78%]

...e);   function _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办法取到毎帧的宽高 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...

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

105. Skeleton骨骼动画内存泄漏 [ 77%]

...enceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // console.log("texture2d destory"); } this.bitmap=null; } if (this.url && this===Laya.loader.getRes(this.url)) Laya.loader.clearRes(this.url); } }增加的代码是 if (this.bitmap.referenceCount===0){ this.bitmap.dest...

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

106. 给模型动态添加脚本报错 [ 77%]

...tPos.z + (2.5 - Math.random() * 5));                 console.log('----------------goldnode', goldNode);                 this.playerGoldArr.push(goldNode);                 goldNode.addComponent(goldItemNode);     报错信息: Uncaught TypeEr...

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

107. Image.loadImage 方法加载问题 [ 77%]

...oData:any )   {    this._publicSpaceData = publicSpaceInfoData;    console.log( this._publicSpaceData.icon );    this.bg.loadImage( "res/atlas/gamewindow/" + this._publicSpaceData.icon,0,0,0,0, new Laya.Handler(this, this.imgLoaded) );    this.addChild( this.bg );    this.addChild( ...

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

108. 射线检测报错,outHitInfo.sprite3D=null; [ 77%]

...is.camera = this.scene.scene.getChildByName("Main Camera") as Laya.Camera; console.log("当前摄像机的名字是:" + this.camera.name); }  public _start(state:Laya.RenderState):void{ this.ray = new Laya.Ray(Laya.Vector3.ZERO,Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D();...

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

109. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 77%]

...; this._path_space_y = Math.abs( this._tail_pos.y - this._head_pos.y ); // console.log("set path head_pos:" + this._head_pos.x + ":" + this._head_pos.y); // console.log("set path tail_pos:" + this._tail_pos.x + ":" + this._tail_pos.y); // console.log("set path space:" + this._path_space_x + ":" + th...

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

110. list item 添加事件后无法监听 [ 77%]

...Item);     return list; }  function updateItem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(in...

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