Hi i have small question because i try get pixel color under my mouse and everything was good but when i open my game i got many errors with locking and unlocking image i trying fix it but i failed it. Someone could tell my how can i fix it ?
I using c# :)
under i give image with my errors and code
You don't need to load an image. You get an image via GetViewport()...
var image = GetViewport().GetTexture().GetData();
GD.Print(image.GetPixel(.....and so on.....));