大约有 342 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
... screenPoint.y = Laya.MouseManager.instance.mouseY; // console.log(screenPoint); let touchRay:Laya.Ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); this.camera.viewportPointToRay(screenPoint, touchRay); ...
来源: Laya_社区 发布时间: 20220117
...; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) } 附件 : --> 2017-11-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: MorningPark 、Lay...
来源: Laya_社区 发布时间: 20171110
... str = hit.sprite3D.name + " "; } console.log(str); }); 2017-09-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 请参考:https://ldc.lay...
来源: Laya_社区 发布时间: 20170915
....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
...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
...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
... private function onError():void { console.log("parse error"); } } } 附件 : --> left.rar 2017-02-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20170204
...r.create(this, this.OnAssetComplete)); } private OnAssetComplete(): void { console.log("on asset complete:"); } 我想在OnAssetComplete内知道是哪个资源被回调了,请问要怎样处理,是否有现成的接口,我看了一下文档,没发现才提问 2018-03-16 添加评论 免费...
来源: Laya_社区 发布时间: 20180316
... } 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
...数 _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