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

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

211. Sprite-新手引导 [ 67%]

...ipContainer); this.nextStep(); } nextStep() { if (guideStep === guideSteps.length) { Laya.stage.removeChild(guideContainer); Laya.stage.removeChild(tipContainer); return; } let step = guideSteps[guideStep++]; hitArea.unHit.clear(); hitArea.unHit.drawCircle(step.x, step.y, step.radius, "#000000"); in...

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

212. UI-Input [ 67%]

... } 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 createInput(skin: string):...

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

213. 分享一个Shader版的CoolDown实现 [ 66%]

...uv_info.zw - vec2(0.5,0.5))*256.0;\                 float radius = length(pos.xy);\                 float angle = -degrees(atan(pos.x, pos.y)) + 180.0;\                 float fa = radians(angle - progress * 360.0) * radius + 1.0;\                 fa = clamp(fa, 0.0, 1...

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

214. 看下这个问题是不是Bug [ 66%]

...r); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.length; i &lt; n; i++) { let comp = arr[i]; comp.owner &amp;&amp; comp._setActive(active); } arr.length = 0; } 无名玩家X • 2023-10-10 20:22 呃...也不用反复强调你们没问题... 感谢大佬科普,但是&quot;on...

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

215. laya.d3.math.native.ConchQuaternion_API3.0 [ 66%]

...y z Methods clone cloneTo equals fromArray getYawPitchRoll identity invert length lengthSquared normalize rotateX rotateY rotateZ scaling add createFromAxisAngle createFromMatrix3x3 createFromMatrix4x4 createFromYawPitchRoll dot invert lerp lookAt multiply rotationLookAt rotationMatrix slerp Constru...

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

216. 屏幕适配-屏幕适配 [ 66%]

...击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]; txt.text = "点击我切换适配模式" + "(" + modes[index] + ")"; } function onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mous...

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

217. 动画-新版骨骼动画 [ 66%]

...名称播放动画 zombieAnimator.play(clipName[++curStateIndex % clipName.length]); }); })); }class SkinAnimation_New { private changeActionButton: Laya.Button; private zombieAnimator: Laya.Animator; private curStateIndex: number = 0; private clipName: Array = ["walk", "attack", "left_fall", "right...

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

218. 屏幕适配-屏幕适配 [ 66%]

...击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index]; this.txt.text = "点击我切换适配模式" + "(" + modes[index] + ")"; } onClick(e) { //输出坐标信息 console.log("mouse:", Laya.stage.mouseX, Laya.stage.mouseY);...

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

219. UI-RadioGroup [ 66%]

...} private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: R...

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

220. UI-RadioGroup [ 66%]

...} private initRadioGroups(): void { for (var i: number = 0; i < this.skins.length; ++i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: R...

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