翻译人:灵月散人
参考的引擎版本:4.18.3
翻译内容仅作临时参考,目的是为了降低无基础者初期的学习门槛。
所以当书写、交流、等实际使用时切记: 须以英文为准
官网地址 | Get Components by Class |
---|---|
翻译 | 通过类获得组件 |
注解
Gets all the components that inherit from the given class.
获取所有继承自给定类的组件
Currently returns an array of UActorComponent which must be cast to the correct type.
通常返回值“Actor组件数组” 一定会转换成正确的数据类型
Target is Actor
目标是Actor
目录树:
1.输入
参数名 数据类型 Target Actor Object Reference 目标 引用‘Actor’类型的实例对象 Component Class Actor Component Class Reference 组件类 引用‘Actor组件’类型的类
2.输出
参数名 数据类型 注解 Return Value Array of Actor Component Object References 返回值 数组为‘Actor组件’类型的实例对象引用
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_0"
bIsPureFunc=True
bIsConstFunc=True
FunctionReference=(MemberName="GetComponentsByClass",bSelfContext=True)
NodePosX=784
NodePosY=400
NodeGuid=71B506D34D534BB0F55FF5B9B9993206
CustomProperties Pin (PinId=1DD415194D9618191134F89D833BCCA7,PinName="self",PinFriendlyName=NSLOCTEXT("K2Node", "Target", "Target"),PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=Class'"/Script/Engine.Actor"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=57BD07C048A36DABAF65478B066DF23F,PinName="ComponentClass",PinType.PinCategory="class",PinType.PinSubCategory="",PinType.PinSubCategoryObject=Class'"/Script/Engine.ActorComponent"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=None,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,DefaultValue="ActorComponent",AutogeneratedDefaultValue="ActorComponent",PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
CustomProperties Pin (PinId=3E1B5D53407A592200C3B494597D312B,PinName="ReturnValue",Direction="EGPD_Output",PinType.PinCategory="object",PinType.PinSubCategory="",PinType.PinSubCategoryObject=Class'"/Script/Engine.ActorComponent"',PinType.PinSubCategoryMemberReference=(),PinType.PinValueType=(),PinType.ContainerType=Array,PinType.bIsArray=False,PinType.bIsReference=False,PinType.bIsConst=False,PinType.bIsWeakPointer=False,PersistentGuid=00000000000000000000000000000000,bHidden=False,bNotConnectable=False,bDefaultValueIsReadOnly=False,bDefaultValueIsIgnored=False,bAdvancedView=False,bOrphanedPin=False,)
End Object