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

大约有 3,008 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0059 秒)

1911. Tween.to时添加滤镜 [ 54%]

...色相等参数作为getter和setter,以写子类继承为例: public class CustomBitmap extends Sprite { public function CustomBitmap() { } public get luminance():Number { //返回亮度参数值 //... } //亮度,其他一样 public set luminance(value:Number):void { //你自己的处理代码 ...

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

1912. 求问:西文字体下半部分被遮挡,怎么处理? [ 54%]

...请: 与内容相关的链接 提交 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

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

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

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

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

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

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

1915. 微信小游戏,实现监听前后台切换 [ 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

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

1917. 关于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

1918. 引擎默认的微软雅黑字体会偏移 [ 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

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

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