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

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

1841. 文本-Overflow [ 60%]

...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

1842. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 59%]

...         }            private function drawSomething():void         {             sp = new Sprite();             Laya.stage.addChild(sp);             //画三角形             sp.graphics.drawPoly(30, 28, [0, 100, 50...

来源: Laya2.0_文档 发布时间: 20210714

1843. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 59%]

...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

1844. Sprite-绘制各种形状 [ 59%]

...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

1845. VR场景-VR地球 [ 59%]

...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

1846. laya.d3.webxr.core.AxiGamepad_API3.0 [ 59%]

...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

1847. [LayaAirIDE3]2d相机打包后问题 [ 59%]

...  }      //异步加载建筑图片     private loadBuildingImage(): void {         Laya.loader.load(             "res/building.png", // 你的建筑图片路径             Laya.Handler.create(this, () => {                 // 加载完成后绘制到building Sprite...

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

1848. Skeleton骨骼动画内存泄漏 [ 59%]

... 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

1849. Sprite-绘制各种形状 [ 59%]

...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

1850. UI-Button [ 59%]

...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