大约有 324 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...
来源: Laya2.0_api 发布时间: 20190513
...在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
...rameOnce fromParentPoint getBounds getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getMousePoint getRepaint getSelfBounds get_height get_scaleX get_scaleY get_transform get_visible get_width globalToLocal hasHideFlag hasListener hitTestPoint isAncestorOf loadImage...
来源: Laya3.0_api 发布时间: 20231102
...在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 发布时间: 20231102
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...
来源: Laya2.0_api 发布时间: 20190513
...是继承Laya.Dialog的,无法像Laya.scene那样加控制脚本,this.getComponent(xx),取不到控制类,何解?
来源: Laya_社区 发布时间: 20181211
...or3(-90, 0, 0);//让它还原unity上的rotation let phyCol = colliderItem.getComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; let oldShape = phyCol.colliderShape as Laya.BoxColliderShape; phyCol.colliderShape = oldShape;//不执行这一步这个collider还是歪的,必须重新赋值一下...
来源: Laya_社区 发布时间: 20190320
...:Node):int 根据子节点对象,获取子节点的索引位置。 Node getComponent(clas:*):* 获得组件实例,如果没有则返回为null Node getComponents(clas:*):Array 获得组件实例,如果没有则返回为null Node hasListener(type:String):Boolean 检查 EventDispatcher 对象...
来源: Laya2.0_api 发布时间: 20190513
...变得紊乱,碰撞盒也跟Sprite分离了 var rig:Laya.RigidBody = xx.getComponent(Laya.RigidBody); var body:any = rig.getBody(); 原本是希望找到在2D场景中整体移动刚体的方法的,但是只要调用这个方法即会出错,期望能帮忙指点,感激不尽~ 2018-11-22 添...
来源: Laya_社区 发布时间: 20181122
...mponentIntance(boxColl); kura • 2018-12-10 16:57 var reg:Laya.RigidBody=.getComponent(Laya.RigidBody)as Laya.RigidBody; if(reg.isSingleton){ reg.destroy(); } 你试下这样,用isSingleton判断下先,如果解决了麻烦回复哦 kura • 2018-12-10 17:00 看了下你的报错 ,好像不...
来源: Laya_社区 发布时间: 20181210