- Home /
Object colour at a location
Hi All
Is it possible to change the colour of an area of a game object? So if I give x,y,z coordinates on a gameobject I want to change the colour of the area, size of area could be like 0.03 world space big Thanks
Answer by surajsirohi1008 · Oct 21, 2017 at 03:31 PM
What is your gameobject? Is it a primitive like cube?
Answer by gomensa · Oct 21, 2017 at 04:57 PM
Yes it is. It's a sphere. I have a 360 shader on the sphere so I can put a camera in the center. I have reversed normals on the sphere mesh collider so I can detect when a Raycast hits the sphere wall. When the Raycast hits the wall I want to highlight that piece of the wall it hit.
This should be a comment, probably a reply to what @surajsirohi1008 said.
Yeah. A way round it for now is to create new game objects of a different color. But my days sample consisted of like 7000 points, which means 7000 objects to be created. Was wondering if there is an easier way.
Your answer
![](https://koobas.hobune.stream/wayback/20220612141527im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Why aren't my parameters for animation not working? 0 Answers
What would be the best way to do something based on the animation state of the character? 0 Answers
How to get back to the first position animatedly in unity? 1 Answer
2d game for my first unity project. 1 Answer
Good Game by One Person, Is it Possible? 2 Answers