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"

Can't Set Variables inside Array?

Hello All,

I am using a Struct Array, with another Array of Vector 3s inside.So basically a 3D Array of V3s.

An issue I am having is that I cannot seem to be able to set any Vector 3s within the Struct Array.

I can't add, set length or anything.

alt text

Is this a bug? Are there any work arounds? Thanks!

Product Version: UE 4.19
Tags:
structarray.png (91.0 kB)
more ▼

asked May 05 '18 at 10:13 AM in Blueprint Scripting

avatar image

Raxs_Slayer
168 8 16 19

avatar image Kit Kat134 May 05 '18 at 11:03 AM

Can you set the array itself? Can you be more specific as to what you are trying to do please?

avatar image Raxs_Slayer May 05 '18 at 11:05 AM

Sorry, I am trying to Add new Vector 3s into the Vector Arrays within the Struct array.

avatar image Kit Kat134 May 05 '18 at 12:28 PM

What type of variable is "ChainLink"?

I've never done this before but i'll try to figure it out

I'm attempting to recreate it now

avatar image Raxs_Slayer May 05 '18 at 01:15 PM

It's literally just a "Structure". I Created a Structure, Then created a V3 Array inside it.

avatar image Kit Kat134 May 05 '18 at 01:32 PM

Sorry I can't recreate what you did so cant solve it :( Apologies

avatar image Raxs_Slayer May 05 '18 at 01:32 PM

No worries. Thanks for giving it a go (:

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

2 answers: sort voted first

You need to use Set Members in Struct node. Check here for details:

https://answers.unrealengine.com/questions/783132/updating-array-of-struct.html

more ▼

answered May 05 '18 at 01:50 PM

avatar image

Everynone
15.2k 77 25 62

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

cant u break and make array? try using the make Array node if that works.

more ▼

answered May 05 '18 at 02:12 PM

avatar image

SupDeity
468 4 6 15

avatar image SupDeity May 05 '18 at 02:13 PM

if ur trying to do it to that chain link one u should be able to

(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