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"

Changing A Material Parameter at Runtime from Level Blueprint

Okay so either this is a bug or something you can't do but I'm trying to change a dynamic material from the level blueprint.

First I created a material with a vector parameter alt text

Then I set up a dynamic material from the previously assigned material and set the color parameter using a variable inside the actor blueprint alt text

Then from the level blueprint I try to change the color variable in the actor alt text

Yet the color of the cube stays the color of the original NewColor variable alt text

The reason Im trying to change the color in this way is to set multiple parameters of multiple materials and eventually allow the player to choose a color, resolution, etc. If anyone has a different way of doing this that works it'd be very helpful.

Product Version: UE 4.19
material.png (57.0 kB)
actorblueprint.png (116.3 kB)
levelblueprint.png (41.3 kB)
scene.png (115.9 kB)
more ▼

asked Dec 14 '18 at 10:07 PM in Bug Reports

avatar image

1 1 2

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

1 answer: sort voted first

Welp I solved it. For anyone else who runs into this issue I moved all nodes from construction script to the event graph to add a delay essentially setting all parameters from the object spawns into the world.

more ▼

answered Dec 18 '18 at 12:53 AM

avatar image

1 1 2

(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