大约有 1,071 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0055 秒)
...方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; onTriggerStay(other){ console.log("onTriggerStay"); }; onCollisionEnter(other){ console.log("onCollisionEnter"); }; onCollisionStay(collision){ console.log("onCollisionStay"); } } 附...
来源: Laya_社区 发布时间: 20191215
...(jsonString) { var pJson = JSON.parse(jsonString); console.log("code:"+ pJson .code); console.log("product_id:"+ pJson.product_id); console.log("amount:"+ pJson.amount); console.log("order_id:"+ pJson.order_id); console.log("desc:"...
来源: Laya2.0_文档 发布时间: 20210715
...onLoaded)); } private onLoaded(): void { console.log("onLoaded ......"); GameBootstrap.wxPostMessage({ cmd:1, text: 'hello', year: (new Date()).getFullYear() },nu...
来源: Laya_社区 发布时间: 20180529
...Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1秒需要使用3000,1000作为参...
来源: Laya_社区 发布时间: 20180620
... cell._childs[1].text=data.listNumber.text; console.log(index) //根据子节点的名字listNumber,获取子节点对象。 var listNumber1 = cell.getChildByName("text"); // var text = cell.getC...
来源: Laya_社区 发布时间: 20180717
...化则必须保证池中最少存在1个 if (this.m_ObjectPoolDic[key]){ console.log("初始化有误,该值已经有对应的 对象池了"); } else{ this.m_ObjectPoolDic[key]=new QueueT<Laya.MeshSprite3D>(); this.m_ObjectPoolDic[key].push(MeshSprite); } } //按照编号取出对应对象...
来源: Laya_社区 发布时间: 20191206
...這樣: Vector3 {elements: Float32Array[3]} 改成這樣: console.log( camera.transform.position.x ); console.log( camera.transform.position.y ); console.log( camera.transform.position.z ); 另外;你的 position 打錯,不是 postion 是 position。 2017-08-08 2 0 分享...
来源: Laya_社区 发布时间: 20170808
... this.rigidbody.linearVelocity = vectory; console.log("施加的线速度:"); console.log(vectory); console.log("获取得到的线速度:"); console.log(this.rigidbody.linearVelocity); 附件 : --> 2020-03-30...
来源: Laya_社区 发布时间: 20200330
...libs = )).push({ f: i, i: e }); }), window.layalib(function (i, e, t) { console 窗口报错如下: ------------------------------------------ WAGame.js:3 gameThirdScriptErrorCannot assign to read only property 'window' of object '#<Window>' TypeError: Cannot assign to read only property ...
来源: Laya_社区 发布时间: 20190319
...uest(); hr.http.timeout = 3000; hr.http.ontimeout = function(){console.log("http timeout test: timeout")}; hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");}); hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: er...
来源: Laya_社区 发布时间: 20171016