Hello dear experts.
I do Pribluda in your custom inspector which would display the data(information) on the object which is currently the mouse pointer in the editor window of the scene. The objects are all 2D sprites.
I scraped together the following code but it doesn't work for me:
Ray ray = Camera.main.ScreenPointToRay (Event.current.mousePosition );
// Shoot this ray. check in a distance of 10000.
if (Physics.Raycast(ray, out hit, 10000))
Debug.Log ("Raycast hit name:" + hit.collider.gameObject.name);
Tell me where I have mistake?
or I started to dig in the wrong direction?