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

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

2131. laya.map.TileAniSprite [ 36%]

... Inherited Public Methods Show Inherited Public Methods MethodDefined By addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加...

来源: Laya2.0_api 发布时间: 20190513

2132. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 36%]

....create(this, function(scene:Laya.Scene3D):void { this._scene = Laya.stage.addChildAt(scene, 0) as Laya.Scene3D; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们...

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

2133. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 36%]

... MyScene.load(this._sceneURl) as MyScene; this._scene.output(); Laya.stage.addChild(this._scene); var camera:Laya.Camera = this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle&...

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

2134. laya.display.AnimationBase_API3.0 [ 36%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameO...

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

2135. laya.device.media.Video_API3.0 [ 36%]

...iewport visible volume width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater canPlayType clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOn...

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

2136. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...rg.selectHandler = new Laya.Handler(this, this.onSelectChange); this.owner.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如图所示: (图3-1) Copyright ©Layabox 2025 all right reserved,powered by ...

来源: Laya3.0_文档 发布时间: 20251016

2137. laya.particle.Particle2D [ 36%]

...ng:ParticleSetting) 创建一个新的 Particle2D 类实例。 Particle2D addChild(node:Node):Node 添加子节点。 Node addChildAt(node:Node, index:int):Node 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node  advanceTime(passedTime:Number =...

来源: laya_api 发布时间: 20170929

2138. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 36%]

...void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); } } } ``` ​ `WorkerLoader.workerPath = "libs/worker.js";`设置worker.js的路径,这个worker.js是Laya官方提供的,我们把他拷贝复制到我们自己设置的路径,这个js在Laya的引...

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

2139. laya.display.FrameAnimation_API3.0 [ 36%]

...m url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameO...

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

2140. 项目启动入口说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...ckUI"); //获取运行预览的播放按钮 if (!btn) { btn = playControls.addChild(gui.UIPackage.createWidgetSync("~/ui/basic/Button/FlatIconButton.widget")); btn.name = "packUI"; btn.setSize(16, 16); btn.icon = "~/ui/icons/global.svg"; //这里可以换显示图标 btn.onClick(() => { //false ...

来源: Laya3.0_文档 发布时间: 20251216