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

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

1921. Laya.Scene.open方法中的complete的handler不返回 [ 54%]

...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物...

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

1922. 2.3.0beta版本,微信真机调用async函数报错 [ 54%]

...s5,但是降到es5以后又会其他地方报错: Uncaught TypeError: Class constructor Scene cannot be invoked without 'new'   现在这个问题有办法解决吗? 2019-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

1923. 微信小游戏,实现监听前后台切换 [ 54%]

...简单的思路,不知道Laya本身是否有解决方案啊  wxhelper.jsclass WXHELPER { constructor () { this._isWxContext = !!window.wx } onShow (callback) { if (!this._isWxContext) return window.wx.onShow(callback) } onHide (callback) { if (!this._isWxContext) return window.wx.onHide(callback)...

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

1924. LayaAir和LayaNative 交互问题 [ 54%]

... zmc1220 赞同来自: js的: // a、创建Test类 var Test=Laya.PlatformClass.createClass("com.layabox.test.Test"); // 这个名字要与下面声明的Java的类名匹配. 包名+类名 //var a=false; var a = true; // Test.call("openlight",a); // 注册手指按下事件 document.addEventListene...

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

1925. 关于button的click监听 [ 54%]

...an • 2017-11-28 14:08 就新建项目 这是所有代码 // 程序入口 class GameMain{ constructor() { Laya.init(750,1334,Laya.WebGL); Laya.stage.bgColor="#FFFFFF"; Laya.stage.scaleMode = "showall"; //不缩放 fixedauto showall Laya.stage.alignH = "center"; //水...

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

1926. 引擎默认的微软雅黑字体会偏移 [ 54%]

...个回复 Laya_Aaron 赞同来自: 临时绕过方法: TextRender.as   class TextRender getFontSizeInfo 函数,最后部分    var xoff:int = Math.max( orix - pixelBBX[0], 0);    var yoff:int = Math.max( oriy - pixelBBX[1], 0);    var bbxw:int = pixelBBX[2] - pixelBBX[0];    var bbxh:int...

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

1927. laya.d3.math.Matrix3x3 [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined ...

来源: laya_api 发布时间: 20170929

1928. laya.d3.math.Matrix3x3 [ 54%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames Matrix3x3Properties | Methods | Constants Packagelaya.d3.mathClasspublic class Matrix3x3InheritanceMatrix3x3 ObjectImplements laya.d3.core.IClone Matrix3x3 类用于创建3x3矩阵。 Public Properties PropertyDefined ...

来源: Laya2.0_api 发布时间: 20190513

1929. HTMLIframeElement加载html网页的问题 [ 54%]

...ader = laya.net.Loader; import HTMLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Lay...

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

1930. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 54%]

...,并且给4个猴都添加了脚本。 > **脚本类**: ```typescript class MouseScript extends Script3D{ private var meshsp:MeshSprite3D; public function MouseScript() {} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ o...

来源: Laya2.0_文档 发布时间: 20210715