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"

Material Param. Collection vector not changing on static mesh

Hello,

I didn't know how to properly word the question title, but hopefully this makes the question more clear.

I have created a Material Parameter Collection with a vector. On a new Material, I'm using said vector from the Collection as the Base Color and have it applied to a mesh in the level. When you enter the game, I have set it so that on BeginPlay, I get a color at random from an Array and update the Material Parameter Collection, which in turn would change the color of the mesh. For testing purposes, I also have a text printed with the same color. The printed text works (ie. the color changes randomly), but the mesh color doesn't change.

Do I need to set each mesh material to Dynamic to be able to alter this? I want to have multiple meshes with this material and having to do blueprints for all those meshes so I can change the color is something I would like to prevent.

Here's an image of the blueprint changing the colors just in case:

alt text

Thank you very much, Mik2121

Product Version: UE 4.15
Tags:
issue.png (225.8 kB)
more ▼

asked Apr 17 '17 at 02:20 PM in Blueprint Scripting

avatar image

Mik2121
23 5 8 10

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

1 answer: sort voted first

Hey Mik2121, I can't see anything wrong with the blueprint. I tested it myself with something similar and it worked; so I'll post my steps and maybe it'll help.

alt text alt text alt text alt text

Hope this helps, Tom.

01.png (63.3 kB)
02.png (14.9 kB)
03.png (93.4 kB)
04.png (103.8 kB)
more ▼

answered Apr 17 '17 at 04:15 PM

avatar image

Illarvan
357 8 11 24

(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