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

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

1081. UI-Button [ 59%]

...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

1082. UI-Button [ 59%]

...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

1083. 鼠标交互-键盘交互 [ 59%]

...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

1084. laya.events.InputManager_API3.0 [ 59%]

...Id: number Returns Readonly&lt;Point&gt; 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

1085. laya.d3.math.Vector2_API3.0 [ 59%]

...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

1086. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 59%]

...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

1087. 其他引擎的Demo-Example_21 [ 59%]

... 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

1088. 设置遮罩(ActionScript-LayaAir基础篇(AS3)-位图) [ 59%]

...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

1089. laya.maths.Vector2_API3.0 [ 59%]

...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

1090. UI-CheckBox [ 58%]

...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