I already know how to pick a color from where the mouse points at (getpixel) but is it possible somehoe to make the white of my mouse pointer (I have made a custom one) turn into the color the mouse points at?
Hopefully someone has some ideas. If someone posts code, please try to post it in c# if possible - but if it is only possible in java, thats also okay I guess :o
I have a texture which consists of many different colored pixels, so I built a colorpicker via GetPixel and I thought it would be cool if the mouse shows the color of the pixel it is pointing at by changing its color to the same the pixel has.
Here’s the code for my custom mouse pointer - I only made the windows mouse disappear and inserted my own pointer as a texutre:
As suggested by olop01 take one guiTexture same like mouse pointer and hide default one. You can also change whatever color you want of a you custom cursor.
Dear Posters, thank you for your posts! Sadly none of these were related to the problem or included a hint for a soultion. I would be happy if we can find a solution for this.
@ unityCoder: Please re-read the main post to understand the problem right. And I AM olop
@ Alex: Yes it works, but it doesn’t change the color to the color of the pixel