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 Parameter Collection is Not Changing With Blueprints

Hey Guys,

I've tried to set a Vector parameter that I can change in my level blueprint as a test of the function but it isn't changing it like I want it. I must be setting it up wrong but I have no idea where.

Here is my simple material which is applied to the objects I want to change:

alt text

http://i.imgur.com/MvYbgtA.png

Then I have the Material Parameter Collection itself: alt text http://i.imgur.com/UFL3NjG.png

And finally the Level blueprints themselves: alt text http://i.imgur.com/PoclOQM.png

The string prints but I see no change in the material I placed and I have no idea why haha

Thanks!

Product Version: UE 4.11
Tags:
more ▼

asked May 16 '16 at 04:34 PM in Blueprint Scripting

avatar image

CactusFantastico
80 10 21 24

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

1 answer: sort voted first

Your blueprint is fine, but the BaseColor output of the material expects RGB values between 0.0 and 1.0, not from 0 to 255, so you'll have to divide those values by 255.

more ▼

answered May 16 '16 at 07:44 PM

avatar image

Zhi Kang Shao
496 9 10 30

avatar image CactusFantastico May 17 '16 at 09:26 AM

Ah you are correct it works now! interesting, I wouldn't have thought it would do that haha I have also realised for what I'm doing which is just swapping between static colours, so changing material is prob a better bet for me as I don't need an animated colour.

Thanks a lot!

avatar image Zhi Kang Shao May 17 '16 at 09:43 AM

No problem!

avatar image Zhi Kang Shao May 17 '16 at 09:48 AM

By the way, for your purposes its even better to, instead of creating a material for each color, create one material with a vector parameter plugged into the color output and make material instances of that to set the vector parameter to the color you want to use. Just to be clear, I mean 'static' material instances, so by right clicking a material and creating a material instance asset.

This way, there is only one material to compile instead of multiple that essentially are the same.

avatar image CactusFantastico May 17 '16 at 09:51 AM

Yeah I'm already using material instances anyway at least. Your right though, I imagine vector parameter is more efficient haha

(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