大约有 1,763 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0059 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(85) Laya2.0_api(67) laya_api(64)
...(this.rotation, false); teapot2.transform.rotate(this.rotation, false); });class BlinnPhong_ReflectMap { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE...
来源: Laya_示例 发布时间: 20251209
...nArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:any = Laya...
来源: Laya_示例 发布时间: 20251209
...Globals "laya/d3/core/particleShuriKen/module/FrameOverTime" FrameOverTime Class FrameOverTime FrameOverTime 类用于创建时间帧。 Hierarchy FrameOverTime Implements IClone Index Constructors constructor Accessors constant constantMax constantMin frameOverTimeData frameOverTimeDataMax frameOve...
来源: Laya3.0_api 发布时间: 20231115
...ombieAnimator.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_fall", "back_fall"]...
来源: Laya_示例 发布时间: 20251209
...erited Externals Only exported Menu Globals "laya/d3/math/Vector2" Vector2 Class Vector2 Vector2 类用于创建二维向量。 Hierarchy Vector2 Implements IClone Index Constructors constructor Properties x y ONE ZERO Methods clone cloneTo forNativeElement fromArray setValue toArray writeTo dot nor...
来源: Laya3.0_api 发布时间: 20231102
...数据源 必须要在代码中给List组件设置数据源。 const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台后 onEnable...
来源: Laya3.0_文档 发布时间: 20251010
...Globals "laya/d3/core/particleShuriKen/module/GradientColor" GradientColor Class GradientColor GradientColor 类用于创建渐变颜色。 Hierarchy GradientColor Implements IClone Index Constructors constructor Accessors constant constantMax constantMin gradient gradientMax gradientMin type Method...
来源: Laya3.0_api 发布时间: 20231115
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.VSlider)。 ProgressBar 组件的资源示例:  (图1)  (图2) 设置 ProgressBar 组件的属性 value 的值为 0.3 后,显...
来源: Laya2.0_文档 发布时间: 20210715
...nherited Externals Only exported Menu Globals "laya/maths/Vector2" Vector2 Class Vector2 Vector2 类用于创建二维向量。 Hierarchy Vector2 Implements IClone Index Constructors constructor Properties x y ONE ZERO Methods clone cloneTo forNativeElement fromArray setValue toArray writeTo dot equ...
来源: Laya3.0_api 发布时间: 20231115
... 保存场景后,在RuntimeScript.ts中添加如下代码: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close...
来源: Laya3.0_文档 发布时间: 20251024