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

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

151. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 81%]

...割每个切片的宽度 clipWidth、竖向分割每个切片的高度 clipHeight,从左向右,从上到下,分割组合为一个切片动画。 ​ Clip 组件可以用来播放切片动画,和显示切片动画的某一帧图片。 ​ 点击资源面板里的 Clip 组件,拖放到页面...

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

152. 文本-自动换行 [ 81%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; createText(); })(); function createText() { var txt =...

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

153. 文本-复杂的文本样式 [ 81%]

...// 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya...

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

154. 屏幕适配-缩放-No Border [ 81%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBORDER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.st...

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

155. 屏幕适配-缩放-No Scale [ 81%]

...teRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSCALE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stag...

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

156. 文本-自动换行 [ 81%]

...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } createText() { const Text = Laya...

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

157. dialog设置缩放问题 [ 80%]

...scaleH) >> 1) + dialog.pivotX);  dialog.y = Math.round(((Laya.stage.height - dialog.height * dialog.scaleH) >> 1) + dialog.pivotY);   希望官方能优化一下!!感谢 2018-11-19 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

158. laya.html.HtmlImage_API3.0 [ 80%]

...HtmlObject Index Constructors constructor Properties obj Accessors element height width Methods create destroy pos release Constructors constructor new HtmlImage(): HtmlImage Defined in laya/html/HtmlImage.ts:12 Returns HtmlImage Properties Readonly obj obj: Sprite Defined in laya/html/HtmlImage.ts:...

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

159. 怎么裁剪一张图片 [ 80%]

...    * @param   width 宽绝对值。          * @param   height 高绝对值。          * @param   offsetX X 轴偏移量(可选)。          * @param   offsetY Y 轴偏移量(可选)。          * @param   sourceWidth 原始宽度,包括...

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

160. Texture.getPixels在手机真机Native环境中会报错 [ 80%]

...!因为是必现所以没有提供DEMO了   getPixels(xywidthheight) {             if (window.conch) {                 return this._nativeObj.getImageData(xywidthheight); //this._nativeObj为空!             }            ...

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