Thanks for this tutorial dude!! I'm using it as part of my university weekly project. Really saved my skin! Yours was the best that I found after 4hrs of trial an error of other tutorials that don't provide the same results. :D
how to change the color of the cylinder but by clicking on the sphere? how do you do that. Adding just cylinder in Render colum doesn't work. Thanks for help
sir can you make a tutorial that the player just pass through if the obstacle have same color with the player and the game will over if the player hit different from it color. ? please sir
hello, i have a problem :/ rend.sharedMaterials = materials[index-1]; cannot implicity convert type ''UnityEngine.Material' to 'UnityEngine.Material[]' Thanks you
+Christopher Dicdican I wish I had more time to help you I'm busy right now between work and school to do anything. I think all you would have to do is switch which object is being changed when you click on it. I know probably doesn't help much without the code to go along with the explanation but I know you can figure it out.
+EmeraldMadness you may have to create a new method that allows that. If I have time I'll try and help you out. Got to study for a chemistry exam! Take it easy.
what if i want to change game object color with button? my idea is like when you want to buy something, and you can pick any color that available. Thanks before :)
This is wonderful!!! Thank you so much. You are doing a great job. Now what if I have 5 spheres ( any game objects) which are named for example A,B,C,D and E. I need an input option somewhere such that if I input the name; say C, the corresponding sphere gets highlighted (changes color). Kindly help me with this.. Thank you...:)
NOT WHAT I WANT i wanted to change the actual color of an object
same
same
How do if I touch screen the gameobject change color?
it works thanks man.. but i have aquestion, i have to rend more than 1 object with the same button.. how???
please help me
Change bother objects when button is pressed? You would put your code in the listener for both objects. Does that make sense to you?
Thanks for this tutorial dude!! I'm using it as part of my university weekly project. Really saved my skin! Yours was the best that I found after 4hrs of trial an error of other tutorials that don't provide the same results. :D
Does this script for the children of a particular prefab?
what if you had 2 materials
What the hell? this is terrible!! and kid what´s up with the Clint Eastwood mimic?..
how to change the color of the cylinder but by clicking on the sphere? how do you do that. Adding just cylinder in Render colum doesn't work. Thanks for help
i want to show a panel of colors when the game object selected ???!
Thank u
sir can you make a tutorial that the player just pass through if the obstacle have same color with the player and the game will over if the player hit different from it color.
? please sir
hello, i have a problem :/
rend.sharedMaterials = materials[index-1];
cannot implicity convert type ''UnityEngine.Material' to 'UnityEngine.Material[]'
Thanks you
is material, no materials
Thank you so much!!
How do i add my oculus touch controller? Thank you
Why even siple color chance have to so hardly
what if you want to change the color of the cylinder but instead clicking on the sphere? how do you do that. (for project purposes. :D)
+Christopher Dicdican I wish I had more time to help you I'm busy right now between work and school to do anything. I think all you would have to do is switch which object is being changed when you click on it. I know probably doesn't help much without the code to go along with the explanation but I know you can figure it out.
Bester Mann
thank you sooooo much it is really helpful for me
Thanks mate! This was a lot of help.
love it. keep up the good work
how i can change to colour according to time?
in connection
with what?
but what if you want to hit a key on your keyboard to change the color?
+EmeraldMadness you may have to create a new method that allows that. If I have time I'll try and help you out. Got to study for a chemistry exam! Take it easy.
instead of MouseButtonDown use GetKeyDown google GetKeyDown to learn it better cause i cant explain it here
un rap de league of legends porfavor :D
hahaha I don't rap but maybe I can try.
I need your script
the one I got from the link dose not work
Ok thank you for your comment, I will make a link to the script today. I'll send you a private message when it's done.
zakalberda.wordpress.com/2017/03/03/change-color-of-a-game-object-when-clicking-on-it-source-code/
thank you
.
hope the best for you
what if i want to change game object color with button? my idea is like when you want to buy something, and you can pick any color that available. Thanks before :)
ruclips.net/video/y2JwMb4WZeQ/видео.html Here ya go buddy
how to do this using a ui button??
+Leo Jocker I'll look into it.
ruclips.net/video/y2JwMb4WZeQ/видео.html Here ya go buddy
thanks :)
you bet!
This is wonderful!!! Thank you so much. You are doing a great job. Now what if I have 5 spheres ( any game objects) which are named for example A,B,C,D and E. I need an input option somewhere such that if I input the name; say C, the corresponding sphere gets highlighted (changes color). Kindly help me with this.. Thank you...:)