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"

Only one can change color?

Hi everyone!

I have a little problem here. In the game I am creating at the moment I want the player to click on different cube, it's a grid in fact.

The blocks are Grey When he click on one it turns to Yellow When he right click on one it turns to Brown

The problem is: I want only one Yellow and one Brown but the player may change is mind.

I thought of get all actors that make the grid and change all there material to grey, but it would remove the brown one if he wants to change the Yellow one.

Any one have Ideas of where I can start? Which nodes might be useful?

Thank you very much!

Product Version: UE 4.9
Tags:
more ▼

asked Mar 02 '16 at 11:58 PM in Blueprint Scripting

avatar image

mrblimack
26 5 5 10

avatar image mrblimack Mar 03 '16 at 03:19 PM

Like, Is there a way to select all mesh that have the "MBasic_floor" material?

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

1 answer: sort voted first

Got it was pretty easy finally, just had to set a last click variable and remove it for each color

(remove material from last click yellow) (Set material for current click yellow) (Set Last Click yellow)

more ▼

answered Mar 03 '16 at 04:25 PM

avatar image

mrblimack
26 5 5 10

(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