Hello everyone. I have some issue about spritecamera class. Its doesnt work and camera doesnt show all scene. its show just part of scene. When I try to fix with drop camera oblect and resize with inspector GUI buttons stayed same place didnt get new place and I can't press it. this is class Code (CSharp): using UnityEngine; using System.Collections; public class SpriteCamera : MonoBehaviour { private int m_Layer = 0; private Transform m_Transform = null; private Camera m_Camera = null; private Rect m_Range = new Rect(-1.0f, -1.0f, 1.0f, 1.0f); public void Initialize(int layer) { // transform.position = Vector3.zero; transform.rotation = Quaternion.identity; transform.localScale = Vector3.one; // m_Layer = layer; // m_Transform = gameObject.transform; m_Camera = (Camera)gameObject.AddComponent(typeof(Camera)); // m_Transform.position = Vector3.zero; m_Transform.LookAt(Vector3.zero, Vector3.up); // m_Camera.clearFlags = CameraClearFlags.Nothing; m_Camera.backgroundColor = Color.black; m_Camera.nearClipPlane = -1.0f; m_Camera.farClipPlane = 1.0f; m_Camera.orthographic = true; m_Camera.aspect = 1.0f; m_Camera.orthographicSize = 1.0f; m_Camera.depth = 0; m_Camera.cullingMask = (1 << m_Layer); } public void SetClear(bool clear) { if (clear) { m_Camera.clearFlags = CameraClearFlags.SolidColor; } else { m_Camera.clearFlags = CameraClearFlags.Nothing; } } public void SetDepth(float depth) { m_Camera.depth = depth; } public void SetViewport(Rect range) { #if UNITY_IPHONE m_Transform.position = new Vector3((range.xMin + range.xMax) / 2, (range.yMin + range.yMax) / 2, 0); #else // Win32 m_Transform.position = new Vector3((range.xMin + range.xMax + 1) / 2, (range.yMin + range.yMax - 1) / 2, 0); #endif m_Camera.aspect = range.width / range.height; m_Camera.orthographicSize = range.height / 2; m_Range = range; } public Vector2 ScreenToWorld(Vector2 point) { return new Vector2(m_Range.x + point.x / Screen.width * m_Range.width, m_Range.y + point.y / Screen.height * m_Range.height); } } and this is issue screenshot