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!
2 Answers
2Use RaycastHit.textureCoord. Note that it only works with mesh colliders.
getpixelcolor();