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

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

241. physicsSimulation.rayCast在新版本里选取不准确 [ 55%]

...   screenPoint.y = Laya.MouseManager.instance.mouseY;  //      console.log(screenPoint);          let touchRay:Laya.Ray = new Laya.Ray(new Laya.Vector3(000), new Laya.Vector3(000));         this.camera.viewportPointToRay(screenPoint, touchRay);    ...

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

242. lh文件内meshSprite添加阴影属性无效 [ 55%]

...; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2017-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: MorningPark 、Lay...

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

243. 射线一直无法获取物体 [ 55%]

...           str = hit.sprite3D.name + "  ";         }         console.log(str);     }); 2017-09-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 请参考:https://ldc.lay...

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

244. var text = new Laya.Text();为什么text.pivot(200,200);不起作用 [ 55%]

....Text(); text.pivot(text.width / 2, text.height / 2); text.pivot(200,200); console.log(text.pivotX, text.pivotY); 打印显示都是0 2018-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人...

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

245. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 55%]

...roto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); return; }; var width=img.sourceWidth; var height=img.sourceHeight / this._stateNum; img.$_GID || (img.$_GID=Utils.getGID()); var key=img.$_GID+"-"+this._stateNum; var clips=AutoBitmap.getC...

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

246. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 55%]

...is.btn_register.on(Laya.Event.CLICK, this, this._onRegister); } catch(e) { console.log(e); } } /** * 点击注册 */ private async _onRegister() { // console.table(this._arrCheck); } /** * 检查注册自信是否正确 */ private _checkRegInfo(): boolean { // TODO 还没有写检查!!!!! if (!this....

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

247. 解析sk资源报错 [ 55%]

...   private function onError():void         {             console.log("parse error");                      }     } } 附件 : --> left.rar 2017-02-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

248. load完成后能否获取到具体是哪个对象资源完成 [ 55%]

...r.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回调了,请问要怎样处理,是否有现成的接口,我看了一下文档,没发现才提问 2018-03-16 添加评论 免费...

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

249. 模拟石头下落过程不明抖动 [ 54%]

... } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:number = 0 ; i < this.balls.length;i++ ){ if( !this.balls[i].parent ){ return this.balls[i]; } } let ball = new Laya.Sprite(); ball .graphics.drawRect( 0...

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

250. 为何定时时钟函数可以执行,但是得到的值却不会实时刷新 [ 54%]

...数 _proto_.ontime = function(){ this.loadNum=parseInt(this.loadNum) + 1; console.log(this.loadNum); return this.loadNum; }   控制台可以看到 ontime函数每隔 100毫秒就执行一次,this.loadNum的值在不断自增。 但是 this.txt_load.text = "资源加载中,当前进度:" + pa...

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