大约有 3,008 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0059 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...色相等参数作为getter和setter,以写子类继承为例: public class CustomBitmap extends Sprite { public function CustomBitmap() { } public get luminance():Number { //返回亮度参数值 //... } //亮度,其他一样 public set luminance(value:Number):void { //你自己的处理代码 ...
来源: Laya_社区 发布时间: 20180511
...请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 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_社区 发布时间: 20200108
...有通过一个类的名字(字符串)来获取该类的方法?类似get class by name laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物...
来源: Laya_社区 发布时间: 20190219
...s5,但是降到es5以后又会其他地方报错: Uncaught TypeError: Class constructor Scene cannot be invoked without 'new' 现在这个问题有办法解决吗? 2019-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20191002
...简单的思路,不知道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
... 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
...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
...个回复 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
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
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