大约有 1,362 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0049 秒)
Laya_社区(1160) Laya2.0_文档(69) Laya3.0_文档(63) Laya2.0_示例(27) Laya_示例(24) Laya3.0_api(17) laya_api(1) Laya2.0_api(1)
...相交检测 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._color); this...
来源: Laya_社区 发布时间: 20180316
... 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.getElemen...
来源: Laya_社区 发布时间: 20201130
...出来的,您可以尝试打印具体的值,例如 console.log(e.currentTarget._gridData.x); console.log(e.currentTarget._gridData.y); 就可以看到效果了 2025-03-25 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁...
来源: Laya_社区 发布时间: 20250325
...e = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); console.log("debuginfo LayaAir3D constructer start loadres url:", this._sceneURl); Laya.loader.create([{url:this._sceneURl, clas:MyScene}], Laya.Handler.create(this, this.loadComplete)); } private loadComplete():void { cons...
来源: Laya_社区 发布时间: 20180317
...+ 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.Spr...
来源: Laya_示例 发布时间: 20251209
..." + "(" + modes[index] + ")"; } onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mouseY); } onResize() { //输出当前适配模式下的stage大小 console.log("size:", Laya.stage.width, Laya.stage.height); } } new SmartScale_T();module laya { import Sprite = La...
来源: Laya2.0_示例 发布时间: 20251209
...ment(); imageHtml.innerHTML="<img src='res/image/1.png' />"; console.log("size: " + imageHtml.width + ", " + imageHtml.height); console.log("contextSize: " + imageHtml.contextWidth + ", " + imageHtml.contextHeight); Laya.stage.addChild(imageHtml); 上述代码在Laya中运行 正确显示...
来源: Laya_社区 发布时间: 20171118
... function () { var _getRes = Laya.loader.getRes('bg-toolbar.png'); console.log(_getRes); }));然后log出来是undefined的,请问如何破?还有,对于图集的存放位置有什么要求吗(我不是用ide开发的,只是使用ide来打包图集) 2017-02-23 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170223
...straint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } override public function onJointBreak() { console.log("break"); } ``` - 4.示例效果展示 在...
来源: Laya2.0_文档 发布时间: 20210714
..., null, Loader.IMAGE, 1, true, null, true) } static onLoaded(res){ console.log("public assets inited !!!!") console.log(Laya.loader.getRes("res/ui/share@atlas0.png"))//此处会报循环引用错误,也就Android小游戏会 this.sInited = true } 用的是fairygui,目前已经通过删除缓...
来源: Laya_社区 发布时间: 20180609