大约有 1,651 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0059 秒)
Laya_社区(676) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya3.0_文档(67) Laya_示例(58) Laya2.0_示例(54)
...ICAL_SPACING + this.yOffset; btn.pos(x, y); } } private createButton(skin: string): Button { var btn: Button = new Button(skin); Laya.stage.addChild(btn); return btn; } } } new laya.UI_Button();package { import laya.display.Stage; import laya.ui.Button; import laya.utils.Handler; import laya.webgl.W...
来源: Laya2.0_示例 发布时间: 20260130
...ICAL_SPACING + this.yOffset; btn.pos(x, y); } } private createButton(skin: string): Button { var btn: Button = new Button(skin); Laya.stage.addChild(btn); return btn; } } } new laya.UI_Button();package { import laya.display.Stage; import laya.ui.Button; import laya.utils.Handler; import laya.webgl.W...
来源: Laya_示例 发布时间: 20260130
...r(): void { var numKeyDown: number = this.keyDownList.length; var newText: string = '[ '; for (var i: number = 0; i < numKeyDown; i++) { if (this.keyDownList[i]) { newText += i + " "; } } newText += ']'; this.logger.changeText(newText); } /**添加提示文本*/ private createLogger(): void { this.l...
来源: Laya2.0_示例 发布时间: 20260130
...Id: number Returns Readonly<Point> Static hasKeyDown hasKeyDown(key: string | number): boolean Defined in laya/events/InputManager.ts:93 返回指定键是否被按下。 Parameters key: string | number 键值。参考:https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event...
来源: Laya3.0_api 发布时间: 20231115
...eturns void Static rewriteNumProperty rewriteNumProperty(proto: any, name: string, index: number): void Defined in laya/d3/math/Vector2.ts:144 Parameters proto: any name: string index: number Returns void Static scalarLength scalarLength(a: Vector2): number Defined in laya/d3/math/Vector2.ts:115 计...
来源: Laya3.0_api 发布时间: 20231102
...yaSample.bb的num console.info(s); }, 1000); } } class Child{ private _num:string; public num(n:string){ this._num = n; } public shuchu(){ return this._num; } } new LayaSample(); 2018-08-05 3 0 分享 微博 QZONE 微信 手撕腊鸭 赞同来自: 138*****417 、呆到八得 、陈斌 、小卡 ...
来源: Laya_社区 发布时间: 20180729
... 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#3da8bb"; this.createCanvases(); Laya.timer.frame...
来源: Laya_示例 发布时间: 20260130
...exture; import laya.utils.Handler; public class MaskDemo { private var Res:String; private var img:Sprite; public function MaskDemo() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加...
来源: Laya2.0_文档 发布时间: 20210714
...eturns void Static rewriteNumProperty rewriteNumProperty(proto: any, name: string, index: number): void Defined in laya/maths/Vector2.ts:156 Parameters proto: any name: string index: number Returns void Static scalarLength scalarLength(a: Vector2): number Defined in laya/maths/Vector2.ts:127 计算...
来源: Laya3.0_api 发布时间: 20231115
...teLabel, [cb]); this.updateLabel(cb); } } } } private createCheckBox(skin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(...
来源: Laya2.0_示例 发布时间: 20260130