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

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

191. laya.d3.core.MeshTerrainSprite3D [ 48%]

...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node  getHeight(x:Number, z:Number):Number 获取地形高度。 M...

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

192. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 47%]

...loadedClips: string[] = []; onEnable(): void { this._animator = this.owner.getComponent<Laya.Animator2D>(Laya.Animator2D); // 1. 创建 Laya.Animation 并挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; /...

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

193. 2D自由形态光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...ake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便动态调整灯光形状的需求。 /**设置自由光的...

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

194. laya.d3.core.light.AreaLightCom_API3.0 [ 47%]

...在update之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 Returns void Optional onPostRender onPostRender(): void Inherited from Component.onPostRender Defined in laya/components/Component.ts:307 渲染之后执行 Returns void Optional onPreRender onPreRender(): ...

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

195. laya.ui.Button_API3.0 [ 47%]

...shLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_bottom get_dataSource get_height get_scaleX get_scaleY get_top get_transform get_visible get_width globalToLocal h...

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

196. laya.ui.CheckBox_API3.0 [ 47%]

...shLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_bottom get_dataSource get_height get_scaleX get_scaleY get_top get_transform get_visible get_width globalToLocal h...

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

197. laya.ui.Radio_API3.0 [ 47%]

...shLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_bottom get_dataSource get_height get_scaleX get_scaleY get_top get_transform get_visible get_width globalToLocal h...

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

198. [LayaAir3]Laya 2.x/3.x 演示项目中 Laya.timer.scale 和 Laya.SpineSkeleton.playbackRate 对部分骨骼加速不生效 [ 47%]

...aySpine(): void { //找到spine动画组件 this.spineAni = this.spineNode.getComponent(Laya.Spine2DRenderNode); //获得spine动画的数量,这里要重点提醒的是,由于spine组件只有Play会由引擎去加载完成后才去播放,调用其它的API,务必要保障spine动画资源...

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

199. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 47%]

...oTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问题,包括微信浏览器,出问题的是在2D场景中在微信浏览器不能播放视频   // 附件三张图片...

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

200. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 46%]

...的breakForce ```typescript onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.conn...

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