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"

How can I switch between meshes in construction script ?

This is my setup:

alt text

What I'm trying to achieve is to be able to choose different set of meshes using a drop down list. At the moment if I change the blueprint to Door_001 nothing is happening. Can someone help please ?

Product Version: UE 4.10
Tags:
ue4.jpg (155.6 kB)
more ▼

asked Jan 08 '16 at 09:39 PM in Blueprint Scripting

avatar image

marcomaryred
179 20 19 25

avatar image marcomaryred Jan 08 '16 at 10:36 PM

Playing around, this works:

alt text

But I can switch just one mesh when I need to switch between sets of different amounts of meshes

ue4.jpg (177.2 kB)
avatar image FilipeTessaro Jan 08 '16 at 11:26 PM

Did you try the "Switch on int"?

Then you Set a integer variable to each mesh

avatar image Shadowriver Jan 09 '16 at 01:18 AM

He is already using switch on enum

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

1 answer: sort voted first

Use "Select" Node, it a pure node which let you translate one type to another without copying same code over and over again

more ▼

answered Jan 09 '16 at 01:17 AM

avatar image

Shadowriver
37.2k 936 172 1116

avatar image marcomaryred Jan 09 '16 at 02:17 PM

I don't really understand what I should do, could you post an example please ?

avatar image marcomaryred Jan 09 '16 at 04:28 PM

I found the select node but I'm not sure what to do with it, to explain better what I'm trying to achieve, is the following:

alt text

I have 3 separate blueprints (the wall and the three doors). I want to have just one and be able to change it into the others via a drop down list like in the picture. Not at runtime, before building lights and all that. In this example I have only 3 version so it's fine anyway but I have dozens of options and sometimes finding the right asset can take a while. If this was doable it would save me a lot of time building my levels. Thank you for your time !

ue4.jpg (476.8 kB)
(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