Esempio n. 1
0
        void Awake()
        {
            m_Camera   = GetComponent <Camera>();
            m_Internal = new PixelPerfectCameraInternal(this);

            m_Internal.originalOrthoSize = m_Camera.orthographicSize;
        }
Esempio n. 2
0
        void Awake()
        {
            m_Camera   = GetComponent <Camera>();
            m_Internal = new PixelPerfectCameraInternal(this);

            // Case 1249076: Initialize internals immediately after the scene is loaded,
            // as the Cinemachine extension may need them before OnBeginContextRendering is called.
            UpdateCameraProperties();
        }
        void Awake()
        {
            m_Camera   = GetComponent <Camera>();
            m_Internal = new PixelPerfectCameraInternal(this);

            m_Internal.originalOrthoSize = m_Camera.orthographicSize;

            if (m_Camera.targetTexture != null)
            {
                Debug.LogWarning("Render to texture is not supported by Pixel Perfect Camera.", m_Camera);
            }
        }
Esempio n. 4
0
        void Awake()
        {
            m_Camera   = GetComponent <Camera>();
            m_Internal = new PixelPerfectCameraInternal(this);

            m_Internal.originalOrthoSize = m_Camera.orthographicSize;

            // Case 1249076: Initialize internals immediately after the scene is loaded,
            // as the Cinemachine extension may need them before OnBeginContextRendering is called.
            var rtSize = cameraRTSize;

            m_Internal.CalculateCameraProperties(rtSize.x, rtSize.y);
        }