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

大约有 432 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)

271. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 37%]

... 100)) as Camera; camera.transform.translate(new Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。...

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

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

...Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 1, 0)); camera.addComponent(CameraMoveScript); })); } ``` 我们点击加载场景,再来看状态。 ![](img/2.png)(图2) 在场景显示出来后,我们可以看到在 **Stat** 面板中 **GPUMemory** 有一个比较明显的涨幅。...

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

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

...this._scene.getChildByName("Main Camera") as Laya.Camera; camera.addComponent(CameraMoveScript); var tiger:Laya.Sprite3D = this._scene.getChildByName("tiger_idle") as Laya.Sprite3D; console.log(tiger); var animator:Laya.Animator = tiger.getComponentByIndex(0) as Laya.Animator; an...

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

274. 加载.lh文件 运行后黑屏 无法显示 [ 36%]

...es("Export/LayaScene_JJF/Conventional/JJF.lh");         layaMonkey.addComponent(MonkeyScript);         camera.transform.lookAt(layaMonkey.transform.position, new Laya.Vector3(0, 1, 0));                 //设置文本显示框位置                 this...

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

275. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 36%]

...      //猴子精灵添加组件(脚本)         monkey.addComponent(MonkeyScript);         scene.addChild(monkey);         //设置相机的观察目标为小猴子         camera.transform.lookAt(monkey.transform.position, new Laya.Vector3(0, 1, 0));   ...

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

276. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...): void { //在节点上添加2D拖尾渲染器 this._trail2D = this.owner.addComponent(Laya.Trail2DRender); //设置淡出时间 this._trail2D.time = 1; //设置最小距离 this._trail2D.minVertexDistance = 0.1; //设置宽度倍数 this._trail2D.widthMultiplier = 50; //设置宽度曲线 this.set...

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

277. laya.d3.core.light.DirectionLight [ 35%]

...引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函...

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

278. laya.html.dom.HTMLIframeElement_API3.0 [ 35%]

... zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByNa...

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

279. laya.html.dom.HTMLDivElement_API3.0 [ 35%]

... zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce fromParentPoint getBounds getChildAt getChildByNa...

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

280. laya.d3.core.light.PointLight [ 35%]

...引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函...

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