Hello again,
I don't know why my test script worked before. After the real implementation it doesn't work anymore. Everything looks good, the UIPanel on root has exactly the size of the screen. Would be perfect for the mouse position. I don't know how to get a scale factor to fix the 10-20% difference between mousePosition and position of the UITexture.
If I change the height of the screen (of the visible running scene/game screen), then this difference will be higher/lower and can be also exact, if I change it to the one correct height. Somehow the height/width ratio changes the exactness of the screen position for my UITexture... I don't know how to get this factor, the UIRoot and UIPanel don't know this factor. Even if I change it in the editor mode, I see that the coordinates cannot be correct.
I would like to do not change the z value of UITexture position, because that would scale the texture.
Any suggestion, maybe a new NGUI root with 2D settings? OnGUI worked fine, but I would like to remove all the OnGUI methods.