Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Wrong Parameter Type in BP Tooltip

I have the following small sample BP:

alt text

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?

Product Version: UE 4.8
more ▼

asked Jul 30 '15 at 11:33 PM in Using UE4

avatar image

236 21 36 45

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first


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 https://answers.unrealengine.com/questions/180534/two-dimensional-array.html

more ▼

answered Jul 31 '15 at 04:17 AM

avatar image

576 54 46 72

avatar image haimat Jul 31 '15 at 02:54 PM

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

avatar image happyhorror Jul 31 '15 at 03:08 PM

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 :)

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

avatar image haimat Jul 31 '15 at 09:34 PM

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?

avatar image happyhorror Aug 01 '15 at 01:15 AM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question