MousePositon

There is any way to make “mousePosition” function to start to counting from a custom location? Instead of buttom of my scree? Yes I can make a big code to make it work but I hope there is another, more simply and more fast solution.

By the way, why I have only one available topic for my questions when I use my phone? The topic is Strange IoC

If I understand you correctly, you want to set a custom origin for the Input.mousePosition returned value ?

Supposing you want the middle of your screen to be the new origin, simply do the following :

public Vector3 GetMyMousePosition()
{
    return Input.mousePosition - new Vector3( Screen.width / 2, Screen.height / 2 ) ;
}

private void Update()
{
    Debug.Log( GetMyMousePosition() ) ;
}