大约有 4,094 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0089 秒)
Laya_社区(3317) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(114) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...class A { protected _id:number = 1; public get id():number { return this._id } public set id(value:number){ this._id = vaule; } } class B extends A { public set id(value:number){ this._id = value + 1; } } class C extends A { public get id():number { return this._id } ...
来源: Laya_社区 发布时间: 20161109
...d(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); this.progres...
来源: Laya2.0_示例 发布时间: 20251130
... 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** * 从父容器删...
来源: Laya3.0_文档 发布时间: 20251010
...ar LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERR...
来源: Laya_社区 发布时间: 20170215
...; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing...
来源: Laya2.0_示例 发布时间: 20251130
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); Laya.stage.on(Event.MOUSE_UP, this, this.onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, this.onMouseUp); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; let ...
来源: Laya2.0_示例 发布时间: 20251130
碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) if(this.outHitInfo.distance < 0)speedX = speedZ = 0; 这个判断中的this.outHitInfo.distance 一直等于-1? -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel...
来源: Laya_社区 发布时间: 20171113
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#3da8bb"; Stat.show(); this.createCanvases(); Laya.timer.frameLoop(1, this, this.animate); Laya.stage.on('mousedown', this, this.onMouseDown); Laya.stage.on('mousemove', this, this.onMouseMove); Laya.stage.on('mouseup', this, this.onMouseUp); } cre...
来源: Laya2.0_示例 发布时间: 20251130
...r; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = t...
来源: Laya_示例 发布时间: 20251130
... 1 个回复 大饼干 赞同来自: /** * Renders the quad */ render() { this.gl.useProgram(this.program); this.gl.bindBuffer(Laya.WebGLContext.ARRAY_BUFFER, this.vertexPositionBuffer); this.gl.enableVertexAttribArray(this.vertexPositionAttribute); this.gl.vertexAttribPointer( this.vertexPositionAt...
来源: Laya_社区 发布时间: 20180726