大约有 418 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0074 秒)
Laya3.0_api(292) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27) Laya_社区(8) Laya2.0_文档(2) Laya2.0_示例(1) Laya_示例(1)
...ab = laya.ui.Tab; import Handler = laya.utils.Handler; class Tab_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/tab.png"], Handler.create(this, this.onLoadComplete));//加载...
来源: Laya3.0_api 发布时间: 20231115
...“引擎API使用示例” export class MultiLight extends BaseScript { constructor() { super(); } onAwake(): void { var moveScript: LightMoveScript = this.camera.addComponent(LightMoveScript); var moverLights: Laya.Sprite3D[] = moveScript.lights; var offsets: Vector3[] = moveScript.offsets; var mo...
来源: Laya3.0_文档 发布时间: 20251010
...此 image 对象添加到显示列表。 } example class Image_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 this.onInit(); } private onInit(): void { var bg: laya.ui.Image = new laya.ui.Image("resource/ui/...
来源: Laya3.0_api 发布时间: 20231115
...aya.utils.Handler; class Dialog_Example { private dialog: Dialog_Instance; constructor() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, this.onLoadComplete));//加...
来源: Laya3.0_api 发布时间: 20231115
... 获得所属场景。 Implementation public function get scene():*Constructor DetailNode()Constructorpublic function Node()Method DetailaddChild()method public function addChild(node:Node):Node 添加子节点。 Parameters node:Node — 节点对象 ReturnsNode — 返回添加的节点 ad...
来源: Laya2.0_api 发布时间: 20190513
....TextInput; import Handler = laya.utils.Handler; class TextInput_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...
来源: Laya3.0_api 发布时间: 20231115
...ui.TextArea; import Handler = laya.utils.Handler; class TextArea_Example { constructor() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, this.onLoadComp...
来源: Laya3.0_api 发布时间: 20231115
...egClass() export class DemoPreviewPlugin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示...
来源: Laya3.0_文档 发布时间: 20251010
...ty Detailelementspropertypublic var elements:Float32Array矩阵元素数组Constructor DetailMatrix4x4()Constructorpublic function Matrix4x4(m11:Number = 1, m12:Number = 0, m13:Number = 0, m14:Number = 0, m21:Number = 0, m22:Number = 1, m23:Number = 0, m24:Number = 0, m31:Number = 0, m32:Number = 0,...
来源: Laya2.0_api 发布时间: 20190513
... */ private _text: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //...
来源: Laya3.0_文档 发布时间: 20251010