大约有 965 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0061 秒)
... onTriggerEnter,onTriggerStay,onTriggerExit 方法,并且在方法内有console.log输出,player设置了点击z方向向前移动 2、GameManager.ts:40-41行获取被碰撞体、72-94行管理被碰撞体和给每个被碰撞体添加了刚体,同时 isTrigger =true,isKinematic=true,...
来源: Laya_社区 发布时间: 20200728
...ment.createElement('button'); this.btn_CloseWebiFrame.onclick = () => { console.log("onclick"); }; oncontextmenu也没有问题。this.img_closeWebiFrame.oncontextmenu = () => { console.log("aaa4"); this.img_closeWebiFrame.src = "SlotGameTemplate/phone_public_setting_source/phone_btn_setting...
来源: Laya_社区 发布时间: 20180126
...s.length; i++) { str += ` {${i} : ${data.touches[i].pos.toString()}}`; } } console.log("drag mouse down", str); }); Laya.stage.on(Laya.Event.MOUSE_UP, this, (data: Laya.Event) => { let str = ""; if (data.touches) { for (let i = 0; i < data.touches.length; i++) { str += ` {${i} : ${data.touches...
来源: Laya_社区 发布时间: 20230823
...碰撞器相交检测 Laya.Physics.rayCast(this.ray, this.outHitInfo, 0); console.log("x:" + rayOrigin.x + " y:" + rayOrigin.y + " z" + rayOrigin.z) this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, LayaAir3D.camera); this.phasorSpriter3D.line(this._linePos, this._color, this.ray.origin, this._col...
来源: Laya_社区 发布时间: 20180316
....alpha === null) { console.log("当前设备不支持陀螺仪。"); //去掉陀螺仪的移动 Laya.Gyroscope.instance.off(Laya.Event.CHANGE, this, this.onOrientationChange); ...
来源: Laya_社区 发布时间: 20170925
...0, 500, WebGL); Laya.stage.bgColor = "#ffffff"; console.log(Laya.Render._mainCanvas); Laya.Render._mainCanvas.source.style.top = "50px"; this.setup(); const parent = document.getElementById("preview"); const child = document.g...
来源: Laya_社区 发布时间: 20201130
...fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } onJointBreak() { console.log("break"); } ``` - 4.示例效果展示 在初始时,box...
来源: Laya2.0_文档 发布时间: 20210715
...fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } onJointBreak() { console.log("break"); } ``` - 4.示例效果展示 在初始时,box...
来源: Laya2.0_文档 发布时间: 20210715
..." + "(" + modes[index] + ")"; } function onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mouseY); } function onResize() { //输出当前适配模式下的stage大小 console.log("size:", Laya.stage.width, Laya.stage.height); } })();module laya { import Sprite = ...
来源: Laya_示例 发布时间: 20240930
...nhua • 2018-03-22 14:48 this.guge.once(Laya.Event.COMPLETE,this,()=>{ console.log('解析完成'); }); console.log(this.guge.templet); 这样是监听不到Complete事件的,打印出来this.guge.templet结果为null liwenhua • 2018-03-22 14:52 使用U编辑器I做的这个好像没有使...
来源: Laya_社区 发布时间: 20180322