Wrong Parameter Type in BP Tooltip

I have the following small sample BP:

I retrieve an array of all component of a certain class for the given actor, then receive the first element of that array. This GET node returns a reference to an object of the class I was asking for. However, as you can see in the screenshot, the tooltip in the BP editor tells me this GET node would return an Intenger, which is not the case.

Is this a bug or a feature?

Hi,

i don’t know if

Item
Integer

intended or not, but this Get will return you element of same type as array, in case on screenshot it will be actor value in get, because “get components by class” return array of actors

maybe it shows integer because of inner hidden freaky realisation of arrays, i got this idea because of many problems and restrictions to use of arrays in blueprints, for example making 2D array straight impossible in BP, while it allowed in C++, if you interested in workaround for 2D arrays in BP look here Two dimensional array - Programming & Scripting - Epic Developer Community Forums

Thanks for your answer. But the “get component by class” node returns an array of components, not actors.

yeah, you’re right, but main idea remain the same, get from such array will return one element of same type as array itself and not just integer :slight_smile:

p.s. don’t forget mark question as answered, so anyone else later can have same question and may find solution faster

Well, I would not forget it. But there is no answer yet to my question why the tooltip says Integer even though there is no Integer here. Or have I missed something?

probably because it setted wrong staticly in some files, so best place to report bugs and ask for improvments is https://forums.unrealengine.com/forumdisplay.php?24-Feedback-for-Epic