大约有 346 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0052 秒)
... // 文本显示当前时间 onAwake(): void { this.lightComp = this.owner.getComponent(Laya.DirectionLight2D); // 初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSize = 24; this.displayText.bold = tr...
来源: Laya3.0_文档 发布时间: 20251010
...在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
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getLine(index:int, out:PixelLineData):void 获取线段数...
来源: Laya2.0_api 发布时间: 20190513
...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
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node getHeight(x:Number, z:Number):Number 获取地形高度。 M...
来源: Laya2.0_api 发布时间: 20190513
...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
...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
...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
...ake(): void { // 获取 FreeformLight2D 组件 this.lightComp = this.owner.getComponent(Laya.FreeformLight2D); //灯光的顶点通常建议是在IDE中可视化配置,这里是为了演示如何通过代码动态设置顶点数据,方便动态调整灯光形状的需求。 /**设置自由光的...
来源: Laya3.0_文档 发布时间: 20251010
...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