Hellos, I am using 2dTk Camera (orthographic).
Now I have plane that I want to fill whole camera.
I tried it like this:
transform.localScale = new Vector3(k2dCamera.Instance.ScreenCamera.orthographicSize * 2.0f * Screen.width / Screen.height, k2dCamera.Instance.ScreenCamera.orthographicSize * 2.0f, 10f);
Also like this:
float worldScreenHeight = tk2dCamera.Instance.ScreenCamera.orthographicSize * 2;
float worldScreenWidth = worldScreenHeight / Screen.height * Screen.width;
Bounds bounds = plane.bounds; // Plane is here plane I want fill camera
transform.localScale = new Vector3(
worldScreenWidth / bounds.size.x,
worldScreenHeight / bounds.size.y, 1);
But scale seems to about 80 times too big? How do I get this to work with 2Dtk camera?