大约有 596 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0350 秒)
...ctor() { wx.onMessage(data => { console.log(data); if (data.isDisplay) { wx.getFriendCloudStorage({ success: res => { ...
来源: Laya_社区 发布时间: 20180507
...体"; 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
...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
...e); function _OnComplete() { var bounds = ani.getGraphicBounds(); console.log(bounds.width); console.log(bounds.height); } 这样的话获取动画宽高 还是只会取到第一帧宽高 并没有办法取到毎帧的宽高 2017-07-04 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170704
...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
...tPos.z + (2.5 - Math.random() * 5)); console.log('----------------goldnode', goldNode); this.playerGoldArr.push(goldNode); goldNode.addComponent(goldItemNode); 报错信息: Uncaught TypeEr...
来源: Laya_社区 发布时间: 20200326
...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
...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
...; 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
...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