My goal is taking a picture (using the PhotoCapture class) of game objects and getting the world coordinates of the game objects and translate it to pixel coordinates on the image output from the PhotoCapture class.
I tried using “camera.WorldToScreenPoint()” but this function gives coordinates that are not accurate.
I also tried using “ScreenCapture.CaptureScreenshot(filePath)” in order to use “camera.WorldToScreenPoint()” but I get error on “ScreenCapture.CaptureScreenshot()” function.
I am a newbie. Any help would really help a lot!
Thanks!