大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3: Text = this.createText(); t3.overflow = Text.HIDDEN; t...
来源: Laya2.0_示例 发布时间: 20260303
... } private function drawSomething():void { sp = new Sprite(); Laya.stage.addChild(sp); //画三角形 sp.graphics.drawPoly(30, 28, [0, 100, 50...
来源: Laya2.0_文档 发布时间: 20210714
...key/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", ...
来源: Laya2.0_文档 发布时间: 20210714
...tage.bgColor = "#232628"; this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#...
来源: Laya_示例 发布时间: 20260303
...e.ltc"); vrCamera.sky = skyBox; Laya.timer.frameLoop(1, this, function (): void { earth.transform.rotate(this.rotation, true); }); } } new VRScene1;package vrModule { import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.Sprite3D; import laya.d3.core.VRCamera; import laya.d...
来源: Laya_示例 发布时间: 20260303
...Defined in laya/d3/WebXR/core/WebXRGamepad.ts:8 Methods destroy destroy(): void Defined in laya/d3/WebXR/core/WebXRGamepad.ts:62 destroy Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Param...
来源: Laya3.0_api 发布时间: 20231115
... } //异步加载建筑图片 private loadBuildingImage(): void { Laya.loader.load( "res/building.png", // 你的建筑图片路径 Laya.Handler.create(this, () => { // 加载完成后绘制到building Sprite...
来源: Laya_社区 发布时间: 20251125
... private te:Laya.Templet; private sk:Laya.Skeleton; private onKeyDown(e):void{ if(e.keyCode == 49 || e.keyCode == 97){ if(this.te == null){ this.te = new Laya.Templet(); this.te.on(Laya.Event.COMPLETE, this, this.teComplete); this.te.loadAni("res/wing_01_side.sk"); } } else if(e.keyCode == 50 || e.k...
来源: Laya_社区 发布时间: 20190320
...tage.bgColor = "#232628"; this.drawSomething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画线 this.sp.graphics.drawLine(10, 58, 146, 58, "#ff0000", 3); //画连续直线 this.sp.graphics.drawLines(176, 58, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#...
来源: Laya2.0_示例 发布时间: 20260303
...andler.create(this, this.onUIAssetsLoaded)); } private onUIAssetsLoaded(): void { for (var i: number = 0, len = this.skins.length; i < len; ++i) { var btn: Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset; var y: number = (i / this....
来源: Laya2.0_示例 发布时间: 20260303