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

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

231. 缓动-缓动函数演示 [ 63%]

...ass Tween_EaseFunctionsDemo { private character: Sprite; private duration: number = 2000; private tween: Tween; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode =...

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

232. parseInt FlashBuilder 报错。咋整? [ 63%]

parseInt FlashBuilder 报错。咋整? parseInt 一个 Number时 2018-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 w1114367261 赞同来自: 上传下你的错误信息和问题代码的截图我看下...

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

233. UI-Label [ 63%]

...eateLabel(color: string, strokeColor: string): Label { const STROKE_WIDTH: number = 4; var label: Label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = strokeColor...

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

234. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 63%]

...ller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image();             //...

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

235. 缓动-简单的Tween [ 62%]

...gColor = "#232628"; this.setup(); } private setup(): void { var terminalX: number = 200; var characterA: Sprite = this.createCharacter("../../res/cartoonCharacters/1.png"); characterA.pivot(46.5, 50); characterA.y = 100; var characterB: Sprite = this.createCharacter("../../res/cartoonCharacters/2.pn...

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

236. UI-Input [ 62%]

...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...

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

237. 这样的panel请问如何实现比较好? [ 62%]

...layoutSecond.visible = false; } //点击切换状态 private change(state: number, e: Laya.Event) { e.stopPropagation(); this.state = state; this.layoutSecond.visible = (state === 0); this.btnFirst.visible = (state !== 0);  } }   2.定义一个界面,界面上放一个Panel(因为要滑动) clas...

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

238. UI-Input [ 62%]

...omplete));//加载资源。 } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: TextInput = this.createInput(this.skins[i]); input.prompt = 'Type:'; input.x = (Laya.stage.width - input.width) / 2; input.y = i * this.SPACING + this.Y_OFFSET; } } private...

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

239. 陀螺仪与加速计 · LayaAir3.0文档 · LAYABOX [ 62%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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

240. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 62%]

...Gravity: Laya.AccelerationInfo, rotationRate: Laya.RotationInfo, interval: number): void { this.info.text = 'acceleration:(' + acceleration.x.toFixed(3) + ', ' + acceleration.y.toFixed(3) + ', ' + acceleration.z.toFixed(3) + ')\n' + 'accelerationIncludingGravity:(' + accelerationIncludingGravity.x.t...

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