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

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

21. 缓动-逐字缓动 [ 80%]

... Laya.stage.width - w >> 1; let endY = Laya.stage.height / 2 - 50; let demoString = "LayaBox"; for (let i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:i...

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

22. laya.ui.Clip_API3.0 [ 80%]

...ParentPoint updateZOrder fromImage Constructors constructor new Clip(url?: string, clipX?: number, clipY?: number): Clip Overrides UIComponent.constructor Defined in laya/ui/Clip.ts:151 创建一个新的 Clip 示例。 Parameters Default value url: string = null 资源类库名或者地址 Default ...

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

23. 混合模式-Lighter [ 80%]

...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_示例 发布时间: 20251130

24. 混合模式-Lighter [ 80%]

...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_示例 发布时间: 20251130

25. [LayaAirIDE3]xcode切入切出声音不播放 [ 79%]

...r } from "./ResourceManager"; declare function testmusic_cn_ios(accountId: string): void; enum SoundType {     BGM,     Effect,     Dialogue, } export class SoundManager {     private static instance: SoundManager;     private curBGMUrl: string;     private bgmChannel: Laya.SoundChannel ...

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

26. 网络通信 · LayaAir3文档 · LAYABOX [ 78%]

...串。如果请求未完成或失败,则该值为 null responseText DOMString 此次请求的响应为文本,或是当请求未成功或还未发送时为 null只读。 responseType XMLHttpRequestResponseType 设置该值能够改变响应类型。就是告诉服务器你期望的响应格式。...

来源: Laya3.0_文档 发布时间: 20250104

27. Clip组件Bug:Play方法无法结束循环 [ 77%]

...*/     private toFrameIndex = -1;     /**      * @param {string} path 原图位置(Sprite图)      * @param {number} cols 列数      * @param {number} rows 行数      * @param {number} [interval] 间隔时间,选填      * @param {boolean}...

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

28. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 77%]

...n.on(Event.CLICK, this, this.onPlayMusic); }  private createButton(label: string): Sprite { var w: number = 110; var h: number = 40;  var button: Sprite = new Sprite(); button.size(w, h); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.graphics.fillText(label, w / 2, 8, "25px SimHei", "#FF...

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

29. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 75%]

...   // also filters out NaN, non-number types, including empty strings, but allows bigints             const valid = ms > 0 && ms < Infinity              if (valid === false) {                 if (typeof ms !== 'nu...

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

30. 缓动 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...* @param value 属性目标值。 * @return Tween对象。 */ to(propName: string, value: any): this; 除了to()方法,还有from()和go()两种方法可以用于设置缓动的属性: /** * @zh 缓动对象的属性从指定值到当前值。 * @param propName 属性名称。 * 属性类型可...

来源: Laya3.0_文档 发布时间: 20251010