x

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"

Bug whith arrays (class)

Hello, i found a bug whith Arrays. alt text

First, I pull out of the 'ReturnValue' (GetClass) in "FindItem" and connected 'Array' type 'Pawn' -> 'Class'.

alt text

Compiles and everything works. But if you restart UE4 you get this error. Because I try to look for 'Actor -> Class' in the array type 'Pawn -> Class'.

How to fix - it is clear. alt text

But, you can correct that worked with the original view? This will reduce the body in bluprinte.

PS If i'll pull out of the 'agressiveFlairFriendList' (var type: Pawn -> Class) in "FindItem" and connected 'ReturnValue' (GetClass) it does not give me to connect it into the required.

Sorry if repeated.

Product Version: UE 4.13
Tags:
more ▼

asked Dec 06 '16 at 10:19 AM in Bug Reports

avatar image

roman94v
94 1 4 6

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

2 answers: sort voted first

Hello roman94v,

After doing a bit of digging I was able to find that this appears to be a known issue. I have provided a link to the public tracker. Please feel free to use the link provided for future updates.

Link: https://issues.unrealengine.com/issue/UE-35332

Make it a great day

more ▼

answered Dec 06 '16 at 03:58 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

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

I suggest you use Array.Contains. this way you can get rid of "find" and "is valid index" check this link for more info https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Arrays/ArrayNodes/

regarding the get_class function : I do not see why is it an issue. according to this link https://docs.unrealengine.com/latest/INT/API/Runtime/CoreUObject/UObject/UObjectBase/GetClass/index.html

get class returns a pointer to UCLASS so it's a uobject function and it should work for all uobject derived classes. I think the problem is how you define your array . set it to be of type Uclass reference, or Uobject.

more ▼

answered Dec 06 '16 at 12:17 PM

avatar image

plangton
367 17 20 31

(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