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

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

211. laya.d3.core.light.AreaLightCom_API3.0 [ 46%]

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

212. laya.d3.core.pixelLine.PixelLineSprite3D [ 46%]

...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node  getLine(index:int, out:PixelLineData):void 获取线段数...

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

213. laya.d3.core.MeshTerrainSprite3D [ 46%]

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

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

214. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 46%]

...t(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11 20:47 @叶子:不算。这样只是给了刚体一个索引而已 叶子 • 2019-01-11 20:54 @源:额,我说呢,都转不动。 叶子 • 2019-...

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

215. laya.ui.Button_API3.0 [ 45%]

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

216. laya.ui.CheckBox_API3.0 [ 45%]

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

217. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 45%]

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

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

218. laya.ui.Radio_API3.0 [ 45%]

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

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

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

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

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

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

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