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"

Array containing multiple values?

Hello,

I am working on a project that uses height values quite a bit. I am currently storing height the values for a grid in multiple arrays. (One array is for level one and contains integers which are the numbers of the cubes in the grid that are level 1, one is for level 2, etc.)

I was wondering if there were a better way to do this, as I currently have to have a different array for every single level, and if there are a lot it will be quite difficult to manage.

One idea I had was to use an array with multiple values. (eg. cube 1, level 1. cube 2, level 2, etc.) Is it possible in UE4?

Thanks in advance!

Product Version: UE 4.21
Tags:
more ▼

asked Jan 31 '19 at 10:02 AM in Blueprint Scripting

avatar image

cheesyball232
50 3 1 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

if the value is the same for each level, you can use persistent object and pass them between levels. if it is not the same. create a struct with variable names after each level that hold the height value for that level and make an array from it and still use it in your persistent object to pass it between levels

more ▼

answered Jan 31 '19 at 11:16 AM

avatar image

plangton
347 17 20 31

avatar image cheesyball232 Jan 31 '19 at 02:14 PM

Thanks a bunch!

(comments are locked)
10|2000 characters needed characters left
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