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

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

1. 混合模式-Lighter [ 100%]

...aya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //obj.g = Math.floor(obj.g); bgColorChannels.b = Math.floor(bgColorChannels.b); var ...

来源: Laya_示例 发布时间: 20260130

2. 混合模式-Lighter [ 99%]

...tage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g = 0; //obj.g = Math.floor(obj.g); bgColorChannels.b = Math.floor(bgColorChannels.b); var r = bgCol...

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

3. laya.maths.Point [ 90%]

...umber, y:Number):Point 将 Point 的成员设置为指定值。 Point  toString():String返回包含 x 和 y 坐标的值的字符串。PointPublic Constants ConstantDefined By  TEMP : Point[static] 临时使用的公用对象。PointProperty Detailxpropertypublic var x:Number该点的水平坐...

来源: laya_api 发布时间: 20170929

4. laya.maths.Point_API3.0 [ 90%]

... Properties x y TEMP Methods copy distance normalize recover reset setTo toString create Constructors constructor new Point(x?: number, y?: number): Point Defined in laya/maths/Point.ts:16 根据指定坐标,创建一个新的 Point 对象。 Parameters Default value x: number = 0 (可选)水...

来源: Laya3.0_api 发布时间: 20231115

5. ts加密md5码封装 [ 88%]

...):Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean = typeof target === "string") { if (typeof target === "string") target = target.split(""); let result: any[] = target.ma...

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

6. laya.maths.Point [ 88%]

...umber, y:Number):Point 将 Point 的成员设置为指定值。 Point  toString():String返回包含 x 和 y 坐标的值的字符串。PointPublic Constants ConstantDefined By  TEMP : Point[static] 临时使用的公用对象。PointProperty Detailxpropertypublic var x:Number该点的水平坐...

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

7. laya.utils.Timer_API3.0 [ 81%]

...destroy frameLoop frameOnce loop once pause resume runCallLater runTimer toString Constructors constructor new Timer(autoActive?: boolean): Timer Defined in laya/utils/Timer.ts:34 创建 Timer 类的一个实例。 Parameters Default value autoActive: boolean = true Returns Timer Properties currFram...

来源: Laya3.0_api 发布时间: 20231115

8. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 80%]

...ader.IMAGE }] /** 添加文件hash */ export const setStaticPrefix = (url:string) :string => { if (staticHash[`images/${url}`]) { return staticHash[`images/${url}`] } return `images/${url}` }然后资源导出的时候使用gulp生成文件hash 这样增量更新方式比整个替换文件夹要...

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

9. laya.utils.Timer [ 79%]

...id 立即提前执行定时器,执行之后从队列中删除 Timer  toString():String 返回统计信息。TimerProperty DetailcurrFramepropertypublic var currFrame:int = 0 当前的帧数。currTimerproperty public var currTimer:Number 当前帧开始的时间。deltaproperty delta:int  [r...

来源: laya_api 发布时间: 20170929

10. laya.utils.Timer [ 78%]

...id 立即提前执行定时器,执行之后从队列中删除 Timer  toString():String 返回统计信息。TimerProperty DetailcurrFramepropertypublic var currFrame:int = 0 当前的帧数。currTimerproperty public var currTimer:Number 当前帧开始的时间。deltaproperty delta:int  [r...

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