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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Creating Material with random color?

Is it possible to spawn an actor with a random color out of all the possible color combinations? I can spawn something from a list of set colors by using multiple materials that are different colors, but I'd like to have 1 material that is randomly assigned a color when the actor is created. Any help is appreciated. Love you all.

Product Version: Not Selected
Tags:
more ▼

asked Apr 26 '14 at 08:13 AM in Blueprint Scripting

avatar image

darkgcn14
1 1 2 3

avatar image Shadowriver Apr 26 '14 at 10:34 AM

I think best will be to randomize color in blueprint and send it to material via parameter

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

2 answers: sort voted first
more ▼

answered Apr 26 '14 at 02:00 PM

avatar image

Jacky
16.8k 671 167 676

avatar image darkgcn14 Apr 26 '14 at 08:12 PM

Thanks, this solved the issue.

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

You can break the color into it's base RGB numbers right? Try using a Random Int generator to provide inputs for each of those colors.

more ▼

answered Apr 26 '14 at 09:38 AM

avatar image

Zeustiak
1.8k 131 68 110

(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