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"

Visibillity of a variable after switch

I am currently working on a simple bleurprint system that lets me create traffic signs from a set of choices (arrays with pre made textures, models, etc)

But since there are alot of signs I divided the signs in categories to keep stuff clean and organised. In one part of my blueprint I set the material intance, and for that i currently have 2 categories (w1-curves and turns, w2-intersections) but there will be a lot more categories. So for clearity I dont want to have them all visible in the bleuprint at start, or one massive array with all of signs in it.

So I put in a switch that controls witch array is active. alt text But I want only the array that is active to be vissible as i stated above. I know I can control the exposure in the variable tab, but is there a way to control that from within the construction script?

alt text

alt text

Or is there another solution to get what I try to achieve? Like sub categories in an array, or something? Im kinda stuck with this atm. I could ofcourse build separate BPs for each categorie, But I rather have it in one neat BP.

Hopefully someone can help me out, Thnx in advance :)

Product Version: UE 4.21
Tags:
capture-1.png (227.1 kB)
capture-3.png (23.7 kB)
capture-2.png (7.3 kB)
more ▼

asked Dec 13 '18 at 11:09 AM in Blueprint Scripting

avatar image

Echelle09
6 1 1

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

1 answer: sort voted first

There's no way to control variable visibility ('Editable' switch) from blueprint logic, but it would be an useful feature.

One of the things that you can do is to use DataTables for that. It also should be easier to edit & maintain the data this way. For example:

Create a SignData structure:

Help1

Create a DataTable from this structure for every Sign Type you have. Let's say the first one will be named "W1_Signs", here is how it looks like with some test data:

Help2

Then, in your blueprint create a variable of type "Data Table Row Handle":

Help3

Now, you can easily select your sign type and immediately pick one of the signs like that:

Help4

This way every time you select a Data Table with specified sign types, the Row Name will match it, so there will be no unused arrays/enums in the variable tab.

ahl2.png (29.8 kB)
ahl3.png (27.8 kB)
ahl4.png (11.3 kB)
ahl1.png (13.6 kB)
more ▼

answered Dec 13 '18 at 01:32 PM

avatar image

Slavq
1.9k 150 143 200

avatar image Echelle09 Dec 13 '18 at 02:24 PM

Thnx for the anwser, this looks like a great option indeed. Will look into it, thanks again you rock :)

(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