• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,765 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0054 秒)

311. 龙骨动画残影 [ 69%]

...片段如下:  private _onAnimationCreated(ani)     {         console.log("ani created:" + ani);         this._hero = ani;         this.addChild(this._hero);         this._hero.pos(300, 400);         this._hero.scale(0.3, 0.3);         this._hero.on(La...

来源: Laya_社区 发布时间: 20160822

312. 关于3d的碰撞检测 [ 69%]

...碰撞器相交检测 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

313. laya生成的layaContainer div想用appendChild方法添加到某div下,但是针对sprite距离位置并没有变化 [ 69%]

...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

314. LayaNative中真机调试时JS中打印的信息会在DevTools里面输出两次 [ 69%]

...真机调试时JS中打印的信息会在DevTools里面输出两次 使用console.log打印数据,在开发机的真机调试页面devtools://devtools/bundled/inspector.html中的Console面板中可见输出了2次。然而在C++代码中LOGI出的内容则不会有此问题。不知对此有无...

来源: Laya_社区 发布时间: 20230823

315. [LayaAir3]laya3.2.4版本 在ide里测试点击无效 在浏览器里是正常的 [ 69%]

...示不出来的,您可以尝试打印具体的值,例如         console.log(e.currentTarget._gridData.x);         console.log(e.currentTarget._gridData.y); 就可以看到效果了 2025-03-25 1 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经...

来源: Laya_社区 发布时间: 20250325

316. 屏幕适配-屏幕适配 [ 69%]

..." + "(" + 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_示例 发布时间: 20251209

317. 屏幕适配-屏幕适配 [ 69%]

...配模式" + "(" + 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 Sp...

来源: Laya2.0_示例 发布时间: 20251209

318. HTMLDivElement中图文混排怎么获取实际内容大小 [ 69%]

...MLDivElement(); 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

319. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 69%]

...fixedConstraint.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

320. 仅在Android微信小游戏下图片错乱 [ 69%]

...nLoaded), 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