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 all my spawed child actor have different colour substance inputs?

Dear all

Im slightly stuck , I am spawning 10 child actor from class then that child Im defining the colour of that children using data pulled from a data table then using that colour to do an input float substance node (see all attached images). Everything is work smoothly as everything time i play all the spawn children is the colour from the data table and my substance parameter because the rest of the material is correct and changing colour to only area i want to change but the problem is all of the spawned children are the same colour.

How can I script the functionality so that all spawned child actors have different colours from the data graph?

alt text alt text alt text alt text alt text

Product Version: UE 4.20
Tags:
more ▼

asked Aug 01 '18 at 02:20 PM in Blueprint Scripting

avatar image

Artboom91
1 3 5 6

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

1 answer: sort voted first

I cant see from the screenshots but I imagine your Dynamic Material instance is only one variable in one actor like your level blueprint or something. You need one Dynamic Material Instance for each well, instance, that you want to make a variation on the parameters thereof during runtime.

So the most intuitive thing to do is make that dynamc material instance be a variable on the blueprint class of the actor that has the mesh youre applying it to. that way each actor has their own dynamic material instance variable and its parameters can be altered independently of the others instead of all of them drawing from the same dynamic material instance and therefore all of them changing in the same way.

more ▼

answered Aug 01 '18 at 02:28 PM

avatar image

mightyenigma
3.7k 18 23 20

(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