카테고리 : 유니티 Neo Land | 2018. 8. 13. 05:51
void ResizeSpriteToScreen(GameObject theSprite, tk2dCamera theCamera, int fitToScreenWidth, int fitToScreenHeight) { MeshRenderer sr = theSprite.GetComponent(); theSprite.transform.localScale = new Vector3(1, 1, 1); float width = sr.bounds.size.x; float height = sr.bounds.size.y; float worldScreenHeight = (float)(theCamera.CameraSettings.orthographicSize * 2.0); float worldScreenWidth = (float)(..