- Home /
Question by
Bincredible · Apr 06, 2013 at 12:46 PM ·
colormousepositionpixel
Get the color of a pixel at mouse position?
Hello, I was wondering if there was a way to get the color of a pixel at the position of your mouse as long as your mouse is on a certain area where the color sheet is. I don't really have any idea how to do it so if someone could help me I would be very appreciative. :) Thanks in advance for any help!
Comment
Best Answer
Answer by LightSource · Apr 06, 2013 at 03:55 PM
Use RaycastHit.textureCoord. Note that it only works with mesh colliders.
Your answer
Follow this Question
Related Questions
Get Average Colour From Texture? 1 Answer
How to get pixel color using raycast on object with Lightmap created by "Beast"? 1 Answer
Material doesn't have a color property '_Color' 4 Answers
Changing two different objects renderer colour 1 Answer
how can i change the color of a pixel in my sprite 0 Answers